Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
howto disable order entry with Add On
Collapse
X
-
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 rejectedTags: None
-
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.
Hello, I've updated the DailyLossLimit and DailyLosLimitMultiTrade examples that were posted on the forum for NinjaTrader 7 for NinjaTrader 8. These are often requested and I felt they are good examples to have for NT8. DailyLossLimitExample_NT7 - http://ninjatrader.com/support/forum...241#post451241 (http://ninjatraderJosh G.NinjaTrader Customer Service
-
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
-
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:
Josh G.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by gyilaoliver, Today, 08:28 AM
|
2 responses
9 views
0 likes
|
Last Post
![]()
by gyilaoliver
Today, 08:46 AM
|
||
Started by Darkslide_Tom, 03-23-2025, 11:08 PM
|
3 responses
17 views
0 likes
|
Last Post
|
||
Started by rtwave, 03-13-2025, 04:09 PM
|
4 responses
29 views
0 likes
|
Last Post
|
||
Started by MiCe1999, 12-01-2024, 09:01 PM
|
4 responses
44 views
0 likes
|
Last Post
![]() |
||
Started by coopgrafik, Today, 07:57 AM
|
1 response
7 views
0 likes
|
Last Post
|
Comment