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

Condition to see if a moving average is sloping up or down?

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

    Condition to see if a moving average is sloping up or down?

    Hello,

    In the strategy builder, is it possible to look if a moving average is pointing up or down? I want to enter if a hull moving average is pointing up, for example.

    Is it possible?

    #2
    Hello franco12364,

    Thanks for your post.

    Yes, there are a couple of ways in the strategy builder.

    In the conditions builder, you can select Misc>Rising or Misc>Falling and select the HMA as the "Series 1". in the center you would select "Equals" and on the right side you would select Misc>true to test for a true condition. The rising and falling methods will only check the current value to the previous value so it is quick reacting.

    You can also use the Slope method in the strategy builder and this would allow you to specify the number of bars to check the slope of so you can make it as reactive to change as you wish. In the conditions builder, on the right side you would select Misc>Slope, by default it will be 10 bars to check the slope of, for "Series 1" you would select set then Indicatorss>HMA (and set the period needed), in the center you would select either Greater or Less, on the right side you would select Misc>Numeric value and leave the value as zero. A positive value indicates the slope is increasing, a negative would be decreasing.


    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mizzouman1, Today, 07:35 AM
    4 responses
    18 views
    0 likes
    Last Post Mizzouman1  
    Started by philmg, Today, 01:17 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by cre8able, Today, 01:01 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by manitshah915, Today, 12:59 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by ursavent, Today, 12:54 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X