• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:	31
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 aaadetos, Yesterday, 08:39 PM
        0 responses
        4 views
        0 likes
        Last Post aaadetos  
        Started by Teebone21, Yesterday, 03:57 PM
        0 responses
        5 views
        0 likes
        Last Post Teebone21  
        Started by GeoOrtiz, Yesterday, 03:44 PM
        0 responses
        7 views
        0 likes
        Last Post GeoOrtiz  
        Started by ralett, Yesterday, 03:41 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Tyler  
        Started by Walker DM, Yesterday, 03:14 PM
        2 responses
        12 views
        0 likes
        Last Post Walker DM  
        Working...
        X