Author Topic: How to create trigger  (Read 2005 times)

  • All members
  • Posts: 4
  • Karma: +0/-0
How to create trigger
« on: Sun, 06 January, 2013, 19:11 »
Hi,

   I'm new in sports bet, and even more with MFP.
   I've already read almost all the MF7 Manual, but if someone can give an example it will be much easier for me to create my first trigger.

  What I want the trigger to do:

  - Only in specific soccer leagues (English and Spanish for example)
  - Only after a goal occurs for the underdog. start counting time since the goal and 1 minute after it, back the underdog at the best back price.
  - 10 minutes after the back to the underdog, close position if it green(back price for the underdog is lower now), or if it is red more than 50% of the previous back bet.
  - if none of the previous condition (green or red above 50%) was satisfied, check it again after additional 10 minutes.
  - at 75 minutes if we still have the back bet open, close it.

I don't think this is very easy to do, that's why I'm asking your help, if possible.

Thanks and Happy New Year!
Pjantunes

  • Moderator
  • Posts: 2788
  • Karma: +229/-0
*
Re: How to create trigger
« Reply #1 on: Tue, 08 January, 2013, 11:16 »
Hi
Attached please find a trigger file which should help to get you started.
I have assumed the entry point to be if the underdog scores the first goal of the match.
The goal_ticks constant is used to confirm the underdog has scored by its back price dropping by the minimum specified ticks. You can adjust this.
I have made the exit based on ticks, but again you can change this if you want.
It will distribute loss 10 minutes or greater after the back bet was matched, as long as the minimum loss_ticks is exceeded
or it will close at 75 minutes or more disregarding the loss_ticks

This trigger is not tested at all, so expect errors. Please use it in test mode.
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • Nerd
  • √Člite
  • Posts: 590
  • Karma: +27/-1
  • Gender: Male
  • I think I could be on to something here!
*
Re: How to create trigger
« Reply #2 on: Tue, 08 January, 2013, 11:47 »
Your conditions are somewhat complex for a beginner, but here's just some advice for you and others.

Always break down the conditions as fine as possible. Use separate trigger blocks to perform minimal tasks, it keeps things somewhat simple and it also makes trouble shooting easier.

good luck.
Fortune favors the brave!

  • All members
  • Posts: 4
  • Karma: +0/-0
Re: How to create trigger
« Reply #3 on: Wed, 09 January, 2013, 00:55 »
Hi MarkV,

   I'll have a look in the trigger you sent me.
   Thanks a lot for your help. :)

Hi 1oser,

    I think you are right, Wedo have to split it in small conditions, otherwise it is very difficult, at least while we do not have experience.

Pjantunes