Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Only placing orders during market hours

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

    #31
    I've based most of my systems off one I copied from someone else. When the EMAs do a bullish cross (Condition) then I have EnterLong as an Action. Likewise a Bearish cross has EnterShort as an Action. The system is set to exit at the close. Generally this has backtested and worked well in real trading. The occassional odd share size in the orders however makes me wonder if I need to add an ExitShort to the EnterLong order and and ExitLong to the EnterShort order?

    Would that make any difference in trading? What does ExitShort for example do if there is no current short position?

    Comment


      #32
      You do not need to do an ExitShort before EnterLong. When you do EnterLong NinjaTrader will automatically close the short position and get you in the appropriate long position. To figure out your position sizing you will need to use TraceOrders = true.

      If you call ExitShort while there is no short position it will simply be ignored.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      102 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X