Highlight After A Signal

Optuma Forums Optuma Scripting Highlight After A Signal

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

    Hi,

    I am using a Show Bar tool. It is set to line and shades over the bar when a specific signal occurs. I would like the line to shade the chart forward, say 100 bars from the initial signal. How would I do this?

    Here is the signal:

    thank you,

    #68887
    Darren
    • Topics: 70
    • Replies: 871
    • Posts: 941

    Hi Louis,

    You can offset the results using square brackets eg for 100 bars:

    #68889
    Louis
    • Topics: 38
    • Replies: 65
    • Posts: 103

    Hi Darren. Thank you. My apologies for not  being clear.

    I am looking for a signal to be visible on the chart the day it is triggered and the following following 99 days.

    Please see the attached picture. The green line is the initial signal from the show bar tool. The green box is the time I would like be shaded in addition to the shading on the day of each signal. I hope that helps. I can’t find anything in the forum. Sorry, and thank you.

    #68897
    Darren
    • Topics: 70
    • Replies: 871
    • Posts: 941

    Thanks Louis. To shade the area use this TimeSinceSignal formula in a Show View, and then drag it over the price chart:

    It will count from every time the signal was true, so there may be overlaps if the signals occurred within 100 days of each other. As such, it will extend 100 bars from the last signal:

    Capture

    #68901
    Louis
    • Topics: 38
    • Replies: 65
    • Posts: 103

    Thanks Darren. Works perfectly.

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest