Back and Lay with Fixed Target Profit & Loss - Servant

Share your servants
Post Reply
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

These servants are designed to be used on any market, there purpose being to place a back or lay bets and green up the once a target profit or loss is reached for that individual trade - the Servant can be used on multiple times on the same or different selections

There are two identical servants to download from the bottom of the post, the only difference being is one places an opening back bet the other places an opening lay bet.
Both use 'Servant Context' as there 'selection' 'stake' and 'place at' price (so they will trigger on the selection, use the preset stake you currently have selected for that selection and place the opening bet at the price you have your cursor hovering over at the time you start the servant)

Once the opening bet is matched the Servant will then green up when either a £5 profit or £5 loss is made on that individual trade (of course you can edit these amounts to anything you want as shown in the next post of this thread)

Let's assume the that trade was greened up for a profit of £5.62, when the servant is started again on that selection it will now green up the second trade up when your profit increases by £5 (so is now greater than £10.62) or decreases by -£5 so is less than 0.62p


How it works and using the Servant
Once you have it imported the Servant into your Servant Manager you can edit any other parts of the rules to suit your exact requirements or remove them and add your own rules by clicking on "Edit Rules File".

Please refer to the 'Note' tab for a more detailed explanation on how each rule works and how it may be connected/linked to other rules within the file
Notes.JPG


Using the Servants
To use these servants just click on the ASC Back Bet with Fixed Profit & Loss for each Trade.baf' and ASC Lay Bet with Fixed Profit & Loss for each Trade.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.
Servant Import.JPG
ASC Back Bet with Fixed Profit & Loss of Each Trade.baf
ASC Lay Bet with Fixed Profit & Loss of Each Trade.baf
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

TIP 1

To edit the profit and loss amounts you want to green up each trade, go into the rules editor and on to the 'Stored Value' tab of the 'Store P&L After Matched Bet' rule
Then on the 2nd Stored Value enter the profit target amount you want to green up for, and on the 3rd Stored Value enter the loss target amount you want to green up for (you can use different amounts for each)

Profit and Loss.png



TIP 2

To allow the rule to be used on in-play horse racing markets I've inserted a 2 second delay between the storing of the profit/loss values after the bet has been fully matched to allow time for Betfair's in-play bet delay and the time it takes for them to send an updated P/L back to your PC once the bet is matched.

If you intend to use on other in-play markets you may need to increase this delay to factor in the long Bet delay Betfair may impose on that market type
Or if you intend to use it on pre-off markets you might want to remove most of the delay and set it to something like 0.5 secs just to there's enough time to get the updated P/L back from Betfair once the bet is matched even on a bad day with a sluggish internet connection.

To change the delay go into the rules editor and on to the 'Conditions' tab of the 'Store P&L After Matched Bet' rule
Then edit the amount in the box highlighted in the image below from 2 to whatever delay you want the rule to use

Signal Delay.png
You do not have the required permissions to view the files attached to this post.
Tiger
Posts: 35
Joined: Wed Mar 29, 2023 8:41 pm

Can this be automated rather than needing a servant to start and stop it. I would like to set it up in Guardian like a normal automation including the ability for it to constantly repeat itself once it's done it once.
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Tiger wrote:
Fri Jan 12, 2024 7:08 pm
Can this be automated rather than needing a servant to start and stop it. I would like to set it up in Guardian like a normal automation including the ability for it to constantly repeat itself once it's done it once.
Yes, you can just change the selection the rule is applied to from Servant context to whatever you want

You will also need to change the stake and place at options from servant context to any of the the other options too
Post Reply

Return to “Bet Angel - Servants - Shared files”