Description Usage Value Author(s) References See Also Examples
Show all active orders displayed on the "Trade" tab. For active positions use MT5.ShowPositions()
instead.
1 |
Returns Data.frame [nx7], with follow informations:
sSymbol {character}
: order's symbol.
iType {int}
order's type, for more see references:
2: ORDER_TYPE_BUY_LIMIT
3: ORDER_TYPE_SELL_LIMIT
fVolume {numeric}
: order's volume.
fPrice {numeric}
: order's price.
fStop {numeric}
: order's stop loss. For stop loss not set is returned 0
.
fGain {numeric}
: order's stop gain. For stop gain not set is returned 0
.
iTicket {int}
: order's ticket. Same displayed on the "Trade" tab. Used in other functions in mt5R package.
Guilherme Kinzel, guikinzel@gmail.com
https://www.mql5.com/en/articles/2513
MT5.ShowPositions()
, MT5.DeleteOrder()
, MT5.ModifyOrder()
, MT5.MultipleOrders()
, MT5.SingleOrder()
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
MT5.ShowOrders()
## Returns
## sSymbol iType fVolume fPrice fStop fGain iTicket
## 1 NZDUSD 2 0.10 0.682 0.00000 0 763153
## 2 NZDUSD 2 0.10 0.661 0.00000 0 763194
## 3 GBPUSD 2 0.01 1.330 1.32956 0 766489
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.