Hello again 🙂
I made a simple calculation which compares the current close price with the EMA 200. If used in an indicator it works 100% correct but the result of the same calculation is always higher in the screener. I have no idea why because it is absolutely the same calculation. What am I doing wrong?
This is the screener version:
calc=((close/exponentialaverage[200](close))-1)*100
SCREENER [calc>0](calc)
And this is the indicator:
calc=((close/exponentialaverage[200](close))-1)*100
return calc
Help is very appreciated!
Same usual question about long term EMA in ProScreener 😀
Unfortunately, the history available in ProScreener (254 bars) is not sufficient to calculate correctly long term EMA, so difference exist between what is calculated with ProBuilder (indicator).
I recommend using simple moving average instead.
Thank you for the clarification. I thought I was too stupid to code correctly… 😄