예제 #1
0
        private bool IsLongSetup(PriceBars priceBar)
        {
            int  lastBearishCandle = LastBearishCandle(priceBar);
            bool closedMidCandle   = lastBearishCandle != int.MinValue;

            if (lastBearishCandle > 0)
            {
                closedMidCandle = priceBar.Last(lastBearishCandle).High > priceBar.Last(lastBearishCandle - 1).Close&& priceBar.Last(lastBearishCandle).Low > priceBar.Last(lastBearishCandle - 1).Close;
            }

            return(rsi.Value() < 50 && stoch.PercentD() < 50 && CrossesAbove(stoch.PercentK(1), stoch.PercentK(), stoch.PercentD(1), stoch.PercentD()) && closedMidCandle);
        }
예제 #2
0
        private bool IsLongSetup(PriceBars priceBar)
        {
            if (!crossedBelow30)
            {
                crossedBelow30 = rsi.Value() < 30;
            }

            return(crossedBelow30 && rsi.Value() > 30);
        }
예제 #3
0
 private bool IsLongSetup(PriceBars priceBar)
 {
     return(priceBar.HasValue(1) && priceBar.Last(1).High > sma.Value(1) && priceBar.Last(1).Low < sma.Value(1) && priceBar.LastItem.Low > sma.Value() && rsi.Value() > 50);
 }
예제 #4
0
 private bool IsLongSetup(PriceBars priceBar)
 {
     return(CrossesAbove(ema5.Value(1), ema5.Value(), ema12.Value(1), ema12.Value()) && rsi.Value() > 50);
 }
예제 #5
0
 private bool IsLongSetup(PriceBars priceBar)
 {
     return(emaCrossed && ema5CrossedAboveEMA10 && RisingStochasticLines() && stoch.PercentD() <= 80 & stoch.PercentD() >= 20 & rsi.Value() > 50);
 }