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 Barry Milan, Yesterday, 10:35 PM
    5 responses
    18 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    13 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    12 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by nandhumca, Today, 03:41 PM
    0 responses
    8 views
    0 likes
    Last Post nandhumca  
    Working...
    X