Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
daily loss limit in strategy builder
Collapse
X
-
Hello 37s29nala,
Thank you for your post.
Here's an example script a former colleague of ours created that should help. It's a little tricky to do this in the Strategy Builder, but you can if you use a custom series to track the current Strategy PnL. I'd advise importing this and then opening a new Strategy Builder window. On the first screen, find "DailyLossLimitBuilderExample" in the list and from there you can use the Builder navigation buttons to view the necessary logic.
Please let us know if we may be of further assistance to you.Attached FilesKate W.NinjaTrader Customer Service
-
Hello 37s29nala,
Thank you for your reply.
It should not be copied and pasted, it should be imported into NinjaTrader and then you can open a new Strategy Builder window, select "DailyLossLimitBuilderExample" from the dropdown on the first page, and then you can use the navigation buttons to view how the logic is set up.
Note — To import NinjaScripts you will need the original .zip file.
To Import:- Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
- From the Control Center window select the menu Tools > Import > NinjaScript Add-on...
- Select the downloaded .zip file
- NinjaTrader will then confirm if the import has been successful.
Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'
Once installed, you may add the strategy to a chart to test with the Sim101 account by:- Right-click your chart > Strategies... > Select the Strategy from the 'Available' list on the left > Add > Check the Enable checkbox on the right > OK
Kate W.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Taddypole, 04-26-2024, 02:47 PM
|
1 response
10 views
0 likes
|
Last Post Today, 12:10 PM | ||
Started by futtrader, 04-21-2024, 01:50 AM
|
6 responses
58 views
0 likes
|
Last Post
by futtrader
Today, 11:54 AM
|
||
Started by sgordet, Today, 11:48 AM
|
0 responses
4 views
0 likes
|
Last Post
by sgordet
Today, 11:48 AM
|
||
Started by Trader146, Today, 11:41 AM
|
0 responses
5 views
0 likes
|
Last Post
by Trader146
Today, 11:41 AM
|
||
Started by jpapa, 04-23-2024, 07:22 AM
|
2 responses
19 views
0 likes
|
Last Post
by rene69851
Today, 11:39 AM
|
Comment