Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting the disable/enable of automatic order cancellation via code

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

    Setting the disable/enable of automatic order cancellation via code

    Hi,

    Under the Options for Ninjascript there are check boxes for enabling/disabling the automatic cancellation of a NinjaScript strategy's entry & exit orders when the strategy is disabled:

    Click image for larger version

Name:	options.jpg
Views:	109
Size:	60.4 KB
ID:	1040710

    May I know if this can be set via code as well? Or is the only way via the checkboxes in the Options window?

    Thanks.

    #2
    Hello Vypre,
    Thanks for your post.

    There will be no way to set those properties through NinjaScript. Although there are ways to cancel orders programmatically when the strategy terminates.

    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Ok, we can't set these settings, but can we get?
      It is highly important for the security purposes to know, for example, would protective orders be cancelled on exit or not.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello fx.practic,

        There is currently no supported/documented way to get or set these properties. You can try exploring the NinjaTrader.Core.Globals object however as noted this is not supported/documented subject that I can detail.


        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Walter2011, Today, 08:27 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by arangocj, Today, 06:28 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by BIllblast, Today, 08:03 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by jerryblack, Yesterday, 05:04 PM
        3 responses
        16 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by mattage86, Today, 06:43 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Working...
        X