How to check last closed position type buy or sell was ...
Created at 27 May 2022, 10:40
How to check last closed position type buy or sell was ...
27 May 2022, 10:40
How to check last closed position type whether was buy or sell ...
cTrader Automate
@MongolTrader
firemyst
29 May 2022, 13:57
If you know the symbol and gave the position a unique label, you could also look for it in the "HistoricalTrade" collection.
Example:
HistoricalTrade ht = History.FindLast(p1.Label, p1.SymbolName);
@firemyst