Пример #1
0
 /// <summary>
 /// Draws an arc.
 /// </summary>
 /// <param name="owner">The hosting NinjaScript object which is calling the draw method</param>
 /// <param name="tag">A user defined unique id used to reference the draw object</param>
 /// <param name="isAutoScale">Determines if the draw object will be included in the y-axis scale</param>
 /// <param name="startTime">The starting time where the draw object will be drawn.</param>
 /// <param name="startY">The starting y value coordinate where the draw object will be drawn</param>
 /// <param name="endTime">The end time where the draw object will terminate</param>
 /// <param name="endY">The end y value coordinate where the draw object will terminate</param>
 /// <param name="brush">The brush used to color draw object</param>
 /// <param name="dashStyle">The dash style used for the lines of the object.</param>
 /// <param name="width">The width of the draw object</param>
 /// <param name="drawOnPricePanel">Determines if the draw-object should be on the price panel or a separate panel</param>
 /// <returns></returns>
 public static Arc Arc(NinjaScriptBase owner, string tag, bool isAutoScale, DateTime startTime, double startY, DateTime endTime,
                       double endY, Brush brush, DashStyleHelper dashStyle, int width, bool drawOnPricePanel)
 {
     return(DrawingTool.DrawToggledPricePanel(owner, drawOnPricePanel, () =>
                                              ArcCore(owner, isAutoScale, tag, int.MinValue,
                                                      startTime, startY, int.MinValue, endTime, endY, brush, dashStyle, width, false, null)));
 }
Пример #2
0
 /// <summary>
 /// Draws an arc.
 /// </summary>
 /// <param name="owner">The hosting NinjaScript object which is calling the draw method</param>
 /// <param name="tag">A user defined unique id used to reference the draw object</param>
 /// <param name="isAutoScale">Determines if the draw object will be included in the y-axis scale</param>
 /// <param name="startBarsAgo">The starting bar (x axis coordinate) where the draw object will be drawn. For example, a value of 10 would paint the draw object 10 bars back.</param>
 /// <param name="startY">The starting y value coordinate where the draw object will be drawn</param>
 /// <param name="endBarsAgo">The end bar (x axis coordinate) where the draw object will terminate</param>
 /// <param name="endY">The end y value coordinate where the draw object will terminate</param>
 /// <param name="brush">The brush used to color draw object</param>
 /// <param name="dashStyle">The dash style used for the lines of the object.</param>
 /// <param name="width">The width of the draw object</param>
 /// <param name="drawOnPricePanel">Determines if the draw-object should be on the price panel or a separate panel</param>
 /// <returns></returns>
 public static Arc Arc(NinjaScriptBase owner, string tag, bool isAutoScale, int startBarsAgo, double startY, int endBarsAgo,
                       double endY, Brush brush, DashStyleHelper dashStyle, int width, bool drawOnPricePanel)
 {
     return(DrawingTool.DrawToggledPricePanel(owner, drawOnPricePanel, () =>
                                              ArcCore(owner, isAutoScale, tag, startBarsAgo,
                                                      Core.Globals.MinDate, startY, endBarsAgo, Core.Globals.MinDate, endY, brush, dashStyle, width, false, null)));
 }
Пример #3
0
 /// <summary>
 /// Draws time cycles.
 /// </summary>
 /// <param name="owner">The hosting NinjaScript object which is calling the draw method</param>
 /// <param name="tag">A user defined unique id used to reference the draw object</param>
 /// <param name="startTime">The starting time where the draw object will be drawn.</param>
 /// <param name="endTime">The end time where the draw object will terminate</param>
 /// <param name="brush">The brush used to color draw object</param>
 /// <param name="areaBrush">The brush used to color the fill region area of the draw object</param>
 /// <param name="areaOpacity"> Sets the level of transparency for the fill color. Valid values between 0 - 100. (0 = completely transparent, 100 = no opacity)</param>
 /// <param name="drawOnPricePanel">Determines if the draw-object should be on the price panel or a separate panel</param>
 /// <returns></returns>
 public static TimeCycles TimeCycles(NinjaScriptBase owner, string tag, DateTime startTime, DateTime endTime, Brush brush, Brush areaBrush, int areaOpacity, bool drawOnPricePanel)
 {
     return(DrawingTool.DrawToggledPricePanel(owner, drawOnPricePanel, () =>
                                              TimeCyclesCore(owner, tag, int.MinValue, int.MinValue, startTime, endTime, brush, areaBrush, areaOpacity, false, null)));
 }
Пример #4
0
 /// <summary>
 /// Draws time cycles.
 /// </summary>
 /// <param name="owner">The hosting NinjaScript object which is calling the draw method</param>
 /// <param name="tag">A user defined unique id used to reference the draw object</param>
 /// <param name="startBarsAgo">The starting bar (x axis coordinate) where the draw object will be drawn. For example, a value of 10 would paint the draw object 10 bars back.</param>
 /// <param name="endBarsAgo">The end bar (x axis coordinate) where the draw object will terminate</param>
 /// <param name="brush">The brush used to color draw object</param>
 /// <param name="areaBrush">The brush used to color the fill region area of the draw object</param>
 /// <param name="areaOpacity"> Sets the level of transparency for the fill color. Valid values between 0 - 100. (0 = completely transparent, 100 = no opacity)</param>
 /// <param name="drawOnPricePanel">Determines if the draw-object should be on the price panel or a separate panel</param>
 /// <returns></returns>
 public static TimeCycles TimeCycles(NinjaScriptBase owner, string tag, int startBarsAgo, int endBarsAgo, Brush brush, Brush areaBrush, int areaOpacity, bool drawOnPricePanel)
 {
     return(DrawingTool.DrawToggledPricePanel(owner, drawOnPricePanel, () =>
                                              TimeCyclesCore(owner, tag, startBarsAgo, endBarsAgo, Core.Globals.MinDate, Core.Globals.MinDate, brush, areaBrush, areaOpacity, false, null)));
 }