Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Percent Change of an Indicator

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

    Percent Change of an Indicator

    How would you create a strategy based on a Moving average increasing or decreasing by a certain percent from the prior bar to the current bar within the strategy wizard?

    For example:

    MA[0] > MA[1] by 0.05% as a long entry condition

    Thank you for your help.

    #2
    NTWolfe, percentage change is relatively straight-forward to calculate. I will give you an example. Price 1 is 100 and price 2 is 101. At first glance, you can see it increased by 1%, but what is the math behind it?

    (Price2-Price1)/Price1*100 will give you the percent change with a 1% change represented by 1. You could simply not multiply by 100 to get a 1% change represented by 0.01.

    Let me know if you have any other questions.
    AustinNinjaTrader Customer Service

    Comment


      #3
      % Change MA

      That's exactly what I am talking about, it could even return the number without multiplying the result by 100. What are the different ways that this could be put in the Strategy Wizard.

      If the current moving average has increased 5% more than the prior bar's moving average enter long and vice versa for short entries.

      It is easy to use the MA[0] > MA[1] as a condition, but I am not sure how to build the condition for MA[0] is 5% > MA[1] to enter long. Or whatever percentage that I choose to use.

      Thanks for your quick response.

      Comment


        #4
        You should be able to set this strategy conditions up via the offSet parameter we have in the wizard -

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X