Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MA on last candle

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

    MA on last candle

    Hello,

    is it possible to get a "dancing" MA on the last candle
    and not only a static MA on the previous candle?

    regards

    Chris
    Attached Files

    #2
    Chris,

    Set your indicator's property for CalculateOnBarClose to false.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi Josh,

      I've done this. But now the MA jumps down on the
      previous candle.

      Chris
      Attached Files
      Last edited by pipmaker; 03-24-2009, 09:01 AM.

      Comment


        #4
        pipmaker,

        Not sure I follow. What do you mean by jumps "down"? When you set CalculateOnBarClose = false it will calculate your indicator based on each incoming tick. Depending on how it is coded there may be situations where the coder did not address this and results in your indicator getting continually closer to zero.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi Josh,

          I've done this for both MA's and now I see this.
          please have a look at the attached picture.

          Chris

          BTW when I open a new chart the MA is o.k.
          Attached Files

          Comment


            #6
            When I use the Double MA I get this spike down. With
            the WMA Colors it is o.k. Then I will use this MA.

            Chris
            Attached Files

            Comment


              #7
              pipmaker,

              It is as suspected. The code was not designed in a manner to address tick by tick processing and as such you cannot use CalculateOnBarClose until the code is redesigned to work with such processing.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by cre8able, Yesterday, 09:15 PM
              2 responses
              15 views
              0 likes
              Last Post cre8able  
              Started by Trader146, Today, 09:17 PM
              0 responses
              6 views
              0 likes
              Last Post Trader146  
              Started by ttrader23, 05-08-2024, 09:04 AM
              9 responses
              43 views
              0 likes
              Last Post ttrader23  
              Started by ZeroKuhl, Yesterday, 04:31 PM
              8 responses
              46 views
              0 likes
              Last Post ZeroKuhl  
              Started by reynoldsn, Today, 07:04 PM
              0 responses
              11 views
              0 likes
              Last Post reynoldsn  
              Working...
              X