NexusFi: Find Your Edge


Home Menu

 





Monitoring multicharts SA is running


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one nikke with 4 posts (4 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 Jura with 1 posts (4 thanks)
    1. trending_up 2,545 views
    2. thumb_up 8 thanks given
    3. group 1 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

Monitoring multicharts SA is running

(login for full post details)
  #1 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6

Hi,

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.

How have you guys managed to solve this?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ISO Equity Curve Indicator
NinjaTrader
Volume profile TradeStation
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
26 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
12 thanks
1% Risk Journal
11 thanks

(login for full post details)
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Posts: 50,232 since Jun 2009
Thanks Given: 33,103
Thanks Received: 101,344


File -> New -> Order/Position Tracker, the log tab there, etc.

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


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


Lifetime Elite Membership: Sign-up for only $149 USD
Receive exclusive 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
(login for full post details)
  #4 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6


Big Mike View Post
File -> New -> Order/Position Tracker, the log tab there, etc.

Mike

Thanks, I am looking for something automated.

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.

Reply With Quote
(login for full post details)
  #5 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


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


nikke View Post
I can monitor MC's text-logfiles that it has not lost connection to TWS(if I find a windows-program for that)

Try SnakeTail, one of the best programs for monitoring large text files, and also let you highlight specific words.


nikke View Post
I would really like to monitor that the SA is still running.

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.


Big Mike View Post
File -> New -> Order/Position Tracker, the log tab there, etc.

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).

Regards,

Reply With Quote
The following 4 users say Thank You to Jura for this post:
(login for full post details)
  #6 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6

If the PC or tws crashes it is caught by the tws port-availability-monitoring from another location. This also catches network connection loss regardless of what causes it.

Thank you Jura a lot for the good tips, I think it gave me enough ideas to also get a working solution to monitor the most important other scenarios.

Reply With Quote
The following user says Thank You to nikke for this post:
(login for full post details)
  #7 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6

Hi!

Just writing it up here so maybe others can use similar solution.

After some research I am settling for a solution like this:

1. Strategies write to a textfile when they are running.
2. These textfiles are available over lighttpd
3. Monit from another physical location checks that these textfiles are constantly updated.

This seems to be the most simple solution that can catch some different scenarios that can go wrong (eg. strategy turned off, MC crash), and I can use tools I know.

-N

Reply With Quote
The following 3 users say Thank You to nikke for this post:





Last Updated on October 21, 2011


© 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