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 NullPointStrategies, Today, 05:17 AM
              0 responses
              22 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              120 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              63 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              41 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              45 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X