Hi,
I am trying to create a RSI efs that uses 0 instead of 50. I do not receive a syntax error but the histogram will not display. Can anyone see what I am doing wrong?
var rsi = rsi(14)-50;
function preMain() {
setStudyMin(-100);
setStudyMax(100);
setStudyTitle("Zero Based RSI");
setCursorLabelName("ZeroRSI");
setDefaultBarFgColor(Color.blue, 0);
setPlotType(PLOTTYPE_HISTOGRAM,0);
}
function main() {
return rsi;
}
I am trying to create a RSI efs that uses 0 instead of 50. I do not receive a syntax error but the histogram will not display. Can anyone see what I am doing wrong?
var rsi = rsi(14)-50;
function preMain() {
setStudyMin(-100);
setStudyMax(100);
setStudyTitle("Zero Based RSI");
setCursorLabelName("ZeroRSI");
setDefaultBarFgColor(Color.blue, 0);
setPlotType(PLOTTYPE_HISTOGRAM,0);
}
function main() {
return rsi;
}
Comment