script for ATH/ATR % levels

Optuma Forums Optuma Scripting script for ATH/ATR % levels

This topic contains 1 reply, has 2 voices, and was last updated by Avatar Trevor R 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #54335
    Avatar
    Abasaheb
    • Topics: 1
    • Replies: 0
    • Posts: 1

    Hi Everyone

    do anybody knows how to script all % levels of ATH/ATR.

    so far I could only managed to create 50% ATH/ATR

    Codes are as followed

    50% All time Range

    P1 = LOWESTLOW(RANGE=All Time) ; P2 = HIGHESTHIGH(RANGE=All Time) ; (P1 + P2) / 2

    50% All time high

    HIGHESTHIGH(RANGE=All Time)*0.50

    I would like to create a script that would have multiple levels in one. such as 16.6%, 25%, 33.3%, 38.2%, 50% and so on.

    TIA

    #54337
    Avatar
    Trevor R
    • Topics: 42
    • Replies: 140
    • Posts: 182

    Hi Abasaheb,

    It really helps us help you if you post the script and screenshot  that you have created thus far. Then we can see what you are trying to achieve and add from there.

    Cheers

    Trevor

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close