Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

PlotStyle Line and Dot

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

    PlotStyle Line and Dot

    I have an indicator that is only intended to plot intermittently.
    If I use PlotStyle.Line the chart does not plot anything visible if the indicator plots for an isolated bar (uses reset for bars on each side).
    If I use Plotstyle.Dot (or similar) then I do get a visible plot, but any trend may not be so obvious when contiguous bars ARE plotted.

    What I want is a PlotStyle (say called LineAndDot) that always plots a visible marker whenever the indicator code sets a value (like existing PlotStyle=dot), but also joins the dots with a line when plots are contiguous (like existing PlotStyle=line).

    Most other charting packages have this facility. For instance Excel calls it the "line with markers displayed at each data value" chart type.

    To get this effect in NT currently I have to put two instances of the same indicator on the chart. One set to Plotstyle.Line, the other set to PlotStyle.Dot

    Can a PlotStyle.LineAndDot be added to NT7 please?

    #2
    Hello,

    I will forward this recommendation to development!

    Thanks for submitting it!

    Comment


      #3
      DavE,

      Are you a programmer or have done some NinjaScript in the past? If I remember correctly you are.

      I look forward to assisting you further.

      Comment


        #4
        Yes I am a programmer.
        I realise there is a way for the user to program this effect. But I am suggesting this should be built in.

        For instance using "Microsoft Chart Controls for .NET" I can specify ChartType="Line" and MarkerStyle="Diamond" and I get the required effect without additional user programming.

        The NT programmers have already written the underlying code to implement the two parts of the effect. All thats needed is to wrap the effect of PlotStyle.Line and and PlotStyle.Dot into a single new PlotStyle.

        Comment


          #5
          Hello,

          Understood. Thanks again.

          Let me know if I can be of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by pechtri, 06-22-2023, 02:31 AM
          10 responses
          124 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Yesterday, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Yesterday, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Yesterday, 03:01 PM
          2 responses
          22 views
          0 likes
          Last Post helpwanted  
          Working...
          X