Hi. I’m trying to code a screener that screens for a BillW fractal retracement in a uptrend. Doesn’t seem to work, and I cant quite see the problem. I have attached a screendump, one for how it should work, and one for how it works
It screens for EMA50>EMA200 detection on 1H TF, and EMA23>EMA200 and EMA23>EMA50in 15 min TF to establish trend. Then also on a 15 min TF when we make one lower fractal than the previous one I’d like to signal, but it does not work. maybe it’s something fundamental about screeners that I didn’t quite catch, but I’d appreciate your help on this one 🙂
Cheers Kasper
Fractal retracement on 15 min TF
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//==============BUY SIGNALS
MyEMA23=ExponentialAverage[23](close)
MyEMA50=ExponentialAverage[50](close)
MyEMA200=ExponentialAverage[200](close)
REM The following code is related to this timescale:daily
TIMEFRAME(1H)
ifMyEMA50>MyEMA200then
EMAind1H=1
else
EMAind1H=0
endif
TIMEFRAME(15minute)
cp=2
ifhigh[cp]>=highest[2*cp+1](high)then
LH=1
else
LH=0
endif
ifMyEMA23>MyEMA200andMyEMA23>MyEMA50then//myadx and
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue