Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time comsuptions with indicators and brushes

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

    Time comsuptions with indicators and brushes

    Hi,

    I have several charts with several indicators.
    I'm concerned about computational time comsuption and I wanted to know, which could be the best option

    A) one indicator in one chart, calling to external indicator
    B) all the indicators that I need in the same indicator
    (I have the feeling, option B is faster)

    Brushes:
    I think that standard brushes (i.e Brushes.Blue)
    are faster than user defined brushes (SolidColorBrush samplebrushes= new SolidColorBrush(Colors.Red) {Opacity = .90f}

    What is faster when I want to have indicators in several chats at the sam time:
    A) put each indicator in each chart
    B) put in one chart an indicator built with several AddSeries inside, calculating all AddSeries and, when drawing the lines, drawing them in "Global Mode":
    Draw.Line(NinjaScriptBaseowner,stringtag,boolisAutoScale,DateTimestartTime,doublestartY,DateTimeendTime,doubleendY, TRUE, stringtemplateName)​

    I have the feeling, that drawing in Global requires a lot of time.

    Thanks for your inputs!!!!!!
    Last edited by artson; 10-22-2022, 05:11 AM.

    #2
    Hello artson,

    Thanks for your post.

    Standard pre-defined brushes would consume fewer resources than user-defined brushes.

    See this help guide page for information about working with brushes: https://ninjatrader.com/support/help...th_brushes.htm

    Using one indicator with several additional data series added and drawing an object with IsGlobal set to true will require more resources to calculate and render the drawing object. Ultimately, take a longer amount of time to process and render.

    Adding each indicator to the chart would likely take less time to process and render compared to one indicator with several added series that draw objects globally.

    NinjaScript Best Practices: https://ninjatrader.com/support/help..._practices.htm

    Please let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X