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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
52 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
29 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
193 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
354 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
274 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment