The strategy works fine in backtest mode, but when I run it in live mode, it does not read the value from InitialQuantity, but always starts with 1 contract, and I cannot understand why. Perhaps I am misunderstanding the values that Performance.AllTrades and Performance.RealtimeTrades return.
I have attached the code and would be gratefuul for any suggestions.
Thanks.

Comment