Text Above Candles for Swing High and Swing Low

Forums ProRealTime English forum ProBuilder support Text Above Candles for Swing High and Swing Low

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 15 posts - 1 through 15 (of 25 total)
  • #200627 Report

    Hello, i’m new here, can somobody help me to write a code to have the value of the Swing High and Low above or under the Candles?

    thank you

     

    #200628 Report
    JS

    Hi @Kole96

    How do you define a swing high and a swing low?

    #200630 Report

    Swing High H2<H1 and H<H1

    Swing Low L2>L1 and L1<L

    #200638 Report
    JS

    Ok, and how do you define the value of the swing?

    #200639 Report

    Jsut want to have the value displayed of a Pivothighs and Pivotlows above or below the candle like we have it with some indicators in tradingview.

    they display a value in a box with the arrow

    #200642 Report
    JS

    Should it look something like this?

    (Here you only see the Swing High)

    Attachments:
    #200645 Report

    Yes

    #200646 Report
    JS

    OK, nice.

    I’m going to try to finish the indicator tonight.

    #200647 Report

    Thank you

    #200655 Report
    JS

    Hi @Kole96

    Swing High:

    1. Find the Highest High over the past 20 periods (the period is adjustable).
    2. Check if the previous candle makes a lower High than the Highest High.
    3. Check if the next candle makes a lower High than the Highest High

    In principle, they are simple conditions that can possibly be extended with additional conditions for more adjacent candles. There are now three candles involved in a swing and you could expand this to, for example, 5 candles.

    Swing Low is the mirror image of Swing High

    Attachments:
    3 users thanked author for this post.
    #200660 Report

    Oh thank you so much

    2 users thanked author for this post.
    #200725 Report

    hi every one hi @JS

    I do some modification, but it’s just for learning and helping, what do you think about my code about : ù
    – Drawing button, do you think it’s a goods idea, do have some tips ?
    – about IF condition, I aded tomuch condition, do you think it’s more helper for prt CPU or more complicated this way ?



    @Kole96
    I hope this way with offset * pipsize will help you, tks to @robertogozzi he helped me one time with this tips

    Attachments:
    2 users thanked author for this post.
    #200727 Report

    other question, I just trayed to use this code on a Daily chat but with Weekly time frame, and I got all the text and the arrow only in the bigining of the chat, how to solve this problem ? I think we have to get the position of weekly candle for draw ?

    Attachments:
    1 user thanked author for this post.
    avatar JS
    #200733 Report

    At first glance I can’t find anything wrong.Try increasing the units up to 5K, or even more.

    You should post the ITF file, as some variables are missing, so I can test it thoroughly.

     

     

     

     

    1 user thanked author for this post.
    #200736 Report

    so this the ITF file “Temps – Swing High”, it’s working correctly like on the Photo 01

    but this ITF file “Temps – Swing High Weekly” with the instruction in line one with TimeFrame (Weekly) on the Daily chart I have the Photo 02 :

    the Idea it’s just to use the idea of SwingHigh and SwingLow on a daily chart with weekly value

    Attachments:
    1. Temps-Swing-High.itf
    2. Temps-Swing-High-Weekly.itf
Viewing 15 posts - 1 through 15 (of 25 total)

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