• 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

howto disable order entry with Add On

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

    howto disable order entry with Add On

    is it possible to develop an NT8 addon which can prevent the entry of new entry orders if the daily profit limit or loss limit is reached. All entries from Strategy, ChartTrader, DOM ... should be rejected

    #2
    Hello Klaus Hengher,
    Thanks for your post.

    There is not a supported way to prevent manual order submissions through NinjaScript, but you can add logic to a NinjaScript strategy so that strategy will cease firing orders after the Account's realized PnL reaches a certain point.

    This can be done by checking the PnL, and then setting a bool that controls your trading logic so the trades no longer fire.

    You can see the Unrealized PnL on the account with OnAccountItemUpdate(): https://ninjatrader.com/support/help...itemupdate.htm

    Please see the following forum post for some examples of how to accomplish this.
    https://ninjatrader.com/support/foru...amples?t=94795
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Within strategy I know how to do this, but I need this functionality for all order to specified account ( manual or automatic) , disable trading if daily stop loss or profit target for all trades is hit.
      Any idea how to implement this functionality?

      Comment


        #4
        Klaus,

        There is not a supported way to prevent manual order submissions through NinjaScript. This means I would not be able to provide any assistance on implementing that functionality.

        What I can do is submit a vote on your behalf to the the feature request for this, so that it may be added in a future release. The internal tracking number for this feature request is SFT-3344. Please reference this internal tracking number if you ever have questions regarding this feature request.

        When a feature request is implemented, you'll find it in the release notes:

        http://ninjatrader.com/support/helpG...ease_notes.htm
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rontronimous, Today, 05:55 PM
        0 responses
        2 views
        0 likes
        Last Post rontronimous  
        Started by bcgeek, Today, 03:43 PM
        2 responses
        5 views
        0 likes
        Last Post bcgeek
        by bcgeek
         
        Started by Mberg, Today, 04:05 PM
        0 responses
        6 views
        0 likes
        Last Post Mberg
        by Mberg
         
        Started by dkbyond, Today, 03:52 PM
        0 responses
        2 views
        0 likes
        Last Post dkbyond
        by dkbyond
         
        Started by Newtrader101, Today, 03:09 PM
        2 responses
        4 views
        0 likes
        Last Post Newtrader101  
        Working...
        X