• 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
    JoshNinjaTrader 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
        JoshNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ajsdnyyrr1234DDf, Today, 09:39 AM
        2 responses
        9 views
        0 likes
        Last Post ajsdnyyrr1234DDf  
        Started by Delerium, Today, 10:03 AM
        0 responses
        7 views
        0 likes
        Last Post Delerium  
        Started by pjsmith, Today, 09:54 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by afoschini, Today, 09:18 AM
        2 responses
        6 views
        0 likes
        Last Post afoschini  
        Started by rexsole, Today, 08:02 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Working...
        X