Would that make any difference in trading? What does ExitShort for example do if there is no current short position?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Only placing orders during market hours
Collapse
X
-
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?
-
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 DannyP96, 05-18-2026, 02:38 PM
|
1 response
25 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
115 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
226 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
411 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|

Comment