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)
I never had a problem with partial fill. So I did not code it
Maybe you could try something with a.Position.Count
(But.... a.Positions.Count is difficult because it is not instrument but account specific!! So this alone is not enough.)
Or compare a variable with position before and after execution and order size.
But i don't know. That is a reason for my switch to strategies, as all that stuff is very easy there and does not take hours to find out.
Strategies are easier for managing orders (I've coded several..) but my project at the moment is addressed to discretionary trading, so I'd need ChartTrader and something that could be tailored on it (different from ATM of course..!).
I am trading discretionary. At the end of the day it was easier for me to create the missing parts of a strategy chart, like ChartTrader tools, plot visualization of positions, stops, targets etc. than doing the trade and account stuff in indicators. By the way, a combination of indicator/strategy is a solution too, that I often use.
Have a nice WE too. I will be soon in Italy (Tuscany) for some days with my bici.
Curious if anyone has been successful retrieving the cash value of an account. I am using Account.GetAccountValue(AccountItem.CashValue,Currency.UsDollar). I can get the name of the account but nothing else.