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

HMA Indicator Rising or Falling

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

    HMA Indicator Rising or Falling

    OK In Strat builder the logical condition would be Indicator....HMA equals Rising......but all you get is TYPE OF LEFT EXPRESSION AND RIGHT EXPRESSION DO NOT MATCH, PLEASE SELECT SIMILAR EXPRESSION??? what am i missing here?

    #2
    Hello Birdseye,

    Thanks for your reply.

    The error message is happening because the Rising returns as a true or false value and the HMA will return a numerical price value of the HMA. So the true/false value does not match the price double value.

    When using Rising (or Falling), you would need to logically compare to Misc>True (or False).

    When using Rising (or Falling), note that the parameter for "series 1" is "Default input". Default input is the chart bars that the Rising (or Falling) is applied to. If you want to know if the HMA is Rising then you would need to change the "Series 1" from "default Input" to your HMA (with the specific period of the HMA you wish). You can left click on default input and an "input series" window will open where you can select either an added data series or can select an indicator. In the indicator folder select the HMA and specify the period of interest and then click OK. This will identify Rising(HMA(Close, 14) (or whatever period you used for the HMA).

    In the center you would select Equals

    On the right side you would select Misc>true

    This would result in the condition builder showing: IsRising(HMA(Close, 14)) = true which will be a correct expression because rising will return true or false and the comparison is to "true".



    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by terofs, Yesterday, 04:18 PM
    1 response
    21 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by CommonWhale, Today, 09:55 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by RookieTrader, Today, 09:37 AM
    2 responses
    12 views
    0 likes
    Last Post RookieTrader  
    Started by alifarahani, Today, 09:40 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X