Author Topic: Auto restart script  (Read 4416 times)

Tags:
  • All members
  • Posts: 35
  • Karma: +0/-0
Auto restart script
« on: Wed, 19 May, 2010, 21:16 »
I would like to create an auto restart script for MF Pro when a crash occur, but I've problem: how can I determine when a crash occur?

Anyone can help me?

Thanks
didacus

  • Administrator
  • Posts: 8952
  • Karma: +337/-2
  • Gender: Female
*
Re: Auto restart script
« Reply #1 on: Thu, 20 May, 2010, 13:41 »
Didacus, it would be better if we tried to understand what causes this crash. So can you please email support and explain what exactly you are doing when it happens, what kind of markets you are running and what triggers are on. It might happen that there is a problem in your trigger that makes the program crash, or something else that is possible to fix.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • Élite
  • Posts: 215
  • Karma: +4/-0
*
Re: Auto restart script
« Reply #2 on: Thu, 20 May, 2010, 16:08 »
Didacus,

if your trigger sends bets frequently, your script can check the size of Action Log Directory. If your trigger usually sends a bet per hour into the market, check size of Action Log Directory every 2 hours and if size did not change, it is likely that MFPro had a problem. Then you can

Kill MFPro to avoid multiple instances
Wait Some Time
Restart MFPro

I prefer AutoIt for this task.

But the current version of MFPro works solid as a rock, even if you trade on many markets with a huge list of bets and API requests near to the limit of 20 free calls per seconds. There must be something wrong with your trigger or setup. Email your trigger to support, MFPro support is excellent, helped me many times in the past.

  • All members
  • Posts: 35
  • Karma: +0/-0
Re: Auto restart script
« Reply #3 on: Thu, 20 May, 2010, 20:07 »
Yes you are right, the best approach is to understand what causes the crash. My trigger just back or lay any seletion name contains "This Name", or is in list "C:/my_list.txt". In this scenario happened that a crash occurs. I will write an email to support.

Check the size of Action Log... this is a good idea, thank you.

hth
didacus

  • All members
  • Posts: 4
  • Karma: +0/-0
Re: Auto restart script
« Reply #4 on: Sun, 15 August, 2010, 19:10 »
Didacus,

if your trigger sends bets frequently, your script can check the size of Action Log Directory. If your trigger usually sends a bet per hour into the market, check size of Action Log Directory every 2 hours and if size did not change, it is likely that MFPro had a problem. Then you can

Kill MFPro to avoid multiple instances
Wait Some Time
Restart MFPro

I prefer AutoIt for this task.

But the current version of MFPro works solid as a rock, even if you trade on many markets with a huge list of bets and API requests near to the limit of 20 free calls per seconds. There must be something wrong with your trigger or setup. Email your trigger to support, MFPro support is excellent, helped me many times in the past.

Afer an API crash today costing me I had a look at this Auto It software.

Can't make head nor tail of it really to build something from scratch so wondered if Martin might share his script that he uses or does anyone else know a way to restart the program?

  • Nerd
  • Élite
  • Posts: 589
  • Karma: +27/-1
  • Gender: Male
  • I think I could be on to something here!
*
Re: Auto restart script
« Reply #5 on: Mon, 16 August, 2010, 08:02 »
Hang on for a couple of hours.

I found some freeware online that is working well for me ... I will post it in about 8 hours time when I get home.
Fortune favors the brave!

  • Nerd
  • Élite
  • Posts: 589
  • Karma: +27/-1
  • Gender: Male
  • I think I could be on to something here!
*
Re: Auto restart script
« Reply #6 on: Mon, 16 August, 2010, 15:33 »
Fortune favors the brave!

  • All members
  • Posts: 4
  • Karma: +0/-0
Re: Auto restart script
« Reply #7 on: Mon, 16 August, 2010, 18:43 »
thanks for that will have a look tomorrow