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

  • NinjaTrader_AlanS
    replied
    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.

    Leave a comment:


  • joemiller
    replied
    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.

    Leave a comment:


  • joemiller
    replied
    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.

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:


  • 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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by bortz, 11-06-2023, 08:04 AM
47 responses
1,610 views
0 likes
Last Post aligator  
Started by jaybedreamin, Today, 05:56 PM
0 responses
9 views
0 likes
Last Post jaybedreamin  
Started by DJ888, 04-16-2024, 06:09 PM
6 responses
19 views
0 likes
Last Post DJ888
by DJ888
 
Started by Jon17, Today, 04:33 PM
0 responses
6 views
0 likes
Last Post Jon17
by Jon17
 
Started by Javierw.ok, Today, 04:12 PM
0 responses
16 views
0 likes
Last Post Javierw.ok  
Working...
X