i am trying to set a stop loss 1 ATR (my entry price), i am working with daily bars (EOD Data). Here is my code, it's not running. (the instrument were strategy is working on are stocks).
protected override void OnBarUpdate()
{
double stop = Instrument.MasterInstrument.Round2TickSize(ATR(14)[0]);
SetStopLoss(CalculationMode.Ticks, stop);
...
}
Best,
Vince.

Comment