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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X