Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Moving Average calculation

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

    Moving Average calculation

    Ray,

    Could you add the AVERAGE calculation as an additional option in moving averages like VMA etc (if you have not already done so)

    This is

    HIGH + LOW + CLOSE /3. Quite a few strategies use this type of calculation and it would be great to have in your charts.

    Thanks

    #2
    It already exists. When placing any moving average on a chart, there is a 'Price type' parameter that can be set. Set this to 'Typical'.

    In NinjaScript, you would do something like:

    double myAverageSmaValue = SMA(Typical, 20)[0];
    RayNinjaTrader Customer Service

    Comment


      #3
      Number of Lots

      Ray,

      You have any plans for the number of lots traded in the ACCOUNT PERFORMANCE. Would be helpful to know total lots traded in a day/week/month for negotiating rates etc.

      Also any chance of being able to keep MARKET ANALYZER Always on TOP.

      Thanks

      Comment


        #4
        Shiva,

        You could export the Performance Report into Excel and just run a quick summation on the quantity column for your trades.

        Market Analyzer already has an Always on Top feature. Right click and it is in the list.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Well Ray,

          Just found the Always on Top...so Thanks but the number of lots is still a query?

          Thanks

          Comment


            #6
            OK Josh,

            Thanks for that. Perhaps that simple feature could be added to next version.

            Comment


              #7
              Thank you for your suggestion. I will put it on the list of future considerations.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by love2code2trade, 04-17-2024, 01:45 PM
              4 responses
              31 views
              0 likes
              Last Post love2code2trade  
              Started by cls71, Today, 04:45 AM
              2 responses
              10 views
              0 likes
              Last Post eDanny
              by eDanny
               
              Started by proptrade13, Today, 11:06 AM
              0 responses
              5 views
              0 likes
              Last Post proptrade13  
              Started by kulwinder73, Today, 10:31 AM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by RookieTrader, Today, 09:37 AM
              3 responses
              15 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X