Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
Can you help answer these questions from other members on NexusFi?
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.
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.
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.
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.
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.