Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
track price set by attach to indicator
Collapse
X
-
track price set by attach to indicator
I use the attach to indicator entry method often using MIT orders. sometimes, I notice that the order is not filled as the spread is bit high. is there a way, I can alert myself when my order price is just between the bid and ask so I can just make it into a market order?Tags: None
-
Hello junkone,
Thank you for your note.
Use an Order object to hold the order and then check it's level against the needed prices. If it meets the criteria then submit it as a different order.
For example:
Code:MyOrder = EnterLongMIT(Close[0] - (2 * TickSize)); if (MyOrder.StopPrice < GetCurrentAsk() && MyOrder.StopPrice > GetCurrentBid()) { MyOrder = EnterLong(); }
-
Hello junone,
You could check the order on the SuperDOM using a custom column and OnOrderUpdate(): http://ninjatrader.com/support/helpG...rderupdate.htm
Comment
-
Hello junkone,
Thank you for your response.
You can find descriptions at the following link under "Understanding the default system columns": http://ninjatrader.com/support/helpG...om_columns.htm
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, 04-26-2024, 12:45 PM
|
4 responses
46 views
0 likes
|
Last Post Today, 03:31 PM | ||
Started by samish18, 04-17-2024, 08:57 AM
|
19 responses
95 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by ezrollin, 02-26-2022, 11:14 PM
|
6 responses
202 views
0 likes
|
Last Post
by kenz987
Today, 03:27 PM
|
||
Started by AaronKTradingForum, 04-28-2024, 02:37 PM
|
5 responses
52 views
0 likes
|
Last Post Today, 03:20 PM | ||
Started by RideMe, 04-07-2024, 04:54 PM
|
9 responses
53 views
0 likes
|
Last Post Today, 03:13 PM |
Comment