Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

access to charttrader lines

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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:
    protected override void OnOrderUpdate( );
    {
    // Play sound if order was changed
    if (order.OrderState == OrderState.ChangeSubmitted && ???) {
    PlaySound(Orderpending);
    }
    }
    Click image for larger version

Name:	Screenshot_1.jpg
Views:	28
Size:	38.8 KB
ID:	1119851Click image for larger version

Name:	Screenshot_2.jpg
Views:	17
Size:	43.3 KB
ID:	1119852

    #2
    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

    Comment


      #3
      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


        #4
        Hello sidlercom80, thanks for your reply.

        There is nothing that will tell you if the order has been manually changed. All the OrderChanged events are grouped within the OnOrderUpdate method.

        Please let me know if I can assist any further.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ketoburning2, Today, 06:05 AM
        0 responses
        2 views
        0 likes
        Last Post ketoburning2  
        Started by ketoburning2, Today, 06:04 AM
        0 responses
        1 view
        0 likes
        Last Post ketoburning2  
        Started by Trader_Frank, Today, 05:35 AM
        2 responses
        5 views
        0 likes
        Last Post Trader_Frank  
        Started by ismaelcorleone, Today, 04:17 AM
        3 responses
        23 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by sidlercom80, Today, 03:45 AM
        0 responses
        8 views
        0 likes
        Last Post sidlercom80  
        Working...
        X