Hi
This is my first ever attempt at coding a ThinkScript, but my indi is pretty basic. I'd like an arrow to appear on the chart when the RSI(6) crosses the RSI(14), and vice versa. It seems to work, but I think it uses the WILDERS average type, and I can't figure out how to change that. I'd rather it defaulted to exponential, but with the ability to change it.
Any help would be appreciated.
input rsi1_len = 6;
input rsi2_len = 14;
def rsi1 = RSI(length = rsi1_len);
def rsi2 = RSI(length = rsi2_len);
def bull_cross = rsi1 crosses above rsi2;
def bear_cross = rsi1 crosses below rsi2;
plot GU = bull_cross;
GU.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
GU.SetDefaultColor(Color.YELLOW);
GU.SetLineWeight(2);
plot GX = bear_cross;
GX.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
GX.SetDefaultColor(Color.PINK);
GX.SetLineWeight(2);
This is my first ever attempt at coding a ThinkScript, but my indi is pretty basic. I'd like an arrow to appear on the chart when the RSI(6) crosses the RSI(14), and vice versa. It seems to work, but I think it uses the WILDERS average type, and I can't figure out how to change that. I'd rather it defaulted to exponential, but with the ability to change it.
Any help would be appreciated.
input rsi1_len = 6;
input rsi2_len = 14;
def rsi1 = RSI(length = rsi1_len);
def rsi2 = RSI(length = rsi2_len);
def bull_cross = rsi1 crosses above rsi2;
def bear_cross = rsi1 crosses below rsi2;
plot GU = bull_cross;
GU.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
GU.SetDefaultColor(Color.YELLOW);
GU.SetLineWeight(2);
plot GX = bear_cross;
GX.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
GX.SetDefaultColor(Color.PINK);
GX.SetLineWeight(2);