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)
Can anyone provide a code snippet to get the value of a specified account in an Indicator.
It's a doddle in a strategy but I require it in an indicator and can't seem to get it
Can you help answer these questions from other members on NexusFi?
I recall that question on the NT Forums being answered by support staff as 'the info wasnt available to indicators' ... I made a request that it should ... I have yet to see any of my requests showup in NT
Jon
Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
They must have an awfully long list of stuff to add to NT - it's rare to get anything actually done about these requests.
Just think a trading platform where you can't get access to your account balances in an indicator.....must have taken some designing that.
Don't know if it helps but I run a custom method in a risk management strat that looks at global PnL (and a bunch of other things). Here is the method code. The variables should be pretty easy to figure out. If not I can point you to the full strat over in the Elite section.
MXASJ - thanks, but you still run into the issue that GetAccountValue() simply doesn't exist in an indicator - only in a strategy for some bizarre reason.
Yep. Global PnL is my workaround. There are some other "Utility" methods in Ninja that don't work in both Strats and Indis. PrintWithTimeStamp(), for example, only works in Strats IIRC.