Batch file to start all my trading applications - futures io
futures io futures trading



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)
    1. trending_up 2,276 views
    2. thumb_up 7 thanks given
    3. group 3 followers
    1. forum 12 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Batch file to start all my trading applications

(login for full post details)
  #1 (permalink)
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
 
Posts: 195 since Dec 2010
Thanks: 328 given, 273 received

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

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(170 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(116 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,753 since Jun 2009
Thanks: 32,299 given, 97,507 received

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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #3 (permalink)
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
 
Posts: 195 since Dec 2010
Thanks: 328 given, 273 received


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
 
(login for full post details)
  #4 (permalink)
Merida, Yucatan, Mexico
 
 
Posts: 110 since Nov 2010
Thanks: 14 given, 65 received

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:
 
(login for full post details)
  #5 (permalink)
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
 
Posts: 195 since Dec 2010
Thanks: 328 given, 273 received

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
 
(login for full post details)
  #6 (permalink)
Merida, Yucatan, Mexico
 
 
Posts: 110 since Nov 2010
Thanks: 14 given, 65 received

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
 
(login for full post details)
  #7 (permalink)
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
 
Posts: 195 since Dec 2010
Thanks: 328 given, 273 received


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
 
(login for full post details)
  #8 (permalink)
Merida, Yucatan, Mexico
 
 
Posts: 110 since Nov 2010
Thanks: 14 given, 65 received


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:
 
(login for full post details)
  #9 (permalink)
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
 
Posts: 195 since Dec 2010
Thanks: 328 given, 273 received

@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:
 
(login for full post details)
  #10 (permalink)
Site Moderator
London UK
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
 
xplorer's Avatar
 
Posts: 5,295 since Sep 2015
Thanks: 13,326 given, 12,596 received



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
 
(login for full post details)
  #11 (permalink)
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
 
Posts: 195 since Dec 2010
Thanks: 328 given, 273 received

@bradhouser

ok... I played few hours with MouseRecorder... it doesn't work very well (for example, it fails to recognize the UAC pop up and many other issues). Seems like a very unfinished product at this point.

I guess I will wait for someone that has created a command file to start all trading apps as an example.

Started this thread Reply With Quote
 
(login for full post details)
  #12 (permalink)
Merida, Yucatan, Mexico
 
 
Posts: 110 since Nov 2010
Thanks: 14 given, 65 received

Oh well. Good luck.


Sent from my iPad using futures.io

Reply With Quote
 
(login for full post details)
  #13 (permalink)
washington DC
 
 
Posts: 1 since Feb 2021
Thanks: 0 given, 0 received


dstrader View Post
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.

Hey,

There Is excellent stuff for you The Fast Auto Clicker is a tool that helps you configure the auto clicking on your computer. It is generally used for playing game like Minecraft etc.

Only one click to go - https://fastautoclicker.com/

Fast Auto Clicker (Previously Auto Clicker Typer 2.0) is a free macro recorder software which automates your repetitive mouse and keywords tasks.



Features:
- free macro recorder
- use friendly interface
- its ease to installation
- Use of AUTOCT file for automation.

Installation of the Auto Clicker is a simple process that does not take much effort or time


Regards,

Tonyclark

Reply With Quote


futures io Trading Community Off-Topic Tech Support > Batch file to start all my trading applications


Last Updated on February 5, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts