Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Vertical grid lines at fixed levels (hourly) not possible?

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

    #16
    Hello Johnny,

    The feature request to control the timelines already exists and your vote was added to SFT-2743, "Fixed time range on the X-axis".

    Thanks for your interest to improve NinjaTrader8

    Comment


      #17
      Thanks, Paul.

      Since making this post - I have now gotten this created as a custom indicator. Fairly easy, I think, so hopefully it can be fast to implement.

      Whily my indicator is working just fine now, I'd prefer it as an inbuilt feature.

      Comment


        #18
        Johnny. Is it possible to get a copy of your vertical lines indicator for setting up hour breaks? Please let me know. Thank you!
        Last edited by PErdelt; 07-15-2019, 12:06 PM.

        Comment


          #19
          Sure. Send me a note.

          Comment


            #20
            So many comments for 1 min job.... here is my version fixing the issue. Enjoy !!!
            Attached Files

            Comment


              #21
              There is a way to create vertical gridlines I use in NT7: I modified the code for the Box:
              ~\Documents\NinjaTrader 7\bin\Custom\Type\@ChartStyles.cs

              in section:
              public class BoxStyle : ChartStyle

              for (int idx = fromIdx; idx <= toIdx; idx++)
              {
              if (idx == 0)
              continue;

              barColor = chartControl.GetBarOverrideColor(bars, idx);
              highVal = 100000;//bars.GetHigh(idx); //it does read this: box bars are working now as vertical grid
              high = chartControl.GetYByValue(bars, highVal);
              lowVal = 0;//bars.GetLow(idx); //it does read this: box bars are working now as vertical grid
              low = chartControl.GetYByValue(bars, lowVal);
              x = chartControl.GetXByBarIdx(bars, idx);
              candleOutlineColorScript = chartControl.GetCandleOutlineOverrideColor(bars, idx);

              .....

              Hope this helps.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              25 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 05-10-2026, 08:12 PM
              0 responses
              19 views
              0 likes
              Last Post CarlTrading  
              Started by Hwop38, 05-04-2026, 07:02 PM
              0 responses
              182 views
              0 likes
              Last Post Hwop38
              by Hwop38
               
              Started by CaptainJack, 04-24-2026, 11:07 PM
              0 responses
              335 views
              0 likes
              Last Post CaptainJack  
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              260 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X