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 carnitron, Today, 08:42 PM
              0 responses
              5 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Today, 07:51 PM
              0 responses
              7 views
              0 likes
              Last Post strategist007  
              Started by StockTrader88, 03-06-2021, 08:58 AM
              44 responses
              3,974 views
              3 likes
              Last Post jhudas88  
              Started by rbeckmann05, Today, 06:48 PM
              0 responses
              8 views
              0 likes
              Last Post rbeckmann05  
              Started by rhyminkevin, Today, 04:58 PM
              4 responses
              58 views
              0 likes
              Last Post dp8282
              by dp8282
               
              Working...
              X