Author Topic: delay bet  (Read 16194 times)

Tags:
  • Moderator
  • Posts: 3605
*
Re: delay bet
« Reply #15 on: 04 Oct 2014, 17:33 »
One small problem though is I had to set 'dts' to 120 to get 8 seconds wait time.
I'm not sure how that happens but most of the logs show 8 seconds which is about what I require.
Perhaps a possible explanation is that the Time Machine runs at 15 times that of real time
and 120 divided by 15 = 8  wala !!  Could that be the answer ?
Hi
Yes. Try running TM at normal speed and it should be 8 secs delay.
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.

  • All members
  • Posts: 829
Re: delay bet
« Reply #16 on: 04 Oct 2014, 22:51 »
Hi Mark,
Thanks for the confirmation and will test in real time a bit later.
I suspect the bet is calculated first and and placed after the wait time as opposed to calculating after the wait time. Is this correct ? If so then could cause a matching problem.
The problem I'm facing, is the greenup trigger is firing at the same time the FAV trigger fires. To try and explain clearly here is the firing order, times and odds of a real event:
BACK     18:16:15  @  2.86  
FAV       18:16:23  @  1.53
2FAV     18:17:28  @  2.36
FAV       18:17:36  @  1.67
G/UP     18:17:36  @  1.67
Firstly there is the 8 second wait between the first two which proves the trigger is working okay. So my question here is, are the odds of 1.53 used for calculation purpose taken before or after the 8 second wait period ? In other words taken at 18:16:15 or
18:16:23 ?
The bottom two are a perfect example. Both times and odds are the same and I suspect the g/u trigger didn't calculate accurately as the outcome was incorrect.
If the odds are taken after the 8 sec wait then I could add the wait conditions you suggested to the greenup trigger.
I bet you've seen clearer mud :)
Thanks Mark
R
ps..... I've just added the wait to the greenup trigger and it fired using different odds to the 1.67 shown above, in fact another trigger fired a bet in before the greenup fired, which would influence the odds and is no indication. I'll await your verdict !
 

My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3605
*
Re: delay bet
« Reply #17 on: 05 Oct 2014, 06:10 »
Hi
It is very difficult to tell without seeing your actual triggers. I'm afraid I do not understand how your triggers work or what they do from your descriptions. In the list of bets its seems the FAV trigger might repeat but you do not mention that it does.  

The moment a trigger is executed is the moment the expressions are calculated and variables are parsed and all conditions are true, so it has to be after the delay condition is true.

The "green up" action will green up all selections in a market if the prices are appropriate for a green up, unless you specify in the selections field or in your conditions only a specific selection for greening up. I am thinking the G/UP trigger execution at 18:17:36 is greening up the whole market because prices of all your bets in the market were appropriate for a green up and the trigger conditions were met. If you want to use the "green up" action for a specific selection only, you need to put in conditions that restrict the green up trigger to the selection you want to green up. However, I think for what you have shown it might be better for you to use back and lay actions on specific selections instead of using the green up action.    
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.

  • All members
  • Posts: 829
Re: delay bet
« Reply #18 on: 05 Oct 2014, 22:02 »
The moment a trigger is executed is the moment the expressions are calculated and variables are parsed and all conditions are true, so it has to be after the delay condition is true.

