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 bgboym3, 10-08-2019, 09:58 AM
      7 responses
      2,541 views
      0 likes
      Last Post defa0009  
      Started by giogio1, Today, 06:28 PM
      0 responses
      8 views
      0 likes
      Last Post giogio1
      by giogio1
       
      Started by ybforex, 03-11-2025, 05:30 PM
      16 responses
      136 views
      0 likes
      Last Post rockmanx00  
      Started by giogio1, 03-13-2025, 01:08 AM
      3 responses
      38 views
      0 likes
      Last Post giogio1
      by giogio1
       
      Started by coppernob108, Today, 05:16 PM
      0 responses
      11 views
      0 likes
      Last Post coppernob108  
      Working...
      X