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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              68 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              39 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              63 views
              1 like
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              62 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              53 views
              0 likes
              Last Post CarlTrading  
              Working...
              X