• 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

50% as determined bar?

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

    50% as determined bar?

    as I do this?:

    If (Close[0] > ("50%" [0]))

    BarColor = Color.blue;

    as determined 50% of the current bar?
    thanks

    #2
    (Low[0] + High[0])/2

    that'd be half of the bar...

    Comment


      #3
      Hello julifro,

      Thank you for your post.

      You can also try ((High[0] - Low[0])/2)+Low[0] for the midpoint of the bar.
      Patrick H.NinjaTrader Customer Service

      Comment


        #4
        Another way of getting the 50% point of a bar is the Median method:

        If (Close[0] > Median[0])

        ...

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ushjkaybbaa, Today, 10:48 AM
        0 responses
        3 views
        0 likes
        Last Post ushjkaybbaa  
        Started by chartish, Today, 10:33 AM
        0 responses
        6 views
        0 likes
        Last Post chartish  
        Started by cpabiz20k, Today, 10:00 AM
        2 responses
        8 views
        0 likes
        Last Post cpabiz20k  
        Started by rickyblah12, Today, 09:34 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by CaptainAmericaXX, Today, 09:05 AM
        3 responses
        13 views
        0 likes
        Last Post CaptainAmericaXX  
        Working...
        X