Example #1
0
 public static void DrawDot(NinjaScriptBase owner,
                            DrawingProperties drawingProperties,
                            int pointIndex,
                            int barIndex,
                            double price,
                            Brush dotColor)
 {
     Draw.Dot(owner, ("Dot " + pointIndex), drawingProperties.IsDotAutoScale,
              ConvertBarIndexToBarsAgo(owner, barIndex), price,
              dotColor).OutlineBrush = drawingProperties.UpDotOutlineColor;
 }
Example #2
0
 public static void DrawText(NinjaScriptBase owner,
                             DrawingProperties drawingProperties,
                             int pointIndex,
                             int barIndex,
                             double price,
                             int yPixelOffSet)
 {
     Draw.Text(owner, ("Text " + pointIndex), drawingProperties.IsTextAutoScale, pointIndex.ToString(),
               ConvertBarIndexToBarsAgo(owner, barIndex), price, yPixelOffSet, drawingProperties.TextColor,
               drawingProperties.TextSimpleFont, drawingProperties.TextAligmentPropertie,
               drawingProperties.TextOutlineBrush, drawingProperties.TextAreaBrush, drawingProperties.TextAreaOpacity);
 }
Example #3
0
 public static void DrawLine(NinjaScriptBase owner,
                             DrawingProperties drawingProperties,
                             int pointIndex,
                             int barIndex1,
                             double price1,
                             int barIndex0,
                             double price0)
 {
     Draw.Line(owner, "Line type 1" + pointIndex, false,
               ConvertBarIndexToBarsAgo(owner, barIndex1), price1,
               ConvertBarIndexToBarsAgo(owner, barIndex0), price0,
               drawingProperties.LineColor, drawingProperties.LineDashStyle, drawingProperties.LineWidth);
 }