Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add price markers to y-axis

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

    #16
    Hello jeronymite,

    Thank you for your post.

    Your request and detail has been added to the SFT-335 feature request.

    Please let me know if you have any questions.

    Comment


      #17
      Feature Enhancement: Price Markers via Transparent PlotStyle

      Many thanks, Patrick!
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #18
        did anyone find a way to add or draw a custom price marker to the price axis without adding a collection of plots to modify?

        Comment


          #19
          Another vote for having the ability to set price markers on the y-axis without using plots.
          These independent markers should also support the FormatPriceMarker method, so you can also display custom text on these markers.

          Comment


            #20
            Hello mafon,

            Thank you for your vote.

            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment


              #21
              Please add my vote. I thought it would be as simple as setting 0 width for the line.

              Comment


                #22
                hurleydoo,

                Vote added!
                Josh G.NinjaTrader Customer Service

                Comment


                  #23
                  Please add my vote too. This is something I already requested/posted about some time ago..

                  Comment


                    #24
                    pjsmith,

                    I did not see that your vote had been included for this specific feature request yet, so I just added it.
                    Josh G.NinjaTrader Customer Service

                    Comment


                      #25
                      Hello,

                      this is still something that is quite nagging. However, if anybody Needs another work around. It is not 100% smooth, as when Scrolling back, the markers are not displayed immediately, but it works quite nice anyway, hiding the plot by Setting it transparent. It will only set the last visible bar to the original plot Colors.

                      PHP Code:
                      
                      protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
                        {
                      
                      
                         if (ChartBars.ToIndex != lastToIndex)
                         {
                          for (int i = ChartBars.FromIndex; i < ChartBars.ToIndex; i++)
                          {
                           try
                           {
                            PlotBrushes[0].Set(i, Brushes.Transparent);
                            PlotBrushes[1].Set(i, Brushes.Transparent);
                            PlotBrushes[2].Set(i, Brushes.Transparent);
                            PlotBrushes[3].Set(i, Brushes.Transparent);
                            PlotBrushes[4].Set(i, Brushes.Transparent);
                           }
                           catch (Exception err1)
                           {
                            Print(err1);
                           }
                          }
                          try
                          {
                           PlotBrushes[0].Set(ChartBars.ToIndex, ChartBars.ToIndex == currentBar ? Plots[0].Brush : Brushes.Gray);
                           PlotBrushes[1].Set(ChartBars.ToIndex, ChartBars.ToIndex == currentBar ? Plots[1].Brush : Brushes.Gray);
                           PlotBrushes[2].Set(ChartBars.ToIndex, ChartBars.ToIndex == currentBar ? Plots[2].Brush : Brushes.Gray);
                           PlotBrushes[3].Set(ChartBars.ToIndex, ChartBars.ToIndex == currentBar ? Plots[3].Brush : Brushes.Gray);
                           PlotBrushes[4].Set(ChartBars.ToIndex, ChartBars.ToIndex == currentBar ? Plots[4].Brush : Brushes.Gray);
                          }
                          catch (Exception err1)
                          {
                           Print(err1);
                          }
                      
                         }
                      
                      
                      
                        } 
                      

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      560 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      325 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      101 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      547 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      547 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X