Maybe you can help me out on this one. I'd like to drop a market order on the Parabolic SAR and refresh that order on each bar. This little bit of code below will do that BUT it lags one SAR behind. If you look at the image attached it would seem like I'm setting the order on ParabolicSAR1[1] but I'm setting on ParabolicSAR1[0].
My hunch is that the "current" SAR is being calculated after my code runs so I'm not sure how to bump that order up one SAR--the most recent
Thank you
Coop
if ((Position.MarketPosition == MarketPosition.Flat) && (ParabolicSAR1[0] < Close[0]) ) { SetProfitTarget("scalp", CalculationMode.Ticks, MyTarget); SetStopLoss("scalp", CalculationMode.Ticks, MyStop, false); EnterShortStopMarket(1, ParabolicSAR1[0], [USER="88330"]scalp[/USER]); }
Comment