if (Positions[13].MarketPosition == MarketPosition.Flat
&& BarsInProgress == 13
&& Bars.TickCount >1
&& Bars.TickCount >1 && Bars.TickCount <1000)
{
{
for (int zbuhl = 0, zbuhlx = 10; zbuhl < zbuhlx; zbuhl++)
{
if (10 >= 1)
{
myEntryOrderZB LONG = EnterLongLimit(13,true,1,CurrentDayOHL(Opens[13]).CurrentOpen[0],"ZB UH LONG LIMIT"+ zbuhl);
SetStopLoss("ZB LONG LIMIT"+zbuhl, CalculationMode.Price,PriorDayOHLC(Closes[13]).PriorClose[0], false);
SetProfitTarget("ZB LONG LIMIT"+zbuhl, CalculationMode.Price,((CurrentDayOHL(Opens[13]).CurrentOpen[0] + ((Math.Max(0,5, (ATR(Closes[13],11)[1]*0.90)))))));
barNumberOfOrderZB = CurrentBars[0];
gapZBtradetoday = true;
orderList.Add(myEntryOrder);
}
}
}
}
Comment