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

Why not HMA(Open instead of HMA(HMA(Open, ConvertToInt32(0)

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

    Why not HMA(Open instead of HMA(HMA(Open, ConvertToInt32(0)

    is this condition correct that i have created in conditions and actions in the strategy builder ...
    HMA(Close, HmaPeriod)[0] > HMA(HMA(Open, ConvertToInt32(0)), HmaPeriod)[0]

    is the above condition correct if i am trying to create a condition that says ''if the close of bar 0 of the HMA indicator is greater than the open of the bar'' ?

    if it is correct, why isn't it just simply
    HMA(Close, HmaPeriod)[0] > HMA(Open, HmaPeriod)[0] ?

    IGNORE THE ATTACHMENT. DIDN'T MEAN FOR IT TO BE THERE AND DON'T KNOW HOW TO DELETE IT
    Attached Files
    Last edited by joemiller; 04-22-2017, 02:04 PM.

    #2
    Hello,

    Thank you for the post.

    If you are trying to compare the HMA Open versus the HMA Close, then the syntax generated would not be correct and would instead be like you had shown:

    HMA(Close, HmaPeriod)[0] > HMA(Open, HmaPeriod)[0]

    The syntax you have shown appears that the HMA was double selected, can you provide more details, was the syntax generated using some steps and resulted incorrectly?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello,

      Thank you for the post.

      If you are trying to compare the HMA Open versus the HMA Close, then the syntax generated would not be correct and would instead be like you had shown:

      HMA(Close, HmaPeriod)[0] > HMA(Open, HmaPeriod)[0]

      The syntax you have shown appears that the HMA was double selected, can you provide more details, was the syntax generated using some steps and resulted incorrectly?

      I look forward to being of further assistance.
      yes i am trying to compare the HMA Open versus the HMA Close
      [i.e.] HMA(Close, HmaPeriod)[0] > HMA(Open, HmaPeriod)[0]

      i am able to easily create the attachment#1 condition.
      i then go to the attachment#2 window in an unsuccessful attempt to change
      HMA(Close, HmaPeriod)[0] > HMA(Close, HmaPeriod)[0]
      to HMA(Close, HmaPeriod)[0] > HMA(Open, HmaPeriod)[0]
      by trying to employ the yellow high-lighted data series input series field.
      So i need some suggestions/directions about how to navigate from this point to get to my desired goal.

      attachment#1
      Click image for larger version

Name:	apr23#1 for ninja forum.JPG
Views:	1
Size:	106.7 KB
ID:	882720

      attachment#2
      Click image for larger version

Name:	apr23#2 for ninja forum.JPG
Views:	1
Size:	245.5 KB
ID:	882721
      Last edited by joemiller; 04-23-2017, 09:13 AM.

      Comment


        #4
        issue is resolved and can be closed

        issue is resolved!

        i still don't know how to successfully edit an existing condition ... but i easily generated the desired condition by starting from scratch by adding the new desired condition. that's all i need. would be nice to knowledgeable enough to do it by editing but now it doesn't matter.

        thanks for the help.

        Comment


          #5
          Hello joemiller,

          Thanks for your reply.

          If you would like to edit an existing condition, first you will need to open a new Strategy Builder by going to New --> Strategy Builder. In the Welcome section, you will need to select the strategy which you would like to edit the conditions for. After selecting your desired strategy, you can go to the Conditions and Actions section and edit the existing conditions there so long as you did not unlock your code.

          Please let me know if I may be of any further assistance.
          Alan S.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by junkone, Today, 11:37 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by frankthearm, Yesterday, 09:08 AM
          11 responses
          42 views
          0 likes
          Last Post frankthearm  
          Started by quantismo, 04-17-2024, 05:13 PM
          5 responses
          35 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by proptrade13, Today, 11:06 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by love2code2trade, 04-17-2024, 01:45 PM
          4 responses
          35 views
          0 likes
          Last Post love2code2trade  
          Working...
          X