OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
JamesR

Member
25
Posts: 33

Joined: 1/7/2011
Location: Cotswolds, UK

User Profile
 
Subject : RE: Open Positions
Posted : 1/12/2014 3:21 AM
Post #22555 - In reply to #22394

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.


Attached file : SendPositionsandOrders.txt (6KB - 569 downloads)

Deleting message 22555 : RE: Open Positions


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.