Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to draw a dot on midpoint of a bar?

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

    How to draw a dot on midpoint of a bar?

    Newbie here.

    How do I draw a dot in the middle of the range of a body in a a candlestick if a condition is true? Re sizable if possible.Actually a code snippet would suffice...

    Thanks!

    #2
    Hello Bud_Fox,

    Thank you for your post.

    In NinjaTrader 7:
    Code:
    DrawDot("Mid"+CurrentBar, false, 0, Low[0]+((High[0]-Low[0])/2), Color.Yellow);
    In NinjaTrader 8:
    Code:
    Draw.Dot(this, "Mid"+CurrentBar, false, 0, Low[0]+((High[0]-Low[0])/2), Brushes.Yellow);

    Comment


      #3
      EDIT: Nevermind! I found the candle quarters indicator that can do this. Just change the type to hash and make all the other settings transparent. Got it here: https://ninjatraderecosystem.com/use...le-quarters-2/
      Can someone please convert this from a dot to a line for Ninja8? I tried but getting compile errors.... Thanks!
      Last edited by TradeUP1; 06-13-2024, 11:34 AM.

      Comment


        #4
        Thanks for the reply. I was wondering if it would be possible if someone at Ninjatrader could update the candle quarters indicator to have a check box in the settings to set it to only display on renko reversal bars? I don't think Paul_H is around anymore to update since he hasn't posted since 2022. Much appreciated!!
        Thanks!
        This is a conversion of the NT7 indicator Candle Quarters. Please contact the original author for any questions or comments.

        Comment


          #5
          Hello TradeUP1,

          As far as I can tell, this script is not designed to only run on Renko charts, and a change of this would be unwarrented.

          If you would like to create a copy of this script and make custom modifications you are welcome to do so.

          I would be happy to provide direction.

          To add a bool input:

          [NinjScriptProperty]
          [Display(Name="Display only on renko", GroupName="NinjaScriptParameters")]
          public bool DisplayRenkoOnly
          { get; set; }

          In OnBarUpdate():

          if (DisplayRenkoOnly == true && BarsArray[0].BarsPeriod.BarsPeriodType != BarsPeriodType.Renko)
          return;
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          553 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          100 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          543 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          546 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X