SHOW PLOT DO NOT SHOW PLOT

Optuma Forums Optuma Scripting SHOW PLOT DO NOT SHOW PLOT

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #62038
    Axel
    • Topics: 9
    • Replies: 13
    • Posts: 22

    HI,

    could anyone either show me the steps or perhaps show the video explaining the following – if it possible at all actually.

    What I do not get yet is how to show and hide a plot when the conditions are met or not.
    (example) Plot a moving average ONLY IF i.e. today’s low is lower than both yesterdays and the 2 days ago. If it is not then plot nothing. Which function do I need to use for that ? I tried around w/ the IF and SWITCH function but got nowhere.

    Thanks
    Axel

    #62047
    Axel
    • Topics: 9
    • Replies: 13
    • Posts: 22

    Hi,

    I found one post topic that partially asnwers my quest:

    Show Plot


    (messages 44703 and #44707)

    I could indeed play with colors if the conditions are met. For example if today’s LOW() is lower than say  the lows of the last 2 days then use Red, if not then use i.e. the background colour. (=not visible). But this is not a very elegant solution imho .

    To reformulate my original post in a more different way: Is there no function to only plot when the conditions are met ? (partial plots)

    Thanks
    Axel

    #62051
    Darren
    • Topics: 66
    • Replies: 634
    • Posts: 700

    Hi Axel,

    Unfortunately this isn’t possible as a Show Plot line has to display a value, so the only option is to change the colour if you would like to see partial plots. A Show Bar or Show View will only show when a condition is true.

    #62053
    Axel
    • Topics: 9
    • Replies: 13
    • Posts: 22

    Thank you for your reply Darren.

    Reason why I thought it could be is the start date function. It could have implied that there is stop date too. Anyway, I will work with the colour changes.

    A good week to you all ,
    Axel

    #62067
    Axel
    • Topics: 9
    • Replies: 13
    • Posts: 22

    Hi Darren,

    what about something like an ‘invisible’ colour instead?

    Just a thought,
    Axel

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

Pin It on Pinterest