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

Volume ma indictor rth help

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

    Volume ma indictor rth help

    Hi I am using the VOLMA indicator that came with Ninjatrader. However, I have one issue that I need help with. I trade on the RTH (regular trading hours) when it analysis the VOLMA (10 bars back) sometime it uses yesterdays data to calculated the MA. However, I do not want that. I want the VOLMA to start calculating from the beginning of the day nothing from yesterday. what is the code I need to put in to make this happen.

    Thank you

    #2
    Hello wallsteetking,
    Thanks for your note.

    You have to reset the values on the start of a new session to do it. You may refer to the VWAP indicator which is on similar lines.

    You can download the VWAP indicator from here

    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hi ,what is the code to reset the values so that I can do it to some other indicators as well, thank you.

      Comment


        #4
        Hello wallsteetking,
        In the VWAP indicator the VWAP is recalculated as per codes in 148-163.

        Please note, the VWAP indicator and the VOLMA indicators are different in structure so a exact replica may not work, however the basic idea is the same.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,606 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        15 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X