if(Position.MarketPosition == MarketPosition.Short)
{
if (Position.MarketPosition == MarketPosition.Short && Low[0] <= theoEntry - oneDone*TickSize && stopControl)
{
Print("stop updated at One & Done tick increment in the money"+ Time[0].ToString());
stopPrice = theoEntry + entryOffset*TickSize;
SetStopLoss(CalculationMode.Price,stopPrice);// one & done stop move
stopControl = false; //this can only be reset to true if flat at end of bar on primary series
}
// MomDot stop loss adjustment
if (Position.MarketPosition == MarketPosition.Short && Close[0] > rhMomDot().Plot0[0] && High[0] + entryOffset*TickSize < stopPrice && Close[0] > Open[0])
{
Print("stop updated at momdot"+ Time[0].ToString());
SetStopLoss(CalculationMode.Price,High[0] + entryOffset*TickSize);//momdot stop move
//stopPrice = High[0] + entryOffset*TickSize;
}
else
{
SetStopLoss(CalculationMode.Price,stopPrice);//reset stop loss price to One&Done or Initial Stop
Print("stop RESET to stopPrice after momdot exit not elected"+ Time[0].ToString());
}
}
I'm totally baffled.

Comment