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
    Paul H.NinjaTrader Customer Service

    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 WHICKED, Today, 12:45 PM
              2 responses
              19 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Started by GussJ, 03-04-2020, 03:11 PM
              15 responses
              3,276 views
              0 likes
              Last Post xiinteractive  
              Started by Tim-c, Today, 02:10 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Taddypole, Today, 02:47 PM
              0 responses
              5 views
              0 likes
              Last Post Taddypole  
              Started by chbruno, 04-24-2024, 04:10 PM
              4 responses
              51 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Working...
              X