i have a very general problem with methode StopLoss for future-trading.
(https://ninjatrader.com/support/help...erence_wip.htm)
For the best result of an real 38 Point-SL for future (YM) i developed this three lines of code:
dStopLoss = 38;
dSLPrice = (dStopLoss * (Bars.Instrument.MasterInstrument.PointValue / Bars.Instrument.MasterInstrument.TickSize));
SetStopLoss(sSignalname, CalculationMode.Currency, dSLPrice, false);
Selected mode (CalculationMode.Currency) seems not right for me, but on live account it results in an real SL of 38 Points from position opening.
Is my calculation for (dSLPrice) is correct?
When should i use mode (CalculationMode.Price) instead of (CalculationMode.Currency)?
What is the difference of this modes?
Can i move the SL by repeating this three lines of code and halfing (dStopLoss) for example?
Is it (current close price) + SL?
How can i move SL in other direction?
With best regards,
Peter
Comment