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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
128 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
117 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment