Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by MarianApalaghiei, Today, 10:49 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by love2code2trade, Yesterday, 01:45 PM
    4 responses
    28 views
    0 likes
    Last Post love2code2trade  
    Started by funk10101, Today, 09:43 PM
    0 responses
    8 views
    0 likes
    Last Post funk10101  
    Started by pkefal, 04-11-2024, 07:39 AM
    11 responses
    37 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Yesterday, 08:51 AM
    8 responses
    46 views
    0 likes
    Last Post bill2023  
    Working...
    X