i copy and modified following codes from knowledge base to efs editor:
function preMain() {
setPriceStudy(false);
setStudyTitle("MA");
setCursorLabelName("MA",0);
setDefaultBarFgColor(Color.blue,0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
var myStudy = null;
var bInit = false;
function main() {
if ( bInit == false ) {
myStudy = ema( 20, sym("orcl,1") );
bInit = true;
}
return getSeries( myStudy );
}
}
But I got response of "NONE"
Any suggestion to make it work?
Thx in advance
function preMain() {
setPriceStudy(false);
setStudyTitle("MA");
setCursorLabelName("MA",0);
setDefaultBarFgColor(Color.blue,0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
var myStudy = null;
var bInit = false;
function main() {
if ( bInit == false ) {
myStudy = ema( 20, sym("orcl,1") );
bInit = true;
}
return getSeries( myStudy );
}
}
But I got response of "NONE"
Any suggestion to make it work?
Thx in advance
Comment