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

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 chartControlChartScale chartScale)
                        {


                         if (
                      ChartBars.ToIndex != lastToIndex)
                         {
                          for (
                      int i ChartBars.FromIndexChartBars.ToIndexi++)
                          {
                           try
                           {
                            
                      PlotBrushes[0].Set(iBrushes.Transparent);
                            
                      PlotBrushes[1].Set(iBrushes.Transparent);
                            
                      PlotBrushes[2].Set(iBrushes.Transparent);
                            
                      PlotBrushes[3].Set(iBrushes.Transparent);
                            
                      PlotBrushes[4].Set(iBrushes.Transparent);
                           }
                           catch (
                      Exception err1)
                           {
                            Print(
                      err1);
                           }
                          }
                          try
                          {
                           
                      PlotBrushes[0].Set(ChartBars.ToIndexChartBars.ToIndex == currentBar Plots[0].Brush Brushes.Gray);
                           
                      PlotBrushes[1].Set(ChartBars.ToIndexChartBars.ToIndex == currentBar Plots[1].Brush Brushes.Gray);
                           
                      PlotBrushes[2].Set(ChartBars.ToIndexChartBars.ToIndex == currentBar Plots[2].Brush Brushes.Gray);
                           
                      PlotBrushes[3].Set(ChartBars.ToIndexChartBars.ToIndex == currentBar Plots[3].Brush Brushes.Gray);
                           
                      PlotBrushes[4].Set(ChartBars.ToIndexChartBars.ToIndex == currentBar Plots[4].Brush Brushes.Gray);
                          }
                          catch (
                      Exception err1)
                          {
                           Print(
                      err1);
                          }

                         }



                        } 

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by TraderBCL, Today, 04:38 AM
                      1 response
                      4 views
                      0 likes
                      Last Post bltdavid  
                      Started by martin70, 03-24-2023, 04:58 AM
                      14 responses
                      105 views
                      0 likes
                      Last Post martin70  
                      Started by Radano, 06-10-2021, 01:40 AM
                      19 responses
                      606 views
                      0 likes
                      Last Post Radano
                      by Radano
                       
                      Started by KenneGaray, Today, 03:48 AM
                      0 responses
                      4 views
                      0 likes
                      Last Post KenneGaray  
                      Started by thanajo, 05-04-2021, 02:11 AM
                      4 responses
                      470 views
                      0 likes
                      Last Post tradingnasdaqprueba  
                      Working...
                      X