Hi Guys I am new to the ProRealTime softwre I normally analyze pair on tradingview I currently work 2 jobs and a day so it is quite difficult to analyse the arket so basically I would to know if it is possible to code a screener that will be able to can forex pair based on market structure(High,Low,Higher Low,Lower High,Lower Low-Support become resistance,resistance become support. is it possible also to receive an alert when the market break a support or a resistance ? I really want a screener based on market structure. I take a screenshot of one of my analysis don’t minnd the fibonnacci it’s really the 2 black line and the blue line where you see resistance become support
It should be possible. Basically we need first to define a good way to find peaks and troughs and store them in arrays. Then make a loop in the last X bars to test if the current Close is breaching one of these recent levels. Sound good for you?
yes man it sound amazing do you think you could code something like that ? Do you think it would be difficult
This is what I made so far. Peaks and troughs are made from Fractals (period adjustable), the screener will look for high or low that breach one of the Fractals levels from now to ‘lookback’ period ago. The sorting criteria give you the period number from now where the level was initially formed.
//fractals 20 periods confirmation
cp = 10 //adjust here the peaks and troughs confirmation
if high[cp] >= highest[2*cp+1](high) then
LH = 1
else
LH=0
endif
if low[cp] <= lowest[2*cp+1](low) then
LL= -1
else
LL=0
endif
if LH=1 then
hil = high[cp]
endif
if LL = -1 then
LOL = low[cp]
endif
//search for a break/rebound on a recent fractal level
lookback = 100 //lookback periods to find a rebound/breach
signal = 0
barsago = 0
for i = 0 to lookback do
if low crosses under lol[i] or high crosses over hil[1] then
signal=1
barsago=i
break
else
signal=0
endif
next
screener [signal] (barsago)
and the indicator, add it on your price chart to identify clearly the levels and to adjust the settings of the screener:
/////////// FRACTALS BILL WILLIAMS
//Variable:
cp = 10
if high[cp] >= highest[2*cp+1](high) then
LH = 1
else
LH=0
endif
if low[cp] <= lowest[2*cp+1](low) then
LL= -1
else
LL=0
endif
if LH=1 then
hil = high[cp]
endif
if LL = -1 then
LOL = low[cp]
endif
return lol coloured(255,0,0) as "Low Fractal",hil coloured(0,255,0) as "High Fractal"
/////////////end
thank you a lot nicholas I really really appreciate i will try that and let you know what happen or what can be improve
I don’t know quite well how to use the software would you mind get on skype with me so we can perfect the screener I am willing to pay please let me know
For personal assistance, please use the form from this page: trading programming services