Hi all,
First, let me thank the genious, Alex, for all the help getting me this far. Thank you very much Alex.
I'm trying to figure our how to create a 10-period MA to the oscillator specified below, and have that plotted in the study, instead of the oscillator itself.
-------------------------------------------------------------------
function preMain() {
setPriceStudy(false);
setStudyTitle("Vix Oscillator");
setCursorLabelName("Vix Oscillator", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_LINE, 0);
}
function main() {
return close(sym("$VIX")) / sma(10,close(sym("$VIX")));
}
function postMain() {
}
First, let me thank the genious, Alex, for all the help getting me this far. Thank you very much Alex.
I'm trying to figure our how to create a 10-period MA to the oscillator specified below, and have that plotted in the study, instead of the oscillator itself.
-------------------------------------------------------------------
function preMain() {
setPriceStudy(false);
setStudyTitle("Vix Oscillator");
setCursorLabelName("Vix Oscillator", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_LINE, 0);
}
function main() {
return close(sym("$VIX")) / sma(10,close(sym("$VIX")));
}
function postMain() {
}
Comment