Pages:
Actions
  • #1 by pjantunes on 06 Jan 2013
  • 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
  • #2 by MarkV on 08 Jan 2013
  • 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.
  • #3 by 1oser on 08 Jan 2013
  • 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.
  • #4 by pjantunes on 09 Jan 2013
  • 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
Pages:
Actions