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 bmartz, Today, 09:30 AM
    2 responses
    11 views
    0 likes
    Last Post bltdavid  
    Started by f.saeidi, Today, 11:02 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by geotrades1, Today, 10:02 AM
    4 responses
    12 views
    0 likes
    Last Post geotrades1  
    Started by rajendrasubedi2023, Today, 09:50 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by lorem, Today, 09:18 AM
    2 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X