Thought to ask what you guys use to monitor that your multicharts strategies are running and have not hung up or switched themselves off?
I trade on MC and TWS. TWS I can easily monitor from a physically different location that the the TWS port is available and TWS consequently has not crashed. But I have found it quite difficult to monitor that the automated strategies are still running in Multicharts.
I can monitor MC's text-logfiles that it has not lost connection to TWS(if I find a windows-program for that) but I would really like to monitor that the SA is still running.
File -> New -> Order/Position Tracker, the log tab there, etc.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
I usually leave my strategies running for a week and check in on them a couple of times a day. The less the better
So I need to set up some KISS type of alarm if there is something wrong. The most frequent problems have been:
1. TWS crashed, this is monitored now using monit from another location.
2. MC strategies turned off, this is not monitored yet.
Checking for automated strategies that are on or off can be done with GetAppInfo(aiStrategyAuto) which will give an value of 1 if automated trading execution is on, else a 0. With the RecalcLastBarAfter keyword, you can force a script to check this every x seconds.
Try SnakeTail, one of the best programs for monitoring large text files, and also let you highlight specific words.
How you should/can monitor that, depends on why the strategies are turned off. For example, if this is caused by a connection loss for x seconds which turns the automated trading of, the GetAppInfo() will reflect that. However, if the strategy stops because MC has crashed, then that won't work. And if the strategy stops because your computer has freezed, well then nothing in terms of giving an alert works.
What you can do to, is print every x minutes to an log (perhaps on a network drive or something like a DropBox folder) the current time and something like "still running". Then you can monitor this text file, and if that log don't update after x-minutes, MultiCharts hangs or your pc has crashed.
True, but as I today noticed, you can't see there if (and why) a data feed has stopped updating (Btw Nikke, you also may want to program something for that).
The following 4 users say Thank You to Jura for this post: