Back Bet with Scratch

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Vovsen
Posts: 107
Joined: Sat Nov 03, 2018 4:50 pm

Hello

I have searched the forum for a bot that will scratch my bet, these threads were very helpful:

viewtopic.php?f=58&t=16730&p=158676#p158676
viewtopic.php?f=57&t=16582&p=155844&hil ... ch#p155844
viewtopic.php?f=53&t=18655&start=10

Credit to Dallas for the Sample Scratch bot that helped me understand how to approach this.

Unfortunately it is not working as it should for me.

lets say I place a back bet of 10e at 4.2 and get matched, the bet will then be offset by 1 tick and have a stoploss of 5 ticks.
If the money waiting on the back side at 4.2 goes below 10e, the bot should cancel the unmatched offset and place a lay at 4.2 to be scratched
If the prices moves up past 4.2 due to a spike, it should cancel the scratch lay waiting at 4.2 and instead use stoploss if the price reaches 4.7 (5 ticks)

Also if the offset is only partially matched, it should go for scratch as well as cancelling the remaining unmatched offset.

I have attached the bot. If anyone is able to help me fix the bot it would be much appreciated.
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23514
Joined: Sun Aug 09, 2015 10:57 pm

I won't have chance to look at the bot till tomorrow, but since those bots you linked to where done a Stored value condition has now been added which can now test the money waiting at any of the best 3 prices so that would be the condition to use (if your not already).

and if not there's an example here which uses it to trigger bets which you could check out, in your case you'd want it on a 'close trade on selection with greening' rule
viewtopic.php?f=58&t=18645
Vovsen
Posts: 107
Joined: Sat Nov 03, 2018 4:50 pm

Thanks! Sounds like I am on the right track. The Bot has:

1. A place back bet rule
-Stores the value of the price "Entry" for the Servant Context Price
-Set Signal "Back" value 1
-Number of Unmatched Bets Condition less than 1
-Allow to Trigger 1 time, always armed. 999 Seconds before rearming.
-Place at Servant Context Selection, 1 tick offset bet with greening 5 tick stoploss, place fill or kill 9999 seconds. Offset Batches 5.

2. A Close trade on selection with greening rule
-Stored Value Condition Last traded price must be equal/greater (tried both) than Stored Value "Entry"
-Signal Set Condition "Back" Set with a value
-Money available to Lay Condition at price held in another stored value "Entry" is less than 10
-Number of Matched Bets Condition greater than 0/1
-Clear Signal "Back"
-Allow to Trigger 20 times, always armed. 999 seconds before rearming.
-Parameter to place at Reverse/Current Market price (tried both)

I based it off the Scalp Using Waiting Money, and other recent posts you have replied to, since the new stored values were added.

It seems like the bot does not react when there is less than 10 money waiting to lay, even after testing multiple combinations of the above.

Would be great if you could take a look at it!
User avatar
Dallas
Posts: 23514
Joined: Sun Aug 09, 2015 10:57 pm

Give this a try in Practice Mode and let me know how it goes
I've made some quick changes but not had any time to test it
You do not have the required permissions to view the files attached to this post.
Vovsen
Posts: 107
Joined: Sat Nov 03, 2018 4:50 pm

Thanks again,

I can see you have changed:

2. A Close trade on selection with greening rule
-Stored Value Condition Last traded price must be equal/greater (tried both) than Stored Value "Entry"
--> Stored Value Condition The Back Price is equal to Stored Value "Entry" minus 1 tick

-Money available to Lay Condition at price held in another stored value "Entry" is less than 10
-->Money available to Lay Condition at the Servant Context price is less than 10

I have just tested the modified version you uploaded in practice mode on Kyrgios vs Nadal:
Nadal:
KyrgiosNadal.PNG
I do not understand why the bot does not go for scratch immediately here, since I backed 1.28 and there is less than 10 money available to Lay - Instead theres 6k available to back.

It seems like the issue is, that the bot will not recognize that there is more money waiting on one side than the other, at the current price.

Here is the log when tested on Kyrgios and everything seems fine, except for triggering the rule to close trade:
KyrgiosLog.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23514
Joined: Sun Aug 09, 2015 10:57 pm

In that image, the lay price is now 1.29
The conditions are testing for there to be less than 10 at the context price (1.28)
and the back price is 1 tick lower (1.27)

Basically, the price has gone right through your entry. This type of strategy won't work well on tennis markets which are driven by score and will jump up and down several ticks at a time while any money waiting can go from +£10k to £0 in an instant.

It's more suited to pre-off racing markets where a price 'flow's on opinion, it can still jump several prices but the majority of the time it will move tick by tick.

To continue to use it on tennis and protect yourself against sudden jumps you could add a further green up rule and add another SV condition to test the price is 'X' ticks higher than your context price
Vovsen
Posts: 107
Joined: Sat Nov 03, 2018 4:50 pm

Thanks again Dallas

I have been testing variations of this bot on handicap horses and the close trade green up rule is now working. It will go for scratch when the last traded price is one tick against my entry and there is less than 50% money available vs the reverse price money available.

But it seems that the stoploss of -3, from my initial offset, does not trigger as I thought it would.
When the bot is overrun and has placed a scratch bet, the stoploss does not always trigger at -3.

Sometimes it triggers, but since my scratch bet is unmatched, they both get matched and it adds ekstra liability. It seems that both the stoploss and scratch gets matched, instead of the stoploss cancelling the unmatched scratch bet.

Sometimes it does not trigger at all, and I see the price trading at -3 ticks, while my unmatched scratch bet is just sitting there.

I think the reason is that the stoploss from my initial bet offset, is not compatible with the close trade with greening rule, when used in tandem. Or perhaps something with practice mode.

I have tried to add another close trade with green up rule, as a stoploss, but it seems that because they are using the same signal, from the initial bet, that they will not trigger properly after the first trigger. Is there a way around this?


-Can you verify whether stoploss and the green up rule to scratch should conflict like above?

-Can you recommend a good way to have the closest scratch and stoploss bot? For example, would it conflict if they both trigger at -1 tick, one will scratch when theres more than 500 available and stoploss will trigger when theres less than 500?



It would be much appreciated.
Post Reply

Return to “Bet Angel - Automation”