JamesR![]() Member ![]() Posts: 33 Joined: 1/7/2011 Location: Cotswolds, UK ![]() | Attached is my solution. This allows me to get OT to send email reports of both open positions and open orders per account. Note this uses a bit of a cheat - I could find no way of accessing the account names from within OT. So this script relies on the user manually setting up a directory somewhere on their PC and in that directory creating a set of files with names matching their OT Account names. I just used Notepad to create a set of txt files with matching names. This could be used to select which Accounts to report on (by missing out any you are not interested in). If you can live with this limitation, then have a look at the script (or if you know a way of accessing the account names, maybe let me know!!!!) Note that the script will try to send an email, but you need to fill in your email account details in the SendByEmail function and ensure you have put the email address you want to sent to in the almost last line of the SendPositionsandOrders function Any questions - please shout - I have tried to put some sensible comments in the code to assist. ![]() |