Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to make a ban on opening?

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

  • turalex
    replied
    its work!
    Thanks

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • turalex
    started a topic How to make a ban on opening?

    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?

Latest Posts

Collapse

Topics Statistics Last Post
Started by proptradingshop, Today, 11:30 AM
4 responses
10 views
0 likes
Last Post proptradingshop  
Started by MiCe1999, Yesterday, 09:26 PM
3 responses
38 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  
Started by shodown888, Today, 10:52 AM
2 responses
5 views
0 likes
Last Post shodown888  
Working...
X