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 ageeholdings, Today, 07:43 AM
      0 responses
      10 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      9 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X