Author Topic: Trigger  (Read 3270 times)

  • All members
  • Posts: 6
  • Gender: Male
Trigger
« on: 21 Jul 2019, 14:31 »
Can you help me create the following trigger?
Strategy only for GB and IE horse races.
Automatically import horses' names from text file 30 minutes before inplay.
Back for each imported horse 10 GBP.
Repeat this operation in 5 minutes.
The last iteration is done 10 minutes before inplay.
All back bets are needed to be green up 5 seconds before implay.

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Trigger
« Reply #1 on: 25 Jul 2019, 10:47 »
Hello tekitekiteki

I leave the requested trigger below.

To use the list with your selections, I chose the following method.

- Create in c: a folder named "HR_BOT".
- Inside this folder put the file "selections.txt" that also along with the trigger.
(You can also put your trigger in this folder, so everything is in the same place.)
The text file "selections" already has two selections set as an example.

Then just execute your trigger normally.

Please test the trigger very well using Market Feeder Pro Test Mode to make sure everything is as requested.

If you need help just call this same post.

Thank you very much
pcal
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • All members
  • Posts: 6
  • Gender: Male
Re: Trigger
« Reply #2 on: 28 Jul 2019, 14:46 »
Thank you for trigger!
I have 2 questions:
1) Can you show me in which trigger constant "mins between" is used?
2) What idea is behind the variable "Timerbet"?

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Trigger
« Reply #3 on: 28 Jul 2019, 20:09 »
Hello frind

The "mins between" is related to the "Repeat this operation in 5 minutes." in your trigger request
The "TimerBet" is a initial timer to define when "mins between" is a true condition, and then apply next entry.

Thanks
pcal
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • All members
  • Posts: 6
  • Gender: Male
Re: Trigger
« Reply #4 on: 31 Jul 2019, 17:49 »
Hello!

Tried your trigger in action.
It can't find horses from text file "selections.txt".
I tried to import this file manually without trigger. In this case it found horses.
Do you know the reason of the problem?
In your example there was 1 selection, in my case there are 5 selections. These selections are from different markets.

Daniil

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Trigger
« Reply #5 on: 03 Aug 2019, 22:14 »
Well, I think the problem will be how you are importing the selections.

Please see the two images attached below that I think will help you a lot.

But, unfortunately, I also saw that there was a slight error in the trigger and in the file name of the selections.
So I also leave them down to unload again.

I apologize for the delay !!

Thank you very much
pcal
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • All members
  • Posts: 6
  • Gender: Male
Re: Trigger
« Reply #6 on: 06 Aug 2019, 01:16 »
Thank you for the reply!
Now everything works well except greening up. Some selections are green up, some ones are not.
In the attached example "Necoleta" was not green up.
What is the reason?
P.S. In "Tradeout" trigger I deleted condition "Trigger Timerbet number of runs per selections is greater than 0". It didn't help.

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Trigger
« Reply #7 on: 06 Aug 2019, 05:23 »
Hi

I will check it out today

Thanks
pcal
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Trigger
« Reply #8 on: 06 Aug 2019, 05:55 »
Hello

The line of code you deleted for me makes sense because it prevents this trigger from operating on other entries.
Of course, it is expected that there are no inputs other than the back trigger does.
(e.g. manual entries)

It is essential to be careful and make sure that the trigger tradeout is the last to fire.
Perhaps it may be important to close a little early, all races tend to be delayed, but sometimes one or another appears to close just over the start time of the race and this can lead to some tightening in our action time.

I noticed you made two back same selection, which were not closed at an odd of 600.
I ask at the time of tradeout would there be odd lay?

Finally, you searched the trigger logs for the reason why the trigger treade out did not close this odd 600 selection.

We will coordinate efforts to make your trigger work at 1000% but I need two things from you, do not change the code I wrote, so I will not know exactly what I say and I need to provide all the possible information for detection total possible problem.

I await your feedback on this "problem".

Thank you very much
pcal
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • All members
  • Posts: 6
  • Gender: Male
Re: Trigger
« Reply #9 on: 06 Aug 2019, 14:09 »
That was a good idea to see trigger logs.
The problem is in the limit on lay liability.
In the example with "Necoleta" (image in the previous post) there were 2 back bets with size 10 and odds 600 and 640, respectively. I don't what lay odds were in the market before the off. Let's suppose that lay odds were approximately the same as back odds. In order to green up, 2 lay bets should be made with size 10 each one. In this case lay liability would be 10*600+10*640=12400, when the account size is around 2000. Than the program gives the error "Insufficient funds available. Need € 12 400.00, got € 2 230.98".
I don't understand why the program looks at lay bets individually without mentionig back bets which balance large liability of lay bets.
Is it possible to turn off such a restriction?

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Trigger
« Reply #10 on: 06 Aug 2019, 14:13 »
Well, that is betfair field and rules.
Each one of us only can accept that rules
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • All members
  • Posts: 6
  • Gender: Male
Re: Trigger
« Reply #11 on: 06 Aug 2019, 14:38 »
This is not the betfair restriction.
Look at the image attached. My real account size is around 6. I made a back bet with size 3 and odds 55.
For that time the best lay odds were 60. In order to green up, I needed to make a lay bet with size 3*(55/60)=2.75. In this case my lay liability would be 2.75*60=165 euros. This is greater then my account size, but this lay bet was successfully matched (look at the image attached).
So, this is the restrction of the program.
Is it possible to turn off this restriction?
If no, the program would become useless for me, and I would unsubscribe from it.

  • All members
  • Posts: 905
Re: Trigger
« Reply #12 on: 07 Aug 2019, 09:05 »
I believe your problem may only affect test bets.  The placing of real bets is controlled by Betfair servers where the combined liability is taken into account.   No doubt Oxa will be along shortly to advise.

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Trigger
« Reply #13 on: 07 Aug 2019, 09:40 »
Hello tekitekiteki

I finally realized what is going on and it was thanks to our friend rubold member.
Thanks mate !!

That's right, in test mode bets you have to have the available banker responsible for all back and lay bets, even when they are made in the same selection.
The market feeder in terms of responsibility does not operate the way betfair can.

However in test mode I personally use a trick for this which is:

Imagine you want to test your strategy with a £ 1000 bankroll

So in test mode I put a £ 10,000 bankroll and adjust the stake, stop loss, stop profit percentages (if they are present in my trading) to use the values as if it were my only £ 1000 bankroll.

So my P / L and stop simulation is what I want but I have a huge bankroll where all the betting liability calculations can be done without any problem.

I hope I helped and I apologize for not having answered more concretely before, is that I was even lost without realizing it.

My mistake only!
Thank you
pcal
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • All members
  • Posts: 6
  • Gender: Male
Re: Trigger
« Reply #14 on: 07 Aug 2019, 09:48 »
Thank you for the answer.
Now it's clear how to deal with the problem in the test mode.
Would I have the same problem with real account? In this case it would be problematic to put 10'000 instead 1'000.

 

Please note, BetFair is seems to be currently OFFLINE