script for ATH/ATR % levels

Optuma Forums Optuma Scripting script for ATH/ATR % levels

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #54335
    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

    • This topic was modified 2 years ago by Abasaheb.
    #54337
    Trevor R
    • Topics: 115
    • Replies: 339
    • Posts: 454

    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