• 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 zulok, Today, 05:02 PM
        0 responses
        1 view
        0 likes
        Last Post zulok
        by zulok
         
        Started by Andreas M., Today, 04:42 PM
        0 responses
        2 views
        0 likes
        Last Post Andreas M.  
        Started by sidlercom80, Today, 12:29 PM
        2 responses
        23 views
        0 likes
        Last Post fx.practic  
        Started by itrader46, Today, 02:49 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by m94306, Today, 03:01 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Heath  
        Working...
        X