• 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 TrendFollowingCapital, Today, 04:29 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by Conall, Today, 06:11 AM
    0 responses
    5 views
    0 likes
    Last Post Conall
    by Conall
     
    Started by Vincere, Yesterday, 11:20 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by uday12, Yesterday, 10:07 PM
    1 response
    4 views
    0 likes
    Last Post bltdavid  
    Started by cnecorp, Today, 03:04 AM
    3 responses
    18 views
    0 likes
    Last Post cnecorp
    by cnecorp
     
    Working...
    X