• 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 indy73, Today, 10:52 PM
        0 responses
        3 views
        0 likes
        Last Post indy73
        by indy73
         
        Started by martyn73, Today, 07:04 PM
        0 responses
        5 views
        0 likes
        Last Post martyn73  
        Started by sergey_z, Today, 02:56 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by samir, Today, 02:46 PM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by neoikon, Today, 02:24 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X