Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to make a ban on opening?

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

    How to make a ban on opening?

    Writing strategy through StrategyWizard.
    Put a simple condition - Long more EMA and shorts less EMA and close by TrailStop.
    But the position is closed not only to TrailStop, but when performed opposite condition - if have open Long and fulfillment of the terms "less EMA" - Long then close and open shorts.
    How to do that would not open until closed by TrailStop?

    #2
    Hi turalex,

    If you want to ensure that the order has been exited before placing a new order, check that the market position is flat.

    Add a condition to each condition set.
    On the left of the condition builder select Strategy -> Market Position.
    On the right side of the condition builder select Strategy -> Flat.
    This should make a condition:
    Position.MarketPosition == MarketPosition.Flat in the condition set.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      its work!
      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by giogio1, Yesterday, 12:52 AM
      3 responses
      24 views
      1 like
      Last Post aligator  
      Started by proptradingshop, Today, 11:30 AM
      5 responses
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by MiCe1999, Yesterday, 09:26 PM
      3 responses
      39 views
      0 likes
      Last Post NinjaTrader_Helom  
      Started by yankeeo87, 02-21-2025, 10:36 AM
      3 responses
      52 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by 1001111, Today, 11:47 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X