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
    AvatarAxel
    • Topics: 9
    • Replies: 12
    • Posts: 21

    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
    AvatarAxel
    • Topics: 9
    • Replies: 12
    • Posts: 21

    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
    DarrenDarren
    • Topics: 63
    • Replies: 557
    • Posts: 620

    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
    AvatarAxel
    • Topics: 9
    • Replies: 12
    • Posts: 21

    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
    AvatarAxel
    • Topics: 9
    • Replies: 12
    • Posts: 21

    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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close