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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    28 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    17 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    137 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X