Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing capabilities should be unified across strategy/indicator

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

    Drawing capabilities should be unified across strategy/indicator

    Currently in NT7,
    both Strategy / Indicator has same drawing capabilities,
    but they are not unified and provided from ONE NTERFACE, for example IDrawable.

    This would be very nice, because we (users) could could create general drawing libraries, that could operate on both strategy/indicator seamlessly. The drawing capabilities are completely the same, so why to not expose single interface?

    For example we have general drawing library, that provides us some high-level drawing, but if have to make it work in indicators and also strategies, we have to create to separate methods - one with Strategy parameter, another one with Indicator parameter.

    How nice it could be, if we would write just:
    Code:
    [FONT="Courier New"]public void DrawComplexThing(IDrawable drawable, ...)[/FONT]
    instead of duplicating code by writing 2 same methods with completely same content:
    Code:
    [FONT="Courier New"]public void DrawComplexThing(Strategy s, ...)
    public void DrawComplexThing(Indicator i, ...)[/FONT]
    Last edited by misova; 06-08-2015, 06:28 AM.

    #2
    NinjaTrader 8 drawing tools have been completely reworked, and are now implemented via a static partial "Draw" class which unifies them across all NinjaScriptBase objects.

    Drawing tools are also now open source allowing you to modify current implementation or create your own drawing tools.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    668 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X