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 ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        44 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        180 views
        0 likes
        Last Post jeronymite  
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Working...
        X