I am stymied because I am getting different values for MACD Histogram depending on how the efs call is made. I am sorry, I don't knwo enough to understand what these different structures imply. Here is the pertinent code snip:
study = new MACDStudy(nFastLng, nSlowLng, nSignalSmooth, tSource);
var vVol = study.getValue(MACDStudy.HIST);
test = macdHist(nFastLng, nSlowLng, nSignalSmooth, tSource);
In particular, the script was calling the MACD Hist using <study> and returning <vVol>. Then I tried to replicate the histogram using the script in Custon EFS2 folder, and got something different. So I added the call using <test> . Both <test> and <study> have exact same inputs (defined above in the script) but return different values.
Why is this? Thanks very much. Joe.
study = new MACDStudy(nFastLng, nSlowLng, nSignalSmooth, tSource);
var vVol = study.getValue(MACDStudy.HIST);
test = macdHist(nFastLng, nSlowLng, nSignalSmooth, tSource);
In particular, the script was calling the MACD Hist using <study> and returning <vVol>. Then I tried to replicate the histogram using the script in Custon EFS2 folder, and got something different. So I added the call using <test> . Both <test> and <study> have exact same inputs (defined above in the script) but return different values.
Why is this? Thanks very much. Joe.
Comment