Green Line Breakout

Optuma Forums Optuma Scripting Green Line Breakout

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #68745
    Louis
    • Topics: 38
    • Replies: 65
    • Posts: 103

    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

    #68751
    Matthew
    • Topics: 5
    • Replies: 631
    • Posts: 636

    Hi,

    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 2 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