Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

plotting price on right side of chart

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

    plotting price on right side of chart

    is there a way to have the price plotted on top of the horizontal line on the right side of the chart?
    currently i can set the color of the line and also would like to be able to have a option of a "dotted line" if at all possible



    #region
    Using declarations
    using System;
    using System.Diagnostics;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.ComponentModel;
    using System.Xml.Serialization;
    using NinjaTrader.Cbi;
    using NinjaTrader.Data;
    using NinjaTrader.Gui.Chart;
    #endregion
    // This namespace holds all indicators and is required. Do not change it.
    namespace NinjaTrader.Indicator
    {
    ///<summary>
    /// Enter the description of your new custom indicator here
    ///</summary>
    [Description("Enter the description of your new custom indicator here")]
    [Gui.Design.DisplayName("CrunchLines")]
    publicclass CrunchLines : Indicator
    {
    #region Variables
    // Wizard generated variables
    privatedouble l1i = 1; // Default setting for L1i
    // User defined variables (add any user defined variables below)
    #endregion
    ///<summary>
    /// This method is used to configure the indicator and is called once before any bar data is loaded.
    ///</summary>
    protectedoverridevoid Initialize()
    {
    Add(new Plot(Color.FromKnownColor(KnownColor.Magenta), PlotStyle.Line, "Plot0"));


    Add(new Line(Color.FromKnownColor(KnownColor.White), 12739, "L01"));
    Add(new Line(Color.FromKnownColor(KnownColor.White), 12494, "L01"));
    Add(new Line(Color.FromKnownColor(KnownColor.White), 12109, "L01"));
    Add(new Line(Color.FromKnownColor(KnownColor.White), 11584, "L01"));

    CalculateOnBarClose = false;
    Overlay =
    true;
    PriceTypeSupported =
    false;
    //double L1i = 13189.0;
    PaintPriceMarkers =true;

    #2
    This is not possible.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    49 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    141 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X