But, what about the rest of the information about the order? Like the instrument, order type, stop value, limit value, and others? I don't see any functions listed to get this information.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DLL interface -- where to get rest of order info?
Collapse
X
-
DLL interface -- where to get rest of order info?
Okay, in reviewing the functions available in the DLL interface, I see that I can get list of order IDs by account, using the Orders() function. And, from the OrderID, I can use the functions AvgFillPrice(), Filled() and OrderStatus() to get the average fill price, qty filled, and order status string. Okay, I think I got that.
But, what about the rest of the information about the order? Like the instrument, order type, stop value, limit value, and others? I don't see any functions listed to get this information.Tags: None
-
Originally posted by NinjaTrader_Ben View PostHello,
I will have someone reply to your post on Monday. Thank you for your patience.
So, I look forward to the response tomorrow.
Comment
-
Originally posted by NinjaTrader_Josh View PostSpeedie6,
It is not really handicapped. You can name your orders to reflect the information you want and then it becomes directly accessible that way since that information is static anyways.
Comment
-
Speedie6,
You can give your orders any orderId you wish as you issue the Command. Just give it an orderId reflective of the information you want while insuring it is unique. When you are placing the order you know what instrument you are placing on. You know what order type it is. Give it a name containing the info you want. Then when you access the order list it is just a matter of reading the strings for the info.Josh P.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Josh View PostYou can give your orders any orderId you wish as you issue the Command. Just give it an orderId reflective of the information you want while insuring it is unique. When you are placing the order you know what instrument you are placing on. You know what order type it is. Give it a name containing the info you want. Then when you access the order list it is just a matter of reading the strings for the info.
Comment
-
Speedie6,
Unfortunately there is no way to attach/change an ATM strategy onto an already opened position.
Well, you know which targets and stops are associated to which ATM strategies through the strategyId. If you name your strategyId in a way reflective of your instrument/etc you will then be able to know everything you would need. From there you know your targets are limit orders and your stops are stop orders and you can make amends however you see fit.Josh P.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Josh View PostUnfortunately there is no way to attach/change an ATM strategy onto an already opened position.
Originally posted by NinjaTrader_Josh View PostWell, you know which targets and stops are associated to which ATM strategies through the strategyId.
So, my strategy name really tells me nothing. Where I would use my application is when I personally am ready to quit for the day, but I might still have an open trade or two, hopefully in profit. I might then want my app to manage the trailing stop.
So, in short, to make my app work like that, I'd just have to manually match up the orders.
Comment
-
Not sure I follow. You can match up your trades very easily through matching the "strategy" and "strategyId". The "strategy" parameter is the name of your ATM strategy which may or may not be that useful. The "strategyId" is any name you give the strategy yourself. This can be anything you want. You can then use things like TargetOrders(string strategyId) or StopOrders(string strategyId) to get the stop/targets for the strategy. Make amends however you see fit off of that.Josh P.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Josh View PostNot sure I follow. You can match up your trades very easily through matching the "strategy" and "strategyId".
Comment
-
Still not following you Speedie6. There is no manual intervention needed at all. Especially since all you are trying to do is modify orders you don't even need any information like what instrument/order type. Just find the stop/target orders, and then use Command() to modify them. If you are using the DLL interface from eSignal or TradeStation you can also use the NTChange().Josh P.NinjaTrader Customer Service
Comment
-
Okay, for simulation purposes, I entered a trade for USDJPY and a trade for EURUSD, in my SIM101 account. In the printscreen below, on top, I have the NT Control Center, Orders tab showing, with all the nice info showing.
In the lower part of the screen is my app. Can you tell me which of the trades in my application are of USDJPY and which is EURUSD? Of course you can, by matching the ID's between the two. But, my point is, I should be able to get that information so that I wouldn't have to manually match them up.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Tim-c, Today, 03:54 AM
|
0 responses
3 views
0 likes
|
Last Post
by Tim-c
Today, 03:54 AM
|
||
Started by FrancisMorro, Today, 03:24 AM
|
0 responses
2 views
0 likes
|
Last Post
by FrancisMorro
Today, 03:24 AM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
10 responses
1,771 views
0 likes
|
Last Post
by Leafcutter
Today, 03:01 AM
|
||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, 04-23-2024, 07:51 PM
|
2 responses
31 views
0 likes
|
Last Post
by Max238
Today, 02:25 AM
|
||
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
945 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
Comment