THANKS!!!!!!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Quick Question!
Collapse
X
-
Quick Question!
How would you code this? Using range bars, when bar closes on high (example-10 range bar closes at 1.5010 and I want to short at 1.5011) I just want to enter the opening price of the next bar (1.5011)? I know its probably real simple but I just don't know if I am doing it right in the strategy wizard. I seem to keep getting market orders that are sometimes better and sometimes worse. Someone please help! I just need to "see" how to code this
THANKS!!!!!!
Tags: None
-
Hello sdt929,
With CalculateOnBarClose = true:
Market orders like EnterLong(); and EnterShort(); are placed at the open of the next bar following the signal bar. You are then filled according to market dynamics.
If you want to specify the worst price you're willing to receive, you can use limit orders. The bars are referenced according to the signal bar. A limit order to buy at the high of the signal bar is then:
EnterShortLimit(High[0]);
Ryan M.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
64 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
35 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment