• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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);
    Patrick H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Lisa Marshall, 01-13-2020, 06:57 PM
    3 responses
    20 views
    0 likes
    Last Post -=Edge=-  
    Started by tvaughan4, Yesterday, 06:00 PM
    1 response
    10 views
    0 likes
    Last Post -=Edge=-  
    Started by Stevetrader, Today, 03:46 AM
    0 responses
    2 views
    0 likes
    Last Post Stevetrader  
    Started by pjsmith, Today, 01:56 AM
    0 responses
    5 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Started by surgeless, Today, 12:42 AM
    0 responses
    6 views
    0 likes
    Last Post surgeless  
    Working...
    X