Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter trade 1 bar after EMA crossover

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

    #16
    Hello Hugues,

    In a new condition set, in the conditions select Time -> Time Series on the left, equals in the center, Time -> Time value on the right, and select the time.
    In the actions, in the order management section, submit an exit order.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Chelsea,

      Thanks much for your help. In the order management section, for exit order, we have either exit long or exit short. Do i have to create 2 news conditions sets(one for exit long and one for exit short) ?

      Also, do i have to untick the exit on session close in the setting?

      Thank you again!
      Hugues

      Comment


        #18
        Hello Hugues,

        You can put both ExitLong() and ExitShort() in the same condition. If there is no long position, the ExitLong() will just be ignored or vice versa. (This will result in a TraceOrders message though, which can be ignored if this is the behavior you want)

        The best code would probably have two conditions, one for long one for short, and checks the Strategy -> Current market position to be long (or short).

        The Exit on session close is up to you. If you want to keep a position open to the next session uncheck this.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X