Not a number, but a counter that counts how many trade it has already been opened from this bot for each symbol. Then I will store it in comment column, so it will immediately know the running counter for this symbols.
I can imagine that it will works something like this:
BlackTrader
18 Feb 2022, 13:42
RE:
amusleh said:
Not a number, but a counter that counts how many trade it has already been opened from this bot for each symbol. Then I will store it in comment column, so it will immediately know the running counter for this symbols.
I can imagine that it will works something like this:
Symbol.Counter += 1;
PlaceStopOrder(tradePosition, SymbolName, volumeInUnit, EntryPrice, myLabel, stopLoss, takeProfit, null, "Trade #" + Symbol.Counter);
The problem is I don't know how to declare the variable of "Symbol.Counter" like that?
@BlackTrader