• 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:	4
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

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RedDuke, Today, 11:40 AM
    0 responses
    3 views
    0 likes
    Last Post RedDuke
    by RedDuke
     
    Started by snbence, Today, 11:19 AM
    2 responses
    7 views
    0 likes
    Last Post snbence
    by snbence
     
    Started by marwanco, Today, 10:54 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by daqu40, Today, 11:01 AM
    0 responses
    0 views
    0 likes
    Last Post daqu40
    by daqu40
     
    Started by n8dogg59, Today, 09:55 AM
    4 responses
    7 views
    0 likes
    Last Post n8dogg59  
    Working...
    X