Here is a snapshot of my entry code conditions. Is there something else I need to code to insure I only enter once? My "enter only once per direction" is defined in the strategy parameters setup screen and not in code.
if (Position.MarketPosition == MarketPosition.Flat && Falling(CUMRSI(BarsArray[1],periodRsi,3)) && CUMRSI(BarsArray[2],periodRsi,3)[0] > upper && CUMRSI(BarsArray[0],rPeriod,3)[0] > upper) { AtmStrategyCreate(OrderAction.SellShort, OrderType.Market, 0, 0, TimeInForce.Day, GetAtmStrategyUniqueId(), "STOCKATM2LOT", GetAtmStrategyUniqueId()); // EnterShort(200); }
Comment