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 Christopher_R, Today, 12:29 AM
              0 responses
              6 views
              0 likes
              Last Post Christopher_R  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              166 responses
              2,235 views
              0 likes
              Last Post sidlercom80  
              Started by thread, Yesterday, 11:58 PM
              0 responses
              3 views
              0 likes
              Last Post thread
              by thread
               
              Started by jclose, Yesterday, 09:37 PM
              0 responses
              7 views
              0 likes
              Last Post jclose
              by jclose
               
              Started by WeyldFalcon, 08-07-2020, 06:13 AM
              10 responses
              1,415 views
              0 likes
              Last Post Traderontheroad  
              Working...
              X