NexusFi: Find Your Edge


Home Menu

 





Need risk management add for NT8


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Seanjohn814 with 6 posts (0 thanks)
    2. looks_two planetkill with 5 posts (0 thanks)
    3. looks_3 michael94 with 4 posts (0 thanks)
    4. looks_4 sam028 with 3 posts (2 thanks)
    1. trending_up 9,213 views
    2. thumb_up 3 thanks given
    3. group 9 followers
    1. forum 24 posts
    2. attach_file 1 attachments




 
Search this Thread

Need risk management add for NT8

  #11 (permalink)
futures trader
san diego, ca USA
 
Posts: 29 since May 2014
Thanks Given: 25
Thanks Received: 20


michael94 View Post
Hey guys! My name is Mike.
Does anyone have a risk management add-on for NT8 which could allow you to set your daily loss limit and lock you out of market till the next session, in case if you've broken the rule?

I've fount one on https://ninjatraderecosystem.com/ but the web page where this add located isn't working for some reason

thank You

I use this. https://clickalgo.com/ninjatrader-risk-management

It will not lock you out of the market until next session, but it will close open positions for you. It has some bugs that I am hoping they fix, but it is still functional.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
  #12 (permalink)
futures trader
san diego, ca USA
 
Posts: 29 since May 2014
Thanks Given: 25
Thanks Received: 20


michael94 View Post
Hey guys! My name is Mike.
Does anyone have a risk management add-on for NT8 which could allow you to set your daily loss limit and lock you out of market till the next session, in case if you've broken the rule?

I've fount one on https://ninjatraderecosystem.com/ but the web page where this add located isn't working for some reason

thank You

Here is another one, and this one looks like it will lock you out if you wish. I have not used it, and it is more costly then the other one I mentioned.

https://remoraacademyllc.com/remoratraderassist-tool/

There is a ninja webinar on it scheduled for this thurs

https://ninjatraderecosystem.com/webinar/common-issues-traders-face/

Reply With Quote
  #13 (permalink)
 Seanjohn814 
Charlotte, NC USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: S&P Futures
Posts: 7 since Jan 2022
Thanks Given: 0
Thanks Received: 0


Bumping this thread. I am looking for some assistance with the code that was dropped into this thread. When I first loaded it up, I was able to get it to work on my sim account (did so for testing). However, I have yet to get it to work with my live account.

I have the code pasted in a new indicator template and compiled. Added the indicator to my main chart that I trade off of and set my limit. I have Chart Trader on -- I've tried with it on and hidden and I cannot get it to work.

For example, I set my loss limit at $100 today and was down >$100 this AM. In the past on sim, on the next order that I tried to submit it would not let me submit a new order. Now I am able to keep trading.

What am I doing wrong? Thanks...

Tagging:
@sam028 @planetkill

Reply With Quote
  #14 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311


Seanjohn814 View Post
Bumping this thread. I am looking for some assistance with the code that was dropped into this thread. When I first loaded it up, I was able to get it to work on my sim account (did so for testing). However, I have yet to get it to work with my live account.

I have the code pasted in a new indicator template and compiled. Added the indicator to my main chart that I trade off of and set my limit. I have Chart Trader on -- I've tried with it on and hidden and I cannot get it to work.

For example, I set my loss limit at $100 today and was down >$100 this AM. In the past on sim, on the next order that I tried to submit it would not let me submit a new order. Now I am able to keep trading.

What am I doing wrong? Thanks...

Tagging:
@sam028 @planetkill

Hey not sure what you're doing wrong, but I recommend posting it on the NT8 support forum. They can probably help point out the problem.

Here's a related thread on DailyLossLimit: https://forum.ninjatrader.com/forum/ninjatrader-8/strategy-development/93881-daily-loss-limit-examples

Reply With Quote
  #15 (permalink)
 Seanjohn814 
Charlotte, NC USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: S&P Futures
Posts: 7 since Jan 2022
Thanks Given: 0
Thanks Received: 0


planetkill View Post
Hey not sure what you're doing wrong, but I recommend posting it on the NT8 support forum. They can probably help point out the problem.

Here's a related thread on DailyLossLimit: https://forum.ninjatrader.com/forum/ninjatrader-8/strategy-development/93881-daily-loss-limit-examples

Thanks @planetkill...I have read through that thread previously but I am not very technically savvy when it comes to coding/programming.

I was just curious if there is something that I must do to get this to work that I am not doing or have not done.

Again, here are the steps that I followed:
1.) Copied code into NT8 Ninjascript Editor as "New Indicator"
2.) Pasted code in its entirety and compiled
3.) Added Indicator to my main chart that I trade off of
4.) Enabled indicator and set my desired daily loss limit
5.) In chart trader, I chose my sim account and changed chart trader to hidden (as I normally do while trading)
5.) At this point, it worked in testing on sim
6.) Switching back to my live account, I have not gotten it work work
7.) When I switch back to sim, it is no longer working on sim either

