TWS + Portfolio Trader: auto-launch & email notifications
Posted: 09 Mar 2015
Dear MultiCharts fans,
I'd like to share some code with you in the hopes that you might find this useful. The attached Perl scripts implement the following functionality:
* wait until 9am EST
* launch TWS and Portfolio Trader
* start auto-trading
* send email notifications for orders placed, orders filled, and orders expired
* shut-down trading system at 5pm EST
You will need to set up you user information in HKEY_CURRENT_USER/PerlStock. See PerlStock.pl for further information on the required keys.
Some more system information:
* Windows 8.1 on a Lenovo ThinkCentre M73 Tiny
* TWS 9395
* MultiCharts 9.0.10759
* Strawberry Perl
* gmail account for SMTP
* iCloud account to receive emails
My computer is set up to automatically power up at 8am EST. It will then automatically log into my user account and launch PerlStock.bat.
Any comments welcome.
Cheers, Felix
I'd like to share some code with you in the hopes that you might find this useful. The attached Perl scripts implement the following functionality:
* wait until 9am EST
* launch TWS and Portfolio Trader
* start auto-trading
* send email notifications for orders placed, orders filled, and orders expired
* shut-down trading system at 5pm EST
You will need to set up you user information in HKEY_CURRENT_USER/PerlStock. See PerlStock.pl for further information on the required keys.
Some more system information:
* Windows 8.1 on a Lenovo ThinkCentre M73 Tiny
* TWS 9395
* MultiCharts 9.0.10759
* Strawberry Perl
* gmail account for SMTP
* iCloud account to receive emails
My computer is set up to automatically power up at 8am EST. It will then automatically log into my user account and launch PerlStock.bat.
Any comments welcome.
Cheers, Felix