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 josh18955, 03-25-2023, 11:16 AM
              6 responses
              435 views
              0 likes
              Last Post Delerium  
              Started by FAQtrader, Today, 03:35 PM
              0 responses
              3 views
              0 likes
              Last Post FAQtrader  
              Started by rocketman7, Today, 09:41 AM
              5 responses
              18 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by frslvr, 04-11-2024, 07:26 AM
              9 responses
              126 views
              1 like
              Last Post caryc123  
              Started by selu72, Today, 02:01 PM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Working...
              X