MT5.ShowPositions: Show positions

Description Usage Value Author(s) References See Also Examples

View source: R/Source_MT5.R

Description

Show all active positions displayed on the "Trade" tab. For active orders use MT5.ShowOrders() instead.

Usage

1

Value

Returns Data.frame [nx8], with follow informations:

Author(s)

Guilherme Kinzel, guikinzel@gmail.com

References

https://www.mql5.com/en/docs/constants/tradingconstants/positionproperties

See Also

MT5.ShowOrders(), MT5.ClosePosition(), MT5.ModifyPosition()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

MT5.ShowPositions()

## Returns
##    sSymbol iCmd fVolume   fPrice  fStop fGain fProfit iTicket
## 1  CADJPY    1    0.01 81.09000 0.0000     0    0.47  766491
## 2  CADJPY    0    0.01 81.11700 0.0000     0   -1.00  766490
## 3  EURUSD    0    0.01  1.22592 0.0000     0    0.77  766488
## 4  NZDUSD    0    0.10  0.71160 0.7106     0   29.50  763964


## End(Not run)

Kinzel/mt5r documentation built on March 25, 2021, 9:57 p.m.