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)
Hi all. First post, but let me just first say that the wealth of information to be found on this forum has been a life-saver many times over the past couple of years.
I'm sure many of you are familiar with the Capstone Trading Systems Money Management algorithms - if not, here is a link to some information about the latest Ninjatrader version released: hxxps://capstonetradingsystems.com/blogs/ninjatrader-money-management-algorithm-examples/version-7-release-for-ninjatrader-money-management-algorithms
The Capstone stuff is very similar to a project that I'm looking to work on over the next few months with money management and turning live trading on and off based on a number of portfolio performance criteria.
Most of my experience in coding for NT7/8 so far has been in regular indicator and strategy development so I'm fairly comfortable in those spaces.
Does anyone have any experience either with the Capstone product, or with doing anything that is conceptually similar?
At the moment the logic I'm thinking of is something along the lines of: Base strategy executes every trade against the sim account only so that performance can be reviewed. Based on the trade-to-trade performance against the sim account, live trading is either turned on or off. If live trading is on, then the same strategy rules are applied to the live trades. The sim account performance continues to be reviewed to determine if we stay live or if we turn live trading off again.
I'm struggling with figuring out just how to pull this together within NT.
Has anyone got any examples or experience of using a strategy that has visibility of trades from multiple accounts? I know individual strategies can be programmed to use either the live account or the sim account, but how to bring both of those together to be managed or controlled from a strategy that has visibility of both?
I'm aware of NT having a "shadow strategy" feature, which also sounds conceptually similar to what I'd like to achieve, but to my knowledge Shadow Strategies are only available via the ATM and not necessarily available to be coded via Ninjascript.
Open to any questions, discussions, comments etc.
Thanks in advance!
Matt
Can you help answer these questions from other members on NexusFi?
I worked on a risk module api, but that works alongside NT and not inside NT.
It does read the database files of NT directly in order to keep track of open positions on multiple accounts.
Thank you for your reply - would it be safe to assume that this method is not necessarily considered supported? There is no API to interface with the database externally to NT is there? Or have I maybe overlooked something?
You are right, but advanced risk management is not supported in any way...
staying in the documented boundaries will not make it possible to build what you have in mind.