NexusFi: Find Your Edge


Home Menu

 





Batch file to start all my trading applications


Discussion in Tech Support

Updated
      Top Posters
    1. looks_one dstrader with 6 posts (2 thanks)
    2. looks_two bradhouser with 4 posts (4 thanks)
    3. looks_3 xplorer with 1 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (1 thanks)
      Best Posters
    1. looks_one bradhouser with 1 thanks per post
    2. looks_two tonyclark with 1 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 dstrader with 0.3 thanks per post
    1. trending_up 5,237 views
    2. thumb_up 8 thanks given
    3. group 3 followers
    1. forum 12 posts
    2. attach_file 0 attachments




 
Search this Thread

Batch file to start all my trading applications

  #1 (permalink)
 dstrader 
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
Posts: 195 since Dec 2010
Thanks Given: 330
Thanks Received: 275

Has someone written a 'batch file' application to start all their trading applications?

I like to shutdown my computer everyday, and restart everything from scratch (some applications would get unstable when I was running for days in a row). I run many applications in my trading computer for different purposes, and styles of trading (Market Delta Charts and Trader, NinjaTrader, TradeStation, StreetSmartEdge, TOS, VectorVest, etc.). It takes me 10-15 minutes just to get everything running properly with all the user ids and pws.

I was wondering if there is a software out there that would do that for me (including entering the user id and pw for each app of course, otherwise I can just put each on the start up folder). If not, I was thinking in building a .bat file (which I have not done in over 15 years), so I'm looking for examples. I'm specially having difficulties with how to transfer the id/pw for each application. My goal would be to start my computer first thing in the morning while I do a couple of other things (take son to school, etc.) let it do all the start up procedure. Once I'm back in my office desk everything would be set to go. Also, may allow me an extra 15 min sleep .

Would appreciate any help. You can attach a file or post the .bat code here, and I will adapt for my needs (of course, clean up your id/pws from the file! ). As I said, would be interested in buying an application possibly more powerful to automate all these tasks.

Many thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Request for MACD with option to use different MAs for fa …
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
52 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
What percentage per day is possible? [Poll]
31 thanks
GFIs1 1 DAX trade per day journal
31 thanks

  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,477

More modern examples would use AutoHotKey to launch on start-up, so you can manage the usernames/passwords of the programs, catch exceptions, etc. A DOS batch file won't work in this scenario if you need something more than simply launching an executable, and AutoHotKey is easier than using VB script in a command file.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
  #3 (permalink)
 dstrader 
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
Posts: 195 since Dec 2010
Thanks Given: 330
Thanks Received: 275


I'm still looking for an example of this (maybe using AutoHotkeys or any other application).

Anybody has created something that they could share or have any other ideas? Maybe there is an application out there that can automate this without too much coding.

I started to play with AutoHotKeys, but it seemed quite time consuming. I want a very simple solution to do this. Maybe is just a business opportunity for someone out there to create an app in which you just enter a list of executables, id/pw, and it would do the rest for you.

Started this thread Reply With Quote
  #4 (permalink)
bradhouser
Northern California where the girls are warm
 
Posts: 122 since Nov 2010
Thanks Given: 15
Thanks Received: 72

First of all, they are no longer .bat files. They are now .cmd files, since Windows NT, which all modern windows os'es are based on. Same thing basically.

You can type the path and exe file you want run, one per line. Check the application documentation to see if you can pass command line parameters, like user names and passwords, to them. If you need mouse control, because there is no other way, then AutoHotKey or AutoIT can do that.


Sent from my iPad using futures.io

Reply With Quote
The following user says Thank You to bradhouser for this post:
  #5 (permalink)
 dstrader 
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
Posts: 195 since Dec 2010
Thanks Given: 330
Thanks Received: 275

I got that...

I'm still looking for an example (of course, with removed id/pws).

Just want something to start with to save me time. I'm surprised I'm the first one with this need.

If you don't have an example, please, no need to post.

Anybody?

Started this thread Reply With Quote
  #6 (permalink)
bradhouser
Northern California where the girls are warm
 
Posts: 122 since Nov 2010
Thanks Given: 15
Thanks Received: 72

Maybe if you tell us what applications you want to open, you will get a more specific response. I would like to help, but all i can do is point in a general direction.




