Hi,
I have tried to integrate the RSI indicator to plot only the Up and Down Signals on the Stochastic indicator provided by TOS but no luck.
Can someone take a look and possible make it work? Thanks in advance.
Simply have both up and dow signals generated from the RSI indicator to plot on the Stochastic indicator. Could you make the BreakoutSignals from the RSI to work on the Stochastic indicator? No other plots from the RSI is needed.
input length = 20;
input over_Bought = 70;
input over_Sold = 30;
input price = close;
input averageType = AverageType.WILDERS;
input showBreakoutSignals = no;
input barcolor = yes;
def NetChgAvg = MovingAverage(averageType, price - price[1], length);
def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
plot RSI = 50 * (ChgRatio + 1);
plot OverSold = over_Sold + if IsNaN(close) then Double.NaN else 0;
plot OverBought = over_Bought + if IsNaN(close) then Double.NaN else 0;
plot UpSignal = if RSI crosses above OverSold then OverSold else Double.NaN;
plot DownSignal = if RSI crosses below OverBought then OverBought else Double.NaN;
Any updates for this request will be highly appreciated. Thanks.
I have tried to integrate the RSI indicator to plot only the Up and Down Signals on the Stochastic indicator provided by TOS but no luck.
Can someone take a look and possible make it work? Thanks in advance.
Simply have both up and dow signals generated from the RSI indicator to plot on the Stochastic indicator. Could you make the BreakoutSignals from the RSI to work on the Stochastic indicator? No other plots from the RSI is needed.
input length = 20;
input over_Bought = 70;
input over_Sold = 30;
input price = close;
input averageType = AverageType.WILDERS;
input showBreakoutSignals = no;
input barcolor = yes;
def NetChgAvg = MovingAverage(averageType, price - price[1], length);
def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
plot RSI = 50 * (ChgRatio + 1);
plot OverSold = over_Sold + if IsNaN(close) then Double.NaN else 0;
plot OverBought = over_Bought + if IsNaN(close) then Double.NaN else 0;
plot UpSignal = if RSI crosses above OverSold then OverSold else Double.NaN;
plot DownSignal = if RSI crosses below OverBought then OverBought else Double.NaN;
Any updates for this request will be highly appreciated. Thanks.
Attachments
Last edited by a moderator: