|Member since:||05 Oct 2021|
Last Forum Posts
I will like to understand more when we execute bot.Positions.
foreach (var pos in this.bot.Positions.Where(x => x.SymbolName == this.symbol.Name))
TradeResult res = this.bot.ExecuteMarketOrder(this.currDirection, this.symbol.Name, inputLot, this.symbol.VolumeInUnitsToQuantity(inputLot).ToString());
// INSIDE HERE
What will happen to the Positions state if we perform close trade/execute trade/modify trade during the looping?
Will the looping immediately include the newly opened trade into the Positions? And will the Positions count will increase?
The Positions state still remains as previous(before closing the trade until I exited the loop?