Show Bar Help

Optuma Forums Optuma Scripting Show Bar Help

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #66597
    Louis
    • Topics: 19
    • Replies: 26
    • Posts: 45

    Hi,

    I have scripted an indicator which is working perfectly. I would like to add an arrow to the price using the ShowBar tool when the indicator crosses above 60 only after it crosses below 40. I cant seem to get this to work. Please help . Thank you.

    #66610
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    I don’t have the presaved scripts you are referring to in your code, so can’t show you a fully edited version, but the last line should be using SignalAfter() rather than Switch()

    https://help.optuma.com/kb/faq.php?id=932

    Once setup to use SignalAfter() it should work as expected.

    #66615
    Louis
    • Topics: 19
    • Replies: 26
    • Posts: 45

    Thank you Mathew. This works perfectly. In a watchlist I want to count the number of bars since this signal occurred. Here is the script I have, but the watchlist does not show any values at all?  Please see the screenshot.

    #66620
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    Try…

     

    #66621
    Louis
    • Topics: 19
    • Replies: 26
    • Posts: 45

    Hi. As much as I want that to work, the watchlist column is still blank. Any ideas?

    #66622
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    I can’t test any further without knowing what the underlying code is for the script named: StochClose 125 5

    I’d also want to know if the script produces any results with a Show View?

    #66623
    Louis
    • Topics: 19
    • Replies: 26
    • Posts: 45

    Hi. Here is the script for StochClose 125 5. The Show View looks like it understands but is off by 1 bar. Please see attached screenshot.

    #66642
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    The values are there, but are out of view (the header is long, you can see the scroll bar along the bottom)…

    Ex9

    Move it across to the right and the hidden values will come into view.

    The values are 1 different as the script treats the trigger day as zero, while your Time Measure includes the trigger day.

    #66645
    Louis
    • Topics: 19
    • Replies: 26
    • Posts: 45

    Thank you so much. Have a great week.

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

Pin It on Pinterest