Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display value to show what % of candle the open/close sits within?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Display value to show what % of candle the open/close sits within?

    Not sure if this already exists, but is there a way to add an indicator on something visual to my charts so that I can see what percentage of the candle the open/close sits within?

    I'm currently calculating this manually as:

    [1] The higher value of Open or Close of the candle
    [2] Low of Candle
    [3] High of Candle

    ([1]-[2]) / ([3]-[2])

    and if possible to be able to select a parameter that then only displays the value if it is > or < that user-specified value.

    Thanks

    #2
    Welcome to the forums timcjpfx!

    You may check our User App Share for an existing indicator that does this, and you can also use Draw.Text to draw this calculated percentage on a chart.

    User App Share - https://ninjatraderecosystem.com/user-app-share/

    Draw.Text - https://ninjatrader.com/support/help...?draw_text.htm

    If you are new to NinjaScript, I suggest to view the Strategy Builder 301 and NinjaScript Editor 401 tutorials which can direct you to building logic with the Strategy Builder and using that generated code in the NinjaScript Editor. This a great way to get introduced to NinjaScript. Out open source indicators can also be references as examples.

    Strategy Builder 301 — https://www.youtube.com/watch?v=_KQF2Sv27oE

    NinjaScript Editor 401 - https://www.youtube.com/watch?v=BA0W4ECyVdc

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    The information provided in this post is publicly available.

    Please let us know if we can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    595 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X