protected override void OnOrderUpdate( ); {[INDENT]// Play sound if order was changed[/INDENT][INDENT]if (order.OrderState == OrderState.ChangeSubmitted && [COLOR=#e74c3c][B]???[/B][/COLOR]) {[/INDENT][INDENT=2]PlaySound(Orderpending);[/INDENT][INDENT]}[/INDENT] }
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
access to charttrader lines
Collapse
X
-
access to charttrader lines
Hi, how do i access the charttrader lines? i would like to play a sound, but only if the order has been changed manually via charttrader line.
Code: -
Hello sidlercom80, thanks for your post.
It depends on what the strategy is doing. If you are launching an ATM strategy from the NinjaScript strategy, then you can not access that order information because ATMs will go outside of the strategies managed order system. If the strategy generates its own orders (which is 100% possible to do the same as an ATM: See here) then you can use the OnOrderUpdate method to track when an order changes from the chart.
Please let me know if I can assist any further.Chris L.NinjaTrader Customer Service
-
Hi _ChrisL, as you can see above, i am already in the OneOrderUpdate method. my question was, how can i tell that the order was changed by hand? there must be something like "isOrderManipulatedManually". it is about the fact that only the changed orders are giving a sound, which were changed by hand and not every changed order. if it is done via the solution as shown above, understandably every change will give a sound, even if for example an entry order is only partially filled and i don't want that. Everything in the script is not done via ATM
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
147 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
4 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Comment