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

Most appropriate add-on type for "distance/value to draw object" add-on .

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

    Most appropriate add-on type for "distance/value to draw object" add-on .

    Hi,

    Example:- I want to draw a box and then mark that box object as the target object and I want to have a streaming output of the distance ( in value or ticks etc ) from the current price ...for stop purposes.

    So... to elaborate on the example...

    Let's say the bounds of the Box are currently at 3200 ( top extremity ). Current price is at 3300. Display "$125" in top corner ( 100 * $1.25 MES ) or something along those lines. And update this value for every price change.

    So the question is... Should I use an" indicator" to manage this Heads-Up-Display of the distance to my stop zone ( or target zone even ... and so on )?

    Or should I use a general window add-on that references any chart window and renders to it after detecting the object and doing calcs every tick or price update?

    Or something else?

    I would also develop this further to include profit targets and even a "Helper" strategy, or similar.

    I'm happy to change tactics on this over time, but just need a starting point.

    Very much appreciate any input.

    ,Bundy





    #2
    Hello Bundy76,

    For what you described an indicator would work best. Indicators can render or draw on the chart to create a live output display. OnRender or Drawing objects would likely be the best path forward for showing data from the indicator. That would also allow the code to be used from a strategy if you wanted.


    I look forward to being of further assistance.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by JoMoon2024, Today, 06:56 AM
    0 responses
    6 views
    0 likes
    Last Post JoMoon2024  
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    17 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    5 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,786 views
    0 likes
    Last Post Leafcutter  
    Started by poplagelu, Today, 05:00 AM
    0 responses
    3 views
    0 likes
    Last Post poplagelu  
    Working...
    X