In-play stop loss

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
bizmark222
Posts: 82
Joined: Sun Jan 27, 2019 7:02 pm

When trading on the ladders you can use a stop loss by clicking on a cell and highlighting it yellow. How can I achieve this in automation please?
User avatar
Derek27
Posts: 25159
Joined: Wed Aug 30, 2017 11:44 am

bizmark222 wrote:
Sat May 18, 2024 7:49 am
When trading on the ladders you can use a stop loss by clicking on a cell and highlighting it yellow. How can I achieve this in automation please?
In automation, you can set a stop-loss when placing the bet. If you want to set one after placing the bet, you can simply have a rule that closes trade when the market hits your desired stop-loss price.
User avatar
Euler
Posts: 26688
Joined: Wed Nov 10, 2010 1:39 pm

bizmark222 wrote:
Sat May 18, 2024 7:49 am
When trading on the ladders you can use a stop loss by clicking on a cell and highlighting it yellow. How can I achieve this in automation please?
There are lots of ways to achieve this but the big problem you face is that the market moves so fast and there is also an in-play delay applied to all bets. So any stop loss needs to take account of that. You may have to wait to see if it is match then try again, and again etc.

It's a tricky thing to do.
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

@Op here's a rough draft of one method

1. Store SV 'StopPrice' for Selection (Use 2; 1 for back & 1 for lay)
2. Condition: If LTP for Selection is equal to to or past the stored SV then activate the stop loss by firing an opposing bet
3. As stop fires, you can store current bet volume on that selection for reference
4. Check after 0.2-1s (plus any IP bet delays) bet volume again to see if stop was matched or not
5. Tally any matched amounts and calculate remainder
6. Repeat steps 3-5 until fully matched

You may decide stop loss isn't worth it if price is >X / <Y; spread is > X ticks; or to only ever fire when there is 0 gap, etc.
Place stop (execute price) a few ticks worse than the price you're after to reduce unmatched bets

Kinda sleepy might've missed smith but hth
Post Reply

Return to “Bet Angel for newbies / Getting started”