Show 50% level as a marker on candles

Optuma Forums Optuma General Discussion Show 50% level as a marker on candles

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #65719
    Tonia
    • Topics: 10
    • Replies: 12
    • Posts: 22

    Hi Optuma
    I’m looking for a script that will show the 50% level of each bar’s range. I’ve done a script search with no matching results and I can’t find this option in bar properties. I want to be able to display this marker primarily on daily bars, but have no idea where to start so any help would be appreciated.

    #65721
    Darren
    • Topics: 66
    • Replies: 661
    • Posts: 727

    Hi Tonia,

    You could use a Show Plot set to use (HIGH()+LOW())/2, or you can apply 1 period moving average using HL Average and it will draw at the mid-point of each candle:

    Capture

    #65723
    Darren
    • Topics: 66
    • Replies: 661
    • Posts: 727

    If you want to know when the close is above the mid-point use the BARTYPES() function in a Show Bar or scan:

    Capture

    #65731
    Tonia
    • Topics: 10
    • Replies: 12
    • Posts: 22

    Many thanks for your help Darren. I’ll see which option works best for what I need. You’ve been very helpful.

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

Pin It on Pinterest