When I enter a position, I have some code that sets the Stoploss like this...
From inside a buy trigger, I set justEntered = 1 (justEntered is an Int variable
if (Position.MarketPosition == MarketPosition.Long && justEntered == 1)
Here I set stop = somerrandomdouble like .98
Then I set justEntered = 0
end if
For some reason the justEntered section of code is not triggered for all symbols on backtest, it is on some and not on others, any ideas?
Comment