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

multi MA strategy

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

    multi MA strategy

    I did so. but now the order is only opened when both pairs cross at the same time (on one bar).
    Last edited by neo1980; 02-21-2018, 04:54 PM.

    #2
    Hello neo1980,
    Thanks for your post.

    You can configure crossover conditions in the Strategy Builder by using the 'cross above' and 'cross below' comparisons in the Conditions and Actions category. There is an example of how to accomplish this in the following help guide documentation.

    Condition Builder--How to create a cross over condition
    https://ninjatrader.com/support/help...sOverCondition

    Please let me know if you have any questions.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      I did so. but now the order is opened only when both pairs cross at the same time (on one bar).

      Comment


        #4
        Hello neo1980,

        It sounds like you have both 'Cross above' and 'Cross below' conditions in the same "Set". If you change the "If All" that I have circled in the attached screenshot to "If Any" than either condition in the Set can be true to make the action happen.

        You will need to logically separate your buy and sell conditions into different sets by clicking the "+" tab that is also circled in the attached screenshot, to add another tab.

        The following help guide documentation explains how to use the conditions and actions section of the Strategy Builder..

        Strategy Builder- Condition Builder
        https://ninjatrader.com/support/help...nditionBuilder

        If you have already considered both items I mentioned above please send me a screenshot of your conditions and actions screen of the Strategy Builder. To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
        Click here for instructions

        Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
        Click here for detailed instruction

        Please let me know if you have any further questions.
        Attached Files
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by md4866, 05-01-2024, 08:15 PM
        2 responses
        18 views
        0 likes
        Last Post md4866
        by md4866
         
        Started by samish18, Today, 12:20 PM
        0 responses
        7 views
        0 likes
        Last Post samish18  
        Started by thread, 04-15-2024, 11:58 PM
        3 responses
        48 views
        0 likes
        Last Post Georg1o
        by Georg1o
         
        Started by leojimenezp, 04-20-2024, 05:49 PM
        4 responses
        50 views
        0 likes
        Last Post leojimenezp  
        Started by nicthe, Today, 09:24 AM
        1 response
        8 views
        0 likes
        Last Post nicthe
        by nicthe
         
        Working...
        X