I read through the code and it seems to just pull whichever account is currently 'active' in chart trader. So if my live account is active in chart trader and my P&L is < my set limit, if I try to enter a new trade, the pop-up should appear and I should not be able to trade. Currently, nothing is happening.

Am I unable to switch back and forth between sim and live for this to work? Is there a strategy that I need to enable? Is there a way to hardcode my live account as the 'active' account within the code?

Perhaps hardcoding my live account as the 'active' account in the code is the best option but I am not certain how to accomplish this.

Any assistance is greatly appreciated...

Reply With Quote
  #16 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311


Seanjohn814 View Post
Thanks @planetkill...I have read through that thread previously but I am not very technically savvy when it comes to coding/programming.

I was just curious if there is something that I must do to get this to work that I am not doing or have not done.

Again, here are the steps that I followed:
1.) Copied code into NT8 Ninjascript Editor as "New Indicator"
2.) Pasted code in its entirety and compiled
3.) Added Indicator to my main chart that I trade off of
4.) Enabled indicator and set my desired daily loss limit
5.) In chart trader, I chose my sim account and changed chart trader to hidden (as I normally do while trading)
5.) At this point, it worked in testing on sim
6.) Switching back to my live account, I have not gotten it work work
7.) When I switch back to sim, it is no longer working on sim either

I read through the code and it seems to just pull whichever account is currently 'active' in chart trader. So if my live account is active in chart trader and my P&L is < my set limit, if I try to enter a new trade, the pop-up should appear and I should not be able to trade. Currently, nothing is happening.

Am I unable to switch back and forth between sim and live for this to work? Is there a strategy that I need to enable? Is there a way to hardcode my live account as the 'active' account within the code?

Perhaps hardcoding my live account as the 'active' account in the code is the best option but I am not certain how to accomplish this.

Any assistance is greatly appreciated...

I looked at the code again now, and notice that the logic for selecting the account is within OnStateChange(), which is only executed when state is changed, and I'm not sure if changing accounts in chart trader changes the state. For reference: https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?onstatechange.htm

So without making any changes to the indicator, I think all you need to do is after changing accounts in chart trader, right click on the chart and select Reload Ninjascript.

You can also test this by creating additional Sim accounts and test switching between the sim accounts.

Reply With Quote
  #17 (permalink)
 Seanjohn814 
Charlotte, NC USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: S&P Futures
Posts: 7 since Jan 2022
Thanks Given: 0
Thanks Received: 0


planetkill View Post
I looked at the code again now, and notice that the logic for selecting the account is within OnStateChange(), which is only executed when state is changed, and I'm not sure if changing accounts in chart trader changes the state. For reference: https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?onstatechange.htm

So without making any changes to the indicator, I think all you need to do is after changing accounts in chart trader, right click on the chart and select Reload Ninjascript.

You can also test this by creating additional Sim accounts and test switching between the sim accounts.

Thank you so much @planetkill -- I think this worked but I am not certain as markets are currently closed. I will try again at 6pm ET to see if this corrected the issue. I really appreciate all of the help.

Reply With Quote
  #18 (permalink)
 Seanjohn814 
Charlotte, NC USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: S&P Futures
Posts: 7 since Jan 2022
Thanks Given: 0
Thanks Received: 0


planetkill View Post
I looked at the code again now, and notice that the logic for selecting the account is within OnStateChange(), which is only executed when state is changed, and I'm not sure if changing accounts in chart trader changes the state. For reference: https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?onstatechange.htm

So without making any changes to the indicator, I think all you need to do is after changing accounts in chart trader, right click on the chart and select Reload Ninjascript.

You can also test this by creating additional Sim accounts and test switching between the sim accounts.

It looks like it worked -- I was able to recreate the correct/expected result in sim again. I will have to try on my live account when I have a loss next - I have my limit set at -$10 for testing so basically one losing trade and I will be able to test again on my live account.

Again, thanks for the help @planetkill

Reply With Quote
  #19 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311


Seanjohn814 View Post
It looks like it worked -- I was able to recreate the correct/expected result in sim again. I will have to try on my live account when I have a loss next - I have my limit set at -$10 for testing so basically one losing trade and I will be able to test again on my live account.

Again, thanks for the help @planetkill

Glad I could help!

Reply With Quote
  #20 (permalink)
 creamyyy 
Brisbane, Australia
 
Experience: Intermediate
Platform: Sierra Chart
Posts: 60 since Aug 2020
Thanks Given: 56
Thanks Received: 109


I've been trialling Discipline Manager by Tremper.
https://tremper.com/disciplinemanager.php

Costs $400 a year.

While I dislike subscription fees, I think all it would take is 1 day where you break your rules before you come out ahead.

The stop loss management should take care of limiting your risk.
The trailing drawdown should help with overcoming fear of giving back profits.

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on June 17, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts