close below prior low; swing low (10), average price, Minimum low (14) and MACD.diff is less than zero. All the same conditions were met on the last entry yet it will not take the next entry. Any thoughts on why this might be?
Here is entry code:
if ((Position.Quantity == 2700) && (Close[0] < Low[1]) && (Close[0] < Swing1.SwingLow[0]) && (Close[0] < Position.AveragePrice) && (Close[0] < MIN1[1]) && (MACD1.Diff[0] < 0))
else if (State == State.Configure) { //AddDataSeries("EURUSD", BarsPeriod.BarsPeriodType, 4 * BarsPeriod.Value, Data.MarketDataType.Last); AddDataSeries("EURUSD", Data.BarsPeriodType.Minute, 240, Data.MarketDataType.Last); AddDataSeries("EURUSD", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last); AddPlot(Brushes.Lime, "Average price"); //PLOTTING AVERAGE ENTRY PRICE //SetStopLoss(CalculationMode.Percent, 0.03); } else if (State == State.DataLoaded) { RSI1 = RSI(Closes[1], Convert.ToInt32(RSI_Period), 2); RSI2 = RSI(Close, Convert.ToInt32(RSI_Period), 2); Swing1 = Swing(Close, 10); MIN1 = MIN(Low, 14); //minimum low last 14 bars EMA1 = EMA(Close, 55); ADX1 = ADX(Closes[0], 14); SMA1 = SMA(Close,200); MACD1 = MACD(Closes[0], 34, 55, 13); EMA2 = EMA(ADX1, 14); }
private int Initial_Position_Size; private RSI RSI1; private RSI RSI2; private Swing Swing1; private MIN MIN1; private EMA EMA1; private ADX ADX1; private SMA SMA1; private MACD MACD1; private EMA EMA2;
Comment