I am having a problem with multiple entires. When I use the term Firstentry it sets the stop to my entry price not the danchain chanel low. If I dont use the entry name it ignores the stop. If I dont use an entry name when I enter its ok.
// If a long position is open, allow for stop loss modification to breakeven
else if (Position.MarketPosition == MarketPosition.Long)
{
barcounter = barcounter +1 ;
if (DonchianChannel(stoptrail).Lower[1]> Position.AvgPrice)
{
SetStopLoss("Firstentry", CalculationMode.Price, DonchianChannel(stoptrail).Lower[1] - stoptrailoffset* TickSize , false);
//SetStopLoss("Secondentry", CalculationMode.Price, DonchianChannel(stoptrail).Lower[1] - stoptrailoffset* TickSize , false);
//Print("Firstentry last value= "+(DonchianChannel(stoptrail).Lower[1] - stoptrailoffset* TickSize) + " " + Close[0]+ " " +(Time[0].ToString()) );
}
}

Comment