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

Conditional, is there order X?

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

    Conditional, is there order X?



    Hi, nice day.

    I do not know what mechanics to use in the strategy manager to be able to do the following: Condition: - Order 1 is active (open)? I have a condition that should NOT be executed if an order is open. Order 1: It opens by simple signal. Order 2: It is opened by a simple signal, which in turn causes order 1. (reverse) to be closed. Error: Order 2 can be closed again since the signal to open order 1 appears. So, I need to add an additional conditional for order 1 which is: "Is there order 2?".


    Thank you very much and greetings.

    #2
    Hello samir,

    Thanks for your post.

    In the strategy builder, you can use the market position to see if you are in a market position of Long, short or Flat. Please see the help guide section, "How to create market position comparisons" https://ninjatrader.com/support/help...on_builder.htm for an example.

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Very thanks PaulH,
      I had not noticed with attention in this parameter.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      3 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      238 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      384 views
      1 like
      Last Post Gavini
      by Gavini
       
      Started by oviejo, Today, 12:28 AM
      0 responses
      4 views
      0 likes
      Last Post oviejo
      by oviejo
       
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      125 views
      0 likes
      Last Post Leeroy_Jenkins  
      Working...
      X