I'm using SetStopLoss and I want to enter different values with each new entry. I use CalculationMode.Price and that works fine.
But how would I properly turn off the stop so that a new entry would not have an associated stop?
The answer it seems is to set the price far enough away that the stop won't get executed. But how far is that? Ideally, as far away as possible to ensure we don't get caught up in any price shocks.
What I've found is that I can set the stop price to one tick and everything works fine in backtest. I wonder though if that will work in live trading?
Would it be better to use something like SetStopLoss(CalculationMode.Currency, 100000)? My testing shows that a value of 100000 will disable the stop loss entirely for the duration of the strategy, but a value of 10000 will not.
Similarly, I've noticed that if I call SetStopLoss(CalculationMode.Pice, 0) that the stop loss remains disabled for the duration of the strategy. Even if I set price back to a higher value, the stop will not take effect. Is this the expected behavior?
Could you clarify the size/price limits, why they exist and perhaps suggest the recommended approach?
Thanks
Comment