Sent from my iPad using futures.io

Reply With Quote
  #7 (permalink)
 dstrader 
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
Posts: 195 since Dec 2010
Thanks Given: 330
Thanks Received: 275


bradhouser View Post
Maybe if you tell us what applications you want to open, you will get a more specific response. I would like to help, but all i can do is point in a general direction.

It's on my first post.

I need to open:
- Tradestation
- Investor R/T
- NinjaTrader
- ThinkorSwim
- StreetSmart Edge (Schwab)
- Vectorvest
- WinTV (no password required - this is just an app to watch TV/CNBC via my tv tuner card). This is optional.

I also need to login into Dough.com inside a browser (which may be complicated), but just being able to do the above would save me a lot of time every morning.

Any example with 3 or 4 of the above would help me to put the remaining together. I'm just looking for some example that works to start...

Started this thread Reply With Quote
  #8 (permalink)
bradhouser
Northern California where the girls are warm
 
Posts: 122 since Nov 2010
Thanks Given: 15
Thanks Received: 72


dstrader View Post
It's on my first post.

I need to open:
- Tradestation
- Investor R/T
- NinjaTrader
- ThinkorSwim
- StreetSmart Edge (Schwab)
- Vectorvest
- WinTV (no password required - this is just an app to watch TV/CNBC via my tv tuner card). This is optional.

I also need to login into Dough.com inside a browser (which may be complicated), but just being able to do the above would save me a lot of time every morning.

Any example with 3 or 4 of the above would help me to put the remaining together. I'm just looking for some example that works to start...

OK. You have a couple options.
1. A keystroke/mouse recorder: www.mouserecorder.com This will let you record any number of mouse movements, clicks, and text for later playback. This may be a simpler choice than using AutoHotkey.

2. Instead of shutting down your system at night, leave all your apps running and use Hibernate instead of Shutdown. This saves a copy of everything in memory to disk before shutting down. When you wake up the system, it restores everything back to RAM without rebooting or restarting your apps.
Hibernate is not the same as Sleep, as Sleep keeps the RAM powered up, which if you are on battery, can eventually drain and everything in memory is lost. If continuous power is not an issue, Sleep is also an option. Plus it is faster waking up than Hibernate.

If Hibernate does not appear on your Power menu, you enable it in Control Panel>Power Options. (Laptops usually have it enabled, desktops may not.) Note that you need enough free disk space on your boot disk for the amount of RAM you have.

I suggest doing both: Sleep or Hibernate for every day, and Mouse Recorder for when reboots are needed.

Hope this helps.


Reply With Quote
The following 3 users say Thank You to bradhouser for this post:
  #9 (permalink)
 dstrader 
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
Posts: 195 since Dec 2010
Thanks Given: 330
Thanks Received: 275

@bradhouser

Thanks! I have some comments:

1- This looks good and easy to implement. I will give it a try and report here (probably over the weekend)

2- I don't recommend using Hibernate/Sleep on a trading workstation. I had a misbehaved trade once caused by memory issues with Tradestation few years ago when I used to do that (Sleep). This issue actually cost me money. Tradestation specifically told me to disable Sleep and Hibernate on the trading workstation.
After looking closely over the years on the behavior of some trading applications I believe it's better actually to shutdown all apps and the workstation and recycle everything and have a fresh start every day. For example, I noticed that TOS and Investor RT are known for constantly increasing memory usage.

Thanks again!

Started this thread Reply With Quote
The following 2 users say Thank You to dstrader for this post:
  #10 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Frequency: Never
Duration: Never
Posts: 5,925 since Sep 2015
Thanks Given: 15,421
Thanks Received: 15,238



dstrader View Post
@bradhouser

2- I don't recommend using Hibernate/Sleep on a trading workstation. I had a misbehaved trade once caused by memory issues with Tradestation few years ago when I used to do that (Sleep). This issue actually cost me money. Tradestation specifically told me to disable Sleep and Hibernate on the trading workstation.
After looking closely over the years on the behavior of some trading applications I believe it's better actually to shutdown all apps and the workstation and recycle everything and have a fresh start every day. For example, I noticed that TOS and Investor RT are known for constantly increasing memory usage.

I would second that.

Reply With Quote





Last Updated on February 5, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts