HI,
I would like to convert a line of old code to efs2.
Old code (3x3_DMA_EXT.efs) is (found as last statement in preMain():
var v3x3dma = new MAStudy(3, 3, "Close", MAStudy.SIMPLE);
My attempt (placed in function Main() within an "if (bInit == false)" statement (3x3_DMA_EXT-Alarm-Mine-hs Problem0.efs):
v3x3dma= sma(3,close(),null,null,3);
My attempt plots but differently (without the offset).
Both scripts are attached in a zip file.
Second question; Both of these statements seem to do the same thing. Is there any difference?
return getSeries(v3x3dma);
return v3x3dma.getValue(0);
Thank you
I would like to convert a line of old code to efs2.
Old code (3x3_DMA_EXT.efs) is (found as last statement in preMain():
var v3x3dma = new MAStudy(3, 3, "Close", MAStudy.SIMPLE);
My attempt (placed in function Main() within an "if (bInit == false)" statement (3x3_DMA_EXT-Alarm-Mine-hs Problem0.efs):
v3x3dma= sma(3,close(),null,null,3);
My attempt plots but differently (without the offset).
Both scripts are attached in a zip file.
Second question; Both of these statements seem to do the same thing. Is there any difference?
return getSeries(v3x3dma);
return v3x3dma.getValue(0);
Thank you
Comment