Heck yeah! I tweaked it a little bit more but it looks pretty good I think! Thank you so much!

Ruby:
# Bollinger Bands and RSI Strategy with Visual Signals
#declare lower;
input bbLength = 30;
input numDevDn = -2.0;
input numDevUp = 2.0;
input rsiLength = 13;
input oversoldThreshold = 30;
input overboughtThreshold = 80;
def price = close;
#def bb = BollingerBands(price, length = bbLength, numDevDn = numDevDn, numDevUp = numDevUp);
#def lowerBand = bb.lowerBand;
#def upperBand = bb.upperBand;
def bb_lower = BollingerBands(price, length = bbLength, numDevDn = numDevDn, numDevUp = numDevUp).lowerBand;
def bb_upper = BollingerBands(price, length = bbLength, numDevDn = numDevDn, numDevUp = numDevUp).upperBand;
#def rsiValue = RSI(close, rsiLength);
def rsiValue = RSI(length = rsiLength, price = close);
def buyCondition = close < bb_lower and rsiValue <= oversoldThreshold;
def sellCondition = close > bb_upper and rsiValue >= overboughtThreshold;
# Buy Signal
plot BuySignal = buyCondition;
BuySignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
BuySignal.SetDefaultColor(Color.GREEN);
# Sell Signal
plot SellSignal = sellCondition;
SellSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
SellSignal.SetDefaultColor(Color.RED);
Attachments
Last edited by a moderator: