Problems with one trigger

Please post any questions regarding the program here.

Moderator: 2020vision

Problems with one trigger

Postby heinz_pt » Tue Feb 28, 2012 12:51 am

Hello everyone, I have been testing the Excel triggers, using two markets simultaneous.
In the second market, I've this trigger:
BACK-TL-101-SL-65-SL-IPC

Made the back at 1.65, and then made a lay at 1.66????
I don't understand, the trigger is made by automatically, calculating the offset and the stop-loss:
The ticks that gave was -101 and -65. Is the minus signal?

thanks.
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby faibo » Tue Feb 28, 2012 1:21 am

The trigger is wrong. Read the help file again.

You want something like "BACK-T2".

That's 2 ticks offset. "BACK-T-2" would be -2 ticks offset. The same for SL
User avatar
faibo
 
Posts: 23
Joined: Sun Sep 18, 2011 9:02 pm

Postby heinz_pt » Tue Feb 28, 2012 1:24 am

For further help the formulas, for the ticks are:
For the offset
offset = (back odd - lay odd)* 100

Stop loss = IF(back odd < 2.01; (back odd- lay odd)*100; (2- back odd)*100 + (back odd -2)*50)
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby heinz_pt » Tue Feb 28, 2012 1:25 am

Thanks you are right.
Didn't saw the minus signal-
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby heinz_pt » Wed Feb 29, 2012 12:17 am

Hello again still having problems with the triggers:
LAY-TL69-SL14-SL-IPC

My understanding of this trigger is:
Lay at 1.52
TL69 = Tick Offset bet with Auto Level Profit where 69 ticks up (Back at 2.42)
SL14-SL = Sliding Stop Loss where 14 represents the number of ticks down (Back at 1.38)

The trigger made this moves:
Lay at 1.52 - correct
Back at 1.48 - wrong?????

Can anyone help me?
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby GaryRussell » Wed Feb 29, 2012 7:51 am

Are you sure that the back below your original lay odds wasn't a result of the stop loss being triggered? Remember a back bet can get matched at higher odds than requested which will explain why it is not 14 ticks below. You should look in the transaction log under the account menu to see if the tick offset and stop loss bets were triggered and at which odds. I am pretty sure you are not seeing the full picture here.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby heinz_pt » Wed Feb 29, 2012 12:30 pm

I can only see the log, later in the day, after work. But i'm going to put were another problem i'm having.
I keep getting the 1004 error and I can understand why is it happening. I'm working on the excel that is connect to BA. Is there any special configuration that i have to do.

I'm doing a simple command
Sub Tempo()
Dim hora_folha As Date
Dim hora_comparar As Date
' hora_folha = Sheet1.Cells(2, D)
hora_comparar = TimeValue("00:15:00")
Sheet1.Cells(10, Z) = 1 it gives me the error where
' If hora_folha < hora_comparar Then
' Sheet1.Cells(10, Z) = 1
'Else
' Sheet1.Cells(10, Z) = 0
'End If

End Sub

Thanks
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby heinz_pt » Wed Feb 29, 2012 12:43 pm

GaryRussell wrote:Are you sure that the back below your original lay odds wasn't a result of the stop loss being triggered? Remember a back bet can get matched at higher odds than requested which will explain why it is not 14 ticks below. You should look in the transaction log under the account menu to see if the tick offset and stop loss bets were triggered and at which odds. I am pretty sure you are not seeing the full picture here.


A question if it was the stop loss triggered, it was triggered to soon. Right or in using wrong the triggers?
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby GaryRussell » Wed Feb 29, 2012 12:59 pm

heinz_pt wrote:
GaryRussell wrote:Are you sure that the back below your original lay odds wasn't a result of the stop loss being triggered? Remember a back bet can get matched at higher odds than requested which will explain why it is not 14 ticks below. You should look in the transaction log under the account menu to see if the tick offset and stop loss bets were triggered and at which odds. I am pretty sure you are not seeing the full picture here.


A question if it was the stop loss triggered, it was triggered to soon. Right or in using wrong the triggers?

Maybe you are not aware of how the stop loss functions. If the lay bet is matched at 1.52 and the best lay odds go to 1.38 or below then the stop loss will be placed at the best lay odds minus 1 tick.

You also specified sliding stop loss so if the lay odds went up to 1.62 then the stop loss trigger odds are reset to 1.48 therefore they only have to go down to 1.48 to be triggered. This could also be the reason why you think it was triggered too early. If you don't want this to happen then don't specify the sliding option.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby GaryRussell » Wed Feb 29, 2012 1:10 pm

heinz_pt wrote:I can only see the log, later in the day, after work. But i'm going to put were another problem i'm having.
I keep getting the 1004 error and I can understand why is it happening. I'm working on the excel that is connect to BA. Is there any special configuration that i have to do.

I'm doing a simple command
Sub Tempo()
Dim hora_folha As Date
Dim hora_comparar As Date
' hora_folha = Sheet1.Cells(2, D)
hora_comparar = TimeValue("00:15:00")
Sheet1.Cells(10, Z) = 1 it gives me the error where
' If hora_folha < hora_comparar Then
' Sheet1.Cells(10, Z) = 1
'Else
' Sheet1.Cells(10, Z) = 0
'End If

End Sub

Thanks

You cannot refer to cells in that way unless "Z" is a variable. Because Z is uninitialised it's value is 0 and therefore you are trying to reference a cell out of range. I assume you want to access cell Z10. The following would work.
Code: Select all
[Z10] = 1

or
Code: Select all
Range("Z10").Value = 1
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby heinz_pt » Wed Feb 29, 2012 3:27 pm

GaryRussell wrote:You also specified sliding stop loss so if the lay odds went up to 1.62 then the stop loss trigger odds are reset to 1.48 therefore they only have to go down to 1.48 to be triggered. This could also be the reason why you think it was triggered too early. If you don't want this to happen then don't specify the sliding option.


That might be the reason, I tought that was trailing stoploss. Is this option available by trigger?

Thank you for the help, it was been very usefull.
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby GaryRussell » Wed Feb 29, 2012 6:47 pm

We call it sliding stop loss, but I always considered it to be the same as trailing. What would you expect a trailing stop loss to do different to our sliding stop loss?
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby heinz_pt » Wed Feb 29, 2012 10:48 pm

Is because of too fast odd movement.
For example:
If I have stop loss at 1.35, when the boot identifies the and triggers the bet, during the 5 seconds that the bet as to wait to be available, the odd drops to 1.30, the stop loss, will not enter.

My idea is for the bot, chase the falling odd.

This example is if you do a lay and the stop loss is a back.
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby heinz_pt » Wed Feb 29, 2012 11:01 pm

What's the difference between:
Requests level loss Stop Loss and Requests level loss Stop Loss ?
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Postby heinz_pt » Thu Mar 01, 2012 2:02 am

First off all thank you guys for your patience!!!

One more question: Is there a way to put in a excell the start time off the event?
E now that in VBA is an object: startTime but i can make it work.
This is the code:
Private Sub ba_evenid()
If ba Is Nothing Then
Set ba = New BettingAssistantCom.ComClass
End If
event_id = Range("N1")
events = ba.getEvents(event_id)
Cells(i, 6).Value = events.startTime
End Sub
The error is: Run-time error '424'
Object required
heinz_pt
 
Posts: 24
Joined: Tue Feb 21, 2012 1:10 am

Next

Return to Help

Who is online

Users browsing this forum: Google [Bot] and 40 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.