Hi,
I am very new to programming. The only experience I had was using the formula wizard in the older version of esignal.
The formula wizard is not suitable for the script that I need so I decided to manually code an efs for the first time.
Everything seems to be ok & there are no syntax errors reported.
The problem is when I insert it into the chart, nothing is displayed at all. I do not know where I went wrong.
Any guidance would be greatly appreciated.
The script is as follows...
---------------------------------------------------
function preMain() {
setPriceStudy(false);
setStudyTitle("ProxyTest");
setCursorLabelName("ProxyTest",0);
setDefaultBarFgColor(Color.RGB(0x00,0x94,0xFF), 0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(2,0);
}
function main() {
var nMA_OpenClose = sma (8, open - close)
var nMA_HighLow = sma (8, high - low)
var nProxy = (((nMA_OpenClose / nMA_HighLow) *50) +50)
return nProxy;
}
---------------------------------------------------
Thanks,
kbw
I am very new to programming. The only experience I had was using the formula wizard in the older version of esignal.
The formula wizard is not suitable for the script that I need so I decided to manually code an efs for the first time.
Everything seems to be ok & there are no syntax errors reported.
The problem is when I insert it into the chart, nothing is displayed at all. I do not know where I went wrong.
Any guidance would be greatly appreciated.
The script is as follows...
---------------------------------------------------
function preMain() {
setPriceStudy(false);
setStudyTitle("ProxyTest");
setCursorLabelName("ProxyTest",0);
setDefaultBarFgColor(Color.RGB(0x00,0x94,0xFF), 0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(2,0);
}
function main() {
var nMA_OpenClose = sma (8, open - close)
var nMA_HighLow = sma (8, high - low)
var nProxy = (((nMA_OpenClose / nMA_HighLow) *50) +50)
return nProxy;
}
---------------------------------------------------
Thanks,
kbw
Comment