High of the last x bars when activation

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #156306 quote
    Tanou
    Participant
    Senior

    Hello everyone! i wish you an happy new year! 😉

    I would like to know if you could help me on something I think is quite simple but I still can’t figure it out…

     

    I would like to verify that when the high of heikin-ashi crosses over Senkou Span A that the high of this candle is the high of the x last bars (for example of the 20 last bars).

     

    Could someone give me some help? 🙂

     

    Thanks!

    #156320 quote
    robertogozzi
    Moderator
    Master

    There you go:

    MyCond = 0
    IF HAhigh CROSSES OVER SenkouSpanA THEN
       IF HAhigh = highest[20](HAhigh) THEN
          MyCond = 1
       ENDIF
    ENDIF
    #158252 quote
    JC_Bywan
    Moderator
    Master

    Moving this topic from french probuilder forum to english probuilder forum, please use the posting rules in the yellow box below giving guidelines on where to post what for future messages, thank you.

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

High of the last x bars when activation


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Tanou @tanou Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by JC_Bywan
5 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/04/2021
Status: Active
Attachments: No files
Logo Logo
Loading...