I'm writing a strategy that involves a normal stop loss input and also an input to offset a stop loss via average position price.
I would think they would have the same results when implemented separately, but I get different results with equal values.
For example with a long strategy:
when setting StopLoss to 16, and StopTickOffset to -(unreachable number) I get 'x' results
But
when setting StopLoss to (unreachable number) and StopTickOffset to -16 I get 'y' results.
Code for the StopTickOffset stop loss:
(Close[0] < (Position.AveragePrice + (StopTickOffset * TickSize)) ))
..
StopLoss is the default StopLoss input within DataLoaded and the StopTickOffset is within OnBarUpdate
.
I am certain this is just me misunderstanding very basic logic, I am very much a novice, so bare with me.
Thanks.

Comment