Just tried my hand to write an indicator / formula. Unfortunately it is not showing on a forex chart. Any suggestions towards solution would be highly appreciated.
Indicator: Moving Average 200E - Moving Average 200S
var study = new MAStudy(1, 0, "Close", MAStudy.EXPONENTIAL);
var study = new MAStudy(1, 0, "Close", MAStudy.SIMPLE);
function preMain()
{
setPriceStudy(true);
setStudyTitle("EMA-SMA200");
setCursorLabelName("SEMA-SMA200",0);
setDefaultBarFgColor(Color.red,0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
}
function main() {
return(ema(200) - sma(200));
}
Many thanks in advance,
Magda
Indicator: Moving Average 200E - Moving Average 200S
var study = new MAStudy(1, 0, "Close", MAStudy.EXPONENTIAL);
var study = new MAStudy(1, 0, "Close", MAStudy.SIMPLE);
function preMain()
{
setPriceStudy(true);
setStudyTitle("EMA-SMA200");
setCursorLabelName("SEMA-SMA200",0);
setDefaultBarFgColor(Color.red,0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
}
function main() {
return(ema(200) - sma(200));
}
Many thanks in advance,
Magda
Comment