Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compile Problem with Draw.Ray

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

    Compile Problem with Draw.Ray

    The following works with Draw.Line but not for Draw.Ray the compiler does not like the number of overlads or Arguement 4 and 6. Each command is preferenced by the Help file command syntax followed by the actual code I used. Draw.line works Draw.Ray will not compile. I posted the Drawline because it is identical with its parameters. It seems to want to convert the Time Arguements to an Int ( probably barsback ).

    // Draw.Line(NinjaScriptBase owner, string tag, bool isAutoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Brush brush, DashStyleHelper dashStyle, int width)

    Draw.Line( this, drawtag, false , StartTime, Lin,EndTime, Lin, Brushes.Black, DashStyleHelper.Solid, 3);

    // Draw.Ray(NinjaScriptBase owner, string tag, DateTime startTime, double startY, DateTime endTime, double endY, Brush brush, DashStyleHelper dashStyle, int width)

    Draw.Ray(this, "BRSR50", false ,StartTime, Lin,EndTime, Lin, Brushes.Black, DashStyleHelper.Solid,3 );

    Jerry

    #2
    Hello Jerry,

    Your line of code does not match the overload you have posted with it.

    Code:
    // Draw.Ray(NinjaScriptBase owner, string tag, DateTime startTime, double startY, DateTime endTime, double endY, Brush brush, DashStyleHelper dashStyle, int width)
    
    Draw.Ray(this, "BRSR50", [B]false[/B] ,StartTime, Lin,EndTime, Lin, Brushes.Black, DashStyleHelper.Solid,3 );
    You are using autoscale as false. There is no autoscale overload when using datetime objects.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I don't know why I am coding, I can't even count.

      Thanks Chelsea

      Comment

      Latest Posts

      Collapse

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