Thank you ahead of time for any help people are willing to offer. I am new to Esignal and working on the programming as much as possible.
I am trying to make a 10 day moving average of the 20 day RSI (minus 50), with no user inputs.
When it plots, it looks very similar to a regular 10 day ema of price...nothing to do with the RSI I want as the underlying data. Any thoughts on how I can correct this? Thanks again!
So far I have:
function preMain() {
setPriceStudy(false);
setStudyTitle("ABC");
setCursorLabelName("ABC", 0);
setDefaultBarFgColor(Color.blue, 0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
}
function main() {
var RSIXYZ = rsi(20)-50;
var ABC = ema(10,RSIXYZ);
return ABC;
}
I am trying to make a 10 day moving average of the 20 day RSI (minus 50), with no user inputs.
When it plots, it looks very similar to a regular 10 day ema of price...nothing to do with the RSI I want as the underlying data. Any thoughts on how I can correct this? Thanks again!
So far I have:
function preMain() {
setPriceStudy(false);
setStudyTitle("ABC");
setCursorLabelName("ABC", 0);
setDefaultBarFgColor(Color.blue, 0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
}
function main() {
var RSIXYZ = rsi(20)-50;
var ABC = ema(10,RSIXYZ);
return ABC;
}
Comment