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 bortz, 11-06-2023, 08:04 AM
    47 responses
    1,606 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    13 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X