ATR bands indicator Upgrade

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

    Hello everyone,

     

    I am currently using Nicolas’ Multiple ATR bands indicator (and I thank him very much on the way for this!):

    Multiple ATR bands

     

    With it, I am using the Fibonacci to determine my gain / loss ratio (please see attachment).

    Although everytime, I have to move it manually around my candlestick of interest.

    Which, if not time-consuming per se , can make me lose focus and some precious seconds (I am a scalper on multiple stocks).

     

    Therefore, I would like to know if there was a possibility to adapt this indicator to fit my demand?

    Which is to have the band placed under / over each candlestick, with a 2 pips-distance, so as to stop placing the Fibonacci myself and have it immediately visible on the chart.

    I indeed only take a trade when the distance of the ATR (14) is respected.

    Or maybe if you knew if there is already such an indicator existing?

     

    In any case, thank you very much for you time!

    #220687 quote
    Nicolas
    Keymaster
    Master

    So there is no use of ATR anymore, right? You only need to set the 100 to 400% fibonacci retracement from the Close+2 points of the current candlestick?

    #220707 quote
    JC_Bywan
    Moderator
    Master

    Hi ChristosDG, after your reply to Nicolas when I know you have read this, as the topic is in English I will then move it from french forum “support probuilder” where initially posted to the english “probuilder support” forum.

    In case you were accessing only from french forum so far, you will then be able to reach this moved topic either from your profile page on the “topics” tab: https://www.prorealcode.com/user/christosdg/?view=forums-topics

    or in the english “probuilder support” forum, found in this list of forums grouped by language when scrolling down: https://www.prorealcode.com/forums/

    #220822 quote
    ChristosDG
    Participant
    New

    @Nicolas

    What I need is actually some kind of lines, which crossed by the candlestick (one way or the other), would mean that that candlestick crossed it starting from 2 pips away from its extremities – to the distance of an ATR of 14.

    Please see attachment to get a better idea.

    Thanks…

     

     

    @JC_Bywan

    Sorry for the confusion…

    #221271 quote
    ChristosDG
    Participant
    New

    Please… anyone?

    #221326 quote
    JC_Bywan
    Moderator
    Master

    Hello,

    if I understand correctly the construction of the 2 lines you want, here is the code to disply them:

    monATR=AverageTrueRange[14](close)
    
    lignesup=low-2*pipsize+monatr
    ligneinf=high+2*pipsize-monatr
    
    return lignesup coloured("blue"), ligneinf coloured("green")
    ChristosDG thanked this post
    #221336 quote
    ChristosDG
    Participant
    New

    @JC_Bywan

    This is to be indeed EXACTLY what I have been looking for 🙂

    Thank you so much for this!

     

    I deleted the pip size distance and delayed the data from the previous candlestick

    A last minute tweak 🙂

    monATR=AverageTrueRange[14](close)

    lignesup=Low[1]+monatr
    ligneinf=High[1]-monatr

    return lignesup coloured(“yellow”), ligneinf coloured(“yellow”)

     

    Thanks again for your time 😉

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

ATR bands indicator Upgrade


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
ChristosDG @christosdg Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by ChristosDG
2 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/11/2023
Status: Active
Attachments: 3 files
Logo Logo
Loading...