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 fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X