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 asd32, Today, 11:45 AM
      2 responses
      15 views
      0 likes
      Last Post asd32
      by asd32
       
      Started by GonzaloTradingSystems, Today, 05:30 AM
      1 response
      19 views
      0 likes
      Last Post GonzaloTradingSystems  
      Started by styvenrutchell, Today, 12:42 PM
      0 responses
      5 views
      0 likes
      Last Post styvenrutchell  
      Started by tkaboris, Today, 11:09 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by marco231, 03-20-2024, 03:56 PM
      5 responses
      159 views
      0 likes
      Last Post bnoisette  
      Working...
      X