Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Put order in High[1]
Collapse
X
-
Put order in High[1]
I have a strategy with a button that places an order at High[1] + 2 ticks. If I want to place the order at the high of the current bar I have to wait for it to finish and sometimes the price goes away. How could I press the button while the bar[0] is being created and the order is placed when it closes at its high + 2 ticks? Thanks.Tags: None
-
Hello julifro,
Below is a link to an example of placing an order when clicking a button. See regions 'Use case 2, submitting a limit order with limit price updated to indicator plot value'.
For the bar price to update before the bar closes, Calculate must be set to OnPriceChange.
TriggerCustomEvent() must be called to synchronize the bar series from the button Click event handler method.Chelsea B.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
163 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
82 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
125 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
206 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
184 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment