Green Line Breakout

Optuma Forums Optuma Scripting Green Line Breakout

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #68745
    • Topics: 40
    • Replies: 69
    • Posts: 109

    Hi guys,

    Please see the attached picture. I want to write a script that will:
    1) Find every time price closes at an all-time high on a monthly chart.
    2) Draw a horizontal line from that new all-time high when the 4th bar opens, only if the previous 3 closes were below that all-time high.

    thank you

    • Topics: 5
    • Replies: 653
    • Posts: 658


    I’ve done some work on a script that looks to work, at least provide you with the building blocks to edit to do exactly what you’re wanting:

    It does not draw the line from the trigger high, it waits for the criteria to occur.

    We do not have a function that plots a HL to the end and keeps it there as new values are formed, it’s a single line that moves as a new value is triggered.

    • This reply was modified 6 months ago by Matthew.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest