Hi
Im having trouble with 9 ema with a 1 offset,
I belive there are three ways of obtaning a ema without using a function.
if I use these two methods, the output numbers are identical to each other
var vEMA9_2 = new MAStudy(9, 1, "Close", MAStudy.EXPONENTIAL);
vEMA9_2.getValue(MAStudy.MA) ;
and
offsetSeries(eval("ema")(9,eval(close)(sym(vSymbol ))),1);
if i use this function the number is totally different from the above two,if I use this function realtime, it displays a number and then changes when i reload the efs
ema(9,close(),1)
Ive attached a script that ive written to help debug the problem
the problem is when using
The attached efs will write the values into a text file and output to debug, ive been using tick replays, so the data is always the same.
Which value is correct ?, I would like to use the value produced from ema(9,close(),1) when the efs2 is reloaded as opposed to the realtime value that it spits out.
MASTUDY EMA(9,etc) offsetSeries
values produced realtime
5 1539 767.5974565 767.8143721 767.5974565
values produced after reload
5 1539 767.5974565 767.7543721 767.5974565
the mastudy and offset series data remains the same after a reload but as you see the ema does not, the data
This may be a bug in esignal ??
Im having trouble with 9 ema with a 1 offset,
I belive there are three ways of obtaning a ema without using a function.
if I use these two methods, the output numbers are identical to each other
var vEMA9_2 = new MAStudy(9, 1, "Close", MAStudy.EXPONENTIAL);
vEMA9_2.getValue(MAStudy.MA) ;
and
offsetSeries(eval("ema")(9,eval(close)(sym(vSymbol ))),1);
if i use this function the number is totally different from the above two,if I use this function realtime, it displays a number and then changes when i reload the efs
ema(9,close(),1)
Ive attached a script that ive written to help debug the problem
the problem is when using
The attached efs will write the values into a text file and output to debug, ive been using tick replays, so the data is always the same.
Which value is correct ?, I would like to use the value produced from ema(9,close(),1) when the efs2 is reloaded as opposed to the realtime value that it spits out.
MASTUDY EMA(9,etc) offsetSeries
values produced realtime
5 1539 767.5974565 767.8143721 767.5974565
values produced after reload
5 1539 767.5974565 767.7543721 767.5974565
the mastudy and offset series data remains the same after a reload but as you see the ema does not, the data
This may be a bug in esignal ??
Comment