master patter by ATS

Forums ProRealTime English forum ProBuilder support master patter by ATS

Viewing 9 posts - 16 through 24 (of 24 total)
  • #244961

    HI GUys , i would like this amazing indicator originally desibngen by ATS and then been coded on Trading view . Its an amzing tool. It draws a box and has a line protruding out of it at the 50% mark.

    This line remains in place until another box is formed . How is the box formed ? Its when market is in contraction phase and we get a HL then a LH in a consecutive time. see examples on TV. I have the code fo rit and i have attached a couple of u tube s on it ?

    https://www.tradingview.com/x/scvXjbNd/

    here is the u tube

    https://youtu.be/

    I assure you thi will realy help finding points to buy and sell….

    There is also liquidity lines

    Also I have the code in Trading view maybe someone knows how to change into Prorealtime code?

     

     

    #244962

    I have an indicator called Master Pattern line (ATS ) coded on TV pinescript. I would like it on my PRT. Is there anyone who can convert the code please? We can share this on thie platform and there are lots of eduction of how to use it on You Tube. Its an amazing tool i assure you ?

     

    #244965

    Moderation message:

    Your 2 new topics are now merged to your same topic from a year ago on the very same subject, during which you already did not copy and paste your code to be converted, and not described the rules for coding it. Copying and pasting the source code for a code converstion request is not “optional”, screenshots and videos don’t replace it, they are only useful additions to the mandatory source code script.

    Please see this form for free code conversions: https://www.prorealcode.com/free-code-conversion/

    The choice is yours:

    – providing source code here in the next post, for someone knowledgeable in both TV and PRT  languages to assess whether it can be converted to PRT and to publish its conversion for free in the forum

    – or ask for a quote for a private paid code conversion in the “trading programming services” in the “help” section from main menu above, direct link: https://www.prorealcode.com/trading-programming-services/

    – or, should none of the above occur, taking into account last year conversation, the third option would be to be considered as not really wanting a code conversion for spamming purposes (will imply posts removal by moderation).

    #245040

    My apologies for any confusion. Here is the code .

     

    #245136

    Here’s my attempt! Others will be able to code it better I’m sure!!

    RR

     

     

    defparam drawonlastbaronly=true
    defparam calculateonlastbars=3000

    BarsBefore = max(BarsBefore,1)
    BarsAfter = max(BarsAfter,1)
    StartBack = max(0,startback)

    BarLookBack = BarsAfter + 1
    if low[BarsAfter] < lowest[BarsBefore](low)[BarLookBack] THEN
    if low[BarsAfter] = lowest[BarLookBack](low) THEN
    a = a + 1
    $supportbar[a] = barindex[barsafter]
    $supportvalue[a] = low[barsafter]
    endif
    endif
    if high[BarsAfter] > highest[BarsBefore](high)[BarLookBack] THEN
    if high[BarsAfter] = highest[BarLookBack](high) THEN
    b = b + 1
    $resistancebar[b] = barindex[barsafter]
    $resistancevalue[b] = high[barsafter]
    endif
    endif

     

    if a>10 then
    drawtext(“🔼”,$supportbar[a],$supportvalue[a],dialog,bold,20)coloured(“lime”)
    drawtext(“🔼”,$supportbar[a-1],$supportvalue[a-1],dialog,bold,20)coloured(“lime”)
    endif

    if b>10 then
    drawtext(“🔽”,$resistancebar[b],$resistancevalue[b],dialog,bold,20)coloured(“red”)
    drawtext(“🔽”,$resistancebar[b-1],$resistancevalue[b-1],dialog,bold,20)coloured(“red”)
    endif
    //////compression point
    once tradepole=0
    if b>3 and a>3 then
    if $resistancevalue[b-1]>$resistancevalue[b] and $supportvalue[a-1]<$supportvalue[a] then
    compress=1
    tradepole=tradepole+1
    $tradepoleB[tradepole]=barindex
    $tradepoleP[tradepole]=$resistancevalue[b-1]+(($supportvalue[a-1]-$resistancevalue[b-1])/2)
    else
    compress=0
    endif
    if compress=1 then
    drawsegment($tradepoleB[tradepole]-5,$tradepoleP[tradepole],barindex,$tradepoleP[tradepole])style(dottedline4,5)coloured(“white”)
    if $resistancevalue[b-1]<$supportvalue[a-1] then
    liqH=$resistancevalue[b-1]
    liqL=$tradepoleP[tradepole]-(liqh-$tradepoleP[tradepole])
    drawsegment($tradepoleB[tradepole]-5,liqH,barindex,liqH)style(dottedline4,3)coloured(“white”)
    drawsegment($tradepoleB[tradepole]-5,liqL,barindex,liqL)style(dottedline4,3)coloured(“white”)
    else
    liqL=$supportvalue[a-1]
    liqH=$tradepoleP[tradepole]+($tradepoleP[tradepole]-liql)
    drawsegment($tradepoleB[tradepole]-5,liqH,barindex,liqH)style(dottedline4,3)coloured(“white”)
    drawsegment($tradepoleB[tradepole]-5,liqL,barindex,liqL)style(dottedline4,3)coloured(“white”)
    endif
    else
    if $resistancevalue[b-1]>$resistancevalue[b] then
    drawsegment($tradepoleB[tradepole],$tradepoleP[tradepole],barindex,$tradepoleP[tradepole])style(dottedline4,5)coloured(“red”)
    drawsegment($tradepoleB[tradepole],liqH,barindex,liqH)style(dottedline4,3)coloured(“red”)
    drawsegment($tradepoleB[tradepole],liqL,barindex,liqL)style(dottedline4,3)coloured(“red”)
    liq150=$tradepoleP[tradepole]-liql
    drawsegment($tradepoleB[tradepole],liqL-liq150,barindex,liqL-liq150)style(dottedline1,5)coloured(“red”)
    elsif $supportvalue[a-1]<$supportvalue[a] then
    drawsegment($tradepoleB[tradepole],$tradepoleP[tradepole],barindex,$tradepoleP[tradepole])style(dottedline4,5)coloured(“lime”)
    drawsegment($tradepoleB[tradepole],liqH,barindex,liqH)style(dottedline4,3)coloured(“lime”)
    drawsegment($tradepoleB[tradepole],liqL,barindex,liqL)style(dottedline4,3)coloured(“lime”)
    liq150=$tradepoleP[tradepole]-liql
    drawsegment($tradepoleB[tradepole],liqh+liq150,barindex,liqh+liq150)style(dottedline1,5)coloured(“lime”)
    endif
    endif

    endif
    return

    1 user thanked author for this post.
    #245146

    I cant thank you enough for your efforts much apprecaited. I will give it a go

    #245147

    It didnt quite work….I think we need help on this but thanks for input again .

    #245150

    It didnt quite work….I think we need help on this but thanks for input again .

    It is coded for black background. If you are using white background, try this :

    3 users thanked author for this post.
    #245151
Viewing 9 posts - 16 through 24 (of 24 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login