Any thoughts as to where I am going wrong? Thanks.
GT
if(Position.MarketPosition == MarketPosition.Long)
{
double MyVar = (Median[0] - ATR(14)[0]*2);
if(High[0] >= (Position.AvgPrice + .0030))
{
double MyVar2 = MAX(MyVar, BarsSinceEntry("LongEntry"))[0];
stopOrder = ExitLongStop(0, true, 1, MyVar2, "LongStop", "LongEntry");
}
}

Comment