Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Use of SharpDX to Draw Lines

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

    Use of SharpDX to Draw Lines

    Dear Support,

    Here is an example situatuion: I can draw a line based on certain conditions using the default Draw.Line() to either show the last drawn line or all historical lies drawn by simply adding "+CurrentBar" to string tag as show below

    Draw.Line(NinjaScriptBase owner, string tag, ....) to show only the last line drawn
    Draw.Line(NinjaScriptBase owner, string tag + CurrentBar, ....) to show all historical lines drawn

    Here is the question: I want to use SharpDX rendering of the lines for resource efficiency. However, I want to have an option to render only the last line rendered or all the historical lines rendered. Is that possible in SharpDX? If so, how such an option is coded in SharpDX to allow switching between rendering all historical lins or only the last redered line? An example would be appreciated.

    Many thanks.
    Last edited by aligator; 07-12-2022, 01:22 PM.

    #2
    Hello aligator,

    Please refer to your other post on this question: https://ninjatrader.com/support/foru...x-to-draw-line

    Comment

    Latest Posts

    Collapse

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