• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 habibalex, 06-13-2019, 11:09 PM
          4 responses
          21 views
          0 likes
          Last Post brucerobinson  
          Started by stoxos, Today, 10:36 AM
          0 responses
          1 view
          0 likes
          Last Post stoxos
          by stoxos
           
          Started by NinjaTrader_ChelseaB, Today, 08:47 AM
          0 responses
          6 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Deterministic J, Today, 08:00 AM
          4 responses
          76 views
          0 likes
          Last Post Deterministic J  
          Started by williamzz, Today, 02:43 AM
          2 responses
          21 views
          0 likes
          Last Post williamzz  
          Working...
          X