Hi,
Was just watching a youtube video from Doug Campbell where he talks about a trend pattern that uses 3 8 & 34 EMA to look for an entry.
He looks for the 3EMA pulling back to the 8 EMA
https://www.youtube.com/watch?v=mEvZcWi3pew
How would I translated his TC2000 code to a ProRealtime screener?
His TC2000 code:
L <= XAVGC8 and C > XAVGC8 and (C < XAVGC3.1) or (C < XAVGC3.2) or (C < XAVGC3.3
Thanks!
Here is the code, it is a mix between the code you shared and the video, because I think your version is not complete: some parenthesis are missing and there is no EMA34 condition:
ema8 = exponentialaverage[8](close)
ema3 = exponentialaverage[3](close)
ema34 = exponentialaverage[34](close)
c = close
setup = low<ema8 and c>ema8 and ((c<ema3[1]) or (c<ema3[2]) or (c<ema3[3])) and ema8>ema34
screener[setup]
thank you very much Nicolas, I appreciate your translation of the script