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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X