Defensive Scalping with Scratch & Exit Servant

Share your servants
Post Reply
User avatar
Dallas
Posts: 15294
Joined: Sun Aug 09, 2015 10:57 pm
Contact:

This servant is for use on almost any pre-off market, although it has been setup to suit larger volume markets like Cheltenham.

The purpose of the servant is to scalp the market defensively for 1 tick profits.

Once started it will place a back and lay bet at the best reverse prices, the hope is of course to get both sides matched and scalp a 1 tick profit, but if one side gets matched and the waiting money drops to less than £2500 another bet will trigger and the trade will be scratched (closed for zero loss).
If one side is matched as the price moves against you it will close the trade for a 1 tick loss.

It uses ‘Selection Context and Stake Context’ The servant uses rules that are applied to ‘Servant Context Selection’. This means it will monitor and trigger bets on the selection you have your mouse cursor hovering over at when you start it (you can run it on as many selections as you want at the same time). It also uses ‘Servant Context Stake’ so will place whatever the pre-set stake you have for that selection when you start it.
Once its close a trade you can re-start it and the whole process again.

When you first look at how its configured in the rules editor it may look complicated but it’s actually straight forward, you’ll see I’ve inserted a few rules named -----------separate------------ these do nothing except separate the different tasks the rules within the file do to help keep the file looking tidier.

There are 4 rules needed for the backing side and 4 identical rules but with reversed settings for the lay side, it then has a cancel all rule at the bottom to mop up any stray unmatched bets. There is also 3 rules at the top which trigger instantly when started to stop previous servants and clear signals etc so there is no possibility of conflicts if the servant used over and over.


How it Works

As I’ve just mentioned the first three rules just reset everything so that there are no conflicts from when it was last used on the same selection, the names of each rule are fairly self-explanatory.

Next is a back bet rule which places a back bet at the reverse price, when it triggers it will also store the value of the reverse price with a stored value named ‘layodds’

The next rule called ‘Scratch if Waiting Money is less than £2500’, places a lay bet using the ‘net’ stake as its staking value (so will place whatever sized bet is required to exit at £0), this also has a ‘Relative Odds Condition’ to test there are no gaps between the back and lay price and a Stored Value condition to test the money waiting at the best price is less than £2500.

When this rule and any of the other Scratch/close rules trigger they also set a signal call ‘stop’ on the selection. They each also have a ‘ Set Signal Condition’ to test the signal named ‘stop’ is NOT set with a value (this means only 1 of the 4 exit rules within the file can trigger depending on what happens in the market, this signal and condition will prevent the others from triggering after its been set).

The next rule called ‘Close if Back bet taken and & price moved’ has similar conditions to the previous rule but importantly it has a ‘Stored Value Condition’, to test if the current lay price is greater than the stored value named ‘layodds’ (which was set by the opening back bet rule).

Finally there is a ‘Cancel bets if price moves’, this will trigger immediately after the rule above triggers, as the name suggests it will cancel the unmatched bets at the stored value price ‘named layodds’, put simply it will only cancel the remaining unmatched opening bet.

And that’s it, there is then another set of rules identical to those above but in reverse for the lay bet and it’s accompanying rules.


Downloading & Using the Servants

To use this servant just click on the ASC Defensive Scalping with Scratch & Exit.Baf attachment links below and this will download them to your computer, then open your Servant Manager window and click the rules link at the top and then "Import a Rules File" as shown in the image, once imported it will now appear in your dropdown boxes and is ready to be started whenever required.

Once you have it imported into your Servant Manager it can be edited very easily simply by clicking on "Edit Rules File".

With any servant always run in practice mode first to ensure everything is working fine, and repeat this each time you make any changes.

See the following thread for step by step instructions on downloading and importing a servant into your Bet Angel, or see image below on were to import it in your Servant Manager.
viewtopic.php?f=57&t=15194
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 15294
Joined: Sun Aug 09, 2015 10:57 pm
Contact:

Tip

To change the amount of money waiting before a trade is scratched open the 'Scratch if' rules, and go to the Conditions tab and the 'Money waiting condition'. At the bottom change the value to whatever you require

Stored Value Cond.jpg
You do not have the required permissions to view the files attached to this post.
Archery1969
Posts: 892
Joined: Thu Oct 24, 2019 8:25 am

Awesome stuff Dallas, many thanks.
teambulldog
Posts: 103
Joined: Wed Jan 04, 2012 9:09 pm

Thanks Dallas
I like this alot
Julian
User avatar
Diacritical Quark
Posts: 166
Joined: Tue Jan 28, 2020 10:55 pm

You're making this far too easy Dallas :lol:
User avatar
murdok
Posts: 113
Joined: Sun Apr 02, 2017 7:10 pm

very interesting this file could you do something similar to this for greyhounds ?
Archery1969
Posts: 892
Joined: Thu Oct 24, 2019 8:25 am

murdok wrote:
Mon Mar 16, 2020 12:15 pm
very interesting this file could you do something similar to this for greyhounds ?
I highly doubt this file is going to work on Greyhounds due to lack of liquidity and gaps in the odds.
waywyrd
Posts: 33
Joined: Tue May 23, 2017 4:18 pm

Hi,

Am I correct in thinking that if you want to place the lay trade first, because you expect price to drift up, you just reverse the back settings?

Many thanks Dallas for all your 'templates', because definitely easier to work out modifying a rule for personal use than trying to do it from 'scratch'.

Waywyrd.
User avatar
Dallas
Posts: 15294
Joined: Sun Aug 09, 2015 10:57 pm
Contact:

waywyrd wrote:
Sun Nov 01, 2020 2:30 pm
Hi,

Am I correct in thinking that if you want to place the lay trade first, because you expect price to drift up, you just reverse the back settings?

Many thanks Dallas for all your 'templates', because definitely easier to work out modifying a rule for personal use than trying to do it from 'scratch'.

Waywyrd.
On this particular servant you would need to delete the four back bet related rules.

Then on the 'lay at reverse price' rule go onto the 'Parameters' tab and in the Global Settings area use;
'Offset Bet' 1 Tick
enable Fill/kill and set to 999secs

PS, glad to hear you've found the examples helpful
User avatar
whimsies
Posts: 137
Joined: Sun Oct 02, 2016 7:37 am
Location: Uk

Hi Dallas,

Thanks for all the work you put in, but struggling with this servant as when the money is taken and moves away the trade is not scratched, Am I missing something?

cheers
Post Reply

Return to “Bet Angel - Servants - Shared files”