Create a market structure screener

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #47449 quote
    johnross
    Participant
    New

    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

    market-structure.png market-structure.png
    #47558 quote
    Nicolas
    Keymaster
    Master

    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?

    #47562 quote
    johnross
    Participant
    New

    yes man it sound amazing do you think you could code something like that ? Do you think it would be difficult

    #47627 quote
    Nicolas
    Keymaster
    Master

    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
    Derek thanked this post
    screener-levels-rebound.png screener-levels-rebound.png
    #47736 quote
    johnross
    Participant
    New

    thank you  a lot nicholas  I really really appreciate i will try that and let you know what happen or what can be improve

    #47959 quote
    johnross
    Participant
    New

    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

    #47962 quote
    Nicolas
    Keymaster
    Master

    For personal assistance, please use the form from this page: trading programming services

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Create a market structure screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
johnross @johnross Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by Nicolas
8 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/27/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...