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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    140 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X