Create a market structure screener
Forums › ProRealTime English forum › ProScreener support › Create a market structure screener
- This topic has 6 replies, 2 voices, and was last updated 7 years ago by Nicolas.
-
-
09/27/2017 at 5:44 AM #47449
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
09/27/2017 at 5:38 PM #47558It 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?
09/27/2017 at 6:59 PM #4756209/28/2017 at 10:43 AM #47627This 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.
SCREENER1234567891011121314151617181920212223242526272829303132333435363738//fractals 20 periods confirmationcp = 10 //adjust here the peaks and troughs confirmationif high[cp] >= highest[2*cp+1](high) thenLH = 1elseLH=0endifif low[cp] <= lowest[2*cp+1](low) thenLL= -1elseLL=0endifif LH=1 thenhil = high[cp]endifif LL = -1 thenLOL = low[cp]endif//search for a break/rebound on a recent fractal levellookback = 100 //lookback periods to find a rebound/breachsignal = 0barsago = 0for i = 0 to lookback doif low crosses under lol[i] or high crosses over hil[1] thensignal=1barsago=ibreakelsesignal=0endifnextscreener [signal] (barsago)and the indicator, add it on your price chart to identify clearly the levels and to adjust the settings of the screener:
INDICATOR FRACTALS1234567891011121314151617181920212223242526272829/////////// FRACTALS BILL WILLIAMS//Variable:cp = 10if high[cp] >= highest[2*cp+1](high) thenLH = 1elseLH=0endifif low[cp] <= lowest[2*cp+1](low) thenLL= -1elseLL=0endifif LH=1 thenhil = high[cp]endifif LL = -1 thenLOL = low[cp]endifreturn lol coloured(255,0,0) as "Low Fractal",hil coloured(0,255,0) as "High Fractal"/////////////end1 user thanked author for this post.
09/29/2017 at 6:17 AM #4773610/02/2017 at 5:34 AM #4795910/02/2017 at 8:01 AM #47962For personal assistance, please use the form from this page: trading programming services
-
AuthorPosts
Find exclusive trading pro-tools on