Hi Mark,
The above is the confirmation I was looking for.
The greenup is an overall greenup rather than for each trigger.
I have put some effort into the trigger today and working okay now.
Many thanks for your time and patience.
R
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 829
Re: delay bet
« Reply #19 on: 15 Oct 2014, 06:42 »
Hi Mark,
Can the "now-time" trigger be used to allow a greenup bet to fire between two triggers?
example using an 8 second delay:
Back1  35:00:00
G/U     35:00:01
Back2  35:00:08
Otherwise it would look like the following:
Back1  35.00:00
Back2: 35:00:00
G/U      35:00:00
The greenup was only possible after the Back1 trigger fired, thus when the Back2 fired the result would have been incorrect.
Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3605
*
Re: delay bet
« Reply #20 on: 15 Oct 2014, 08:40 »
Hi
Yes, if a timer variable has been set in trigger Back1 (example in reply#13)
then the conditions in trigger Back2 should include:

and trigger Back1 number of runs is greater than 0 (overall unticked)
and trigger G/U number of runs is greater than 0 (overall unticked)
and (now_time-timer)/mf_second is equal or  greater than waiting_time

where the waiting_time constant is set to 8
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.

  • All members
  • Posts: 829
Re: delay bet
« Reply #21 on: 15 Oct 2014, 10:49 »
Hi Mark,
Thanks for the details.
I query the condition
and trigger G/U number of runs is greater than 0
This prevents the Back2 trigger from firing if no greenup is possible.
To confirm my understanding:
user variable is set in Back1 trigger as per your instruction in reply 13
and trigger G/U number of runs is greater than 0 along with
and trigger Back1 number of runs is greater than 0
both of which are placed in Back2 trigger
I await your comments
Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3605
*
Re: delay bet
« Reply #22 on: 15 Oct 2014, 20:08 »
Hi
I understood from your earlier post that Back2 would be correct only after Back1 and G/U had executed. So yes, the 3 conditions in my last post will ensure this.

If you just want to delay Back2 by 8 seconds after Back1 executes whether G/U fired or not the conditions for Back2 are:
and trigger Back1 number of runs is greater than 0 (overall unticked)
and (now_time-timer)/mf_second is equal or  greater than waiting_time

where the waiting_time constant is set to 8
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.

  • All members
  • Posts: 829
Re: delay bet
« Reply #23 on: 15 Oct 2014, 20:53 »
Hi Mark,
Simply put I just want to allow the greenup trigger time to fire
before the Back2 trigger fires.
The way it is now as explained earlier is that the greenup and Back2 triggers fire at exactly
the same millisecond.
I'll try this again using the conditions on your last post. However I have tried this many times on another trigger and didn't work. Let me try on this one
Cheers/Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 829
Re: delay bet
« Reply #24 on: 16 Oct 2014, 00:14 »
Hi Mark,
Good news, I finally put this one to bed.
I added another 'now time' condition to the greenup
trigger for a delay period of 4 seconds.
The Back trigger has an 8 second delay.
I have tested on a couple of events and it is working well.
I'll continue testing
Cheers and thanks again for your patience on this one.
R
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 829
Re: delay bet
« Reply #25 on: 16 Oct 2014, 20:29 »
Hi Mark,
Celebratory drinks were taken too early.
I still have the problem of two triggers firing exactly at the same time.
The event I am testing is the following:
10-Feb-2014  Mathieu V Dodig
The greenup calculated the bet as follows
19:57:39    Fav_1   Dodig     10.00  @ 1.45
19:57:53    Fav_2   Mathieu  10.00  @ 3.15
19:57:53    Green1 Mathieu   4.28   @  3.15

I've attached the basic trigger.
The green Index_1 trigger does function properly. I tested it by disabling 2Fav trigger and testing. It took longer to greenup so it seems green Index_1  fires in tandem with 2Fav and unsure why.
Could you please have a look and kindly modifiy.
Many Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3605
*
Re: delay bet
« Reply #26 on: 16 Oct 2014, 22:14 »
Hi racepro
Regarding the timing issue I can't look at this properly until the weekend, but just looking at the trigger file, I was thinking:
  • in the backing triggers the rank conditions are not needed because you have specified a back price range. Anything above back price 2.00 is rank 2. Would it be better to use selections index throughout?
  • I wonder if it might also be better to have each index in it's own repeating trigger block?

I'll get back to you over the weekend unless someone else can resolve it.
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.

  • All members
  • Posts: 829
Re: delay bet
« Reply #27 on: 17 Oct 2014, 00:52 »
Hi Mark,
Thanks and comments noted.
I'll be adding more back triggers sometime later but
if we can solve the double firing problem I can add any conditions to subsequent triggers.
I look forward to your news in a few days, meanwhile I'll think about the Index idea.
Cheers
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3605
*
Re: delay bet
« Reply #28 on: 17 Oct 2014, 10:49 »
Hi
Please can you explain the basic principle and sequence of bets this trigger needs to do.

Happy to do this on forum where you can get input from others too, but if you prefer you can PM or email me on this and I'll take it from there. You have the address.
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.

  • All members
  • Posts: 829
Re: delay bet
« Reply #29 on: 17 Oct 2014, 12:21 »
Hi Mark,
The idea is quite simple and trigger order as follows.
All bets are Back bets.
1) Fav_1  (favourite - first bet)
2) 2Fav_1 (second favourite - first bet)
3) Fav_2   (favourite - second bet)
4) 2Fav_2 (second favourite - second bet)
etc.......
The principle behind it is to bet on two player/team events
and bet both players.
Back fav and second fav almost at same time. (later I will work out a proper entry strategy for second fav.)
The  (3) Fav_2 bet is the same player as (2) 2Fav_1 meaning the second fav (2) is now fav
Example:
Fav_1   Nadal   1.70  5.00
2Fav_1 Murray 2.40  5.00
Fav_2   Murray 1.80  5.00
2Fav_2 Nadal   2.30  5.00
etc..........
I have two greenup triggers as shown in trigger supplied in last post.
The greenup trigger seems to fire at exactly the same time as second fav (2Fav) trigger
This is the only problem I am facing.
Hope you can follow this
Cheers
R
My grandma taught me not to run downstairs and never back odds on.

 

Please note, BetFair is seems to be currently OFFLINE