In-play stop loss
-
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?
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.bizmark222 wrote: ↑Sat May 18, 2024 7:49 amWhen 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.bizmark222 wrote: ↑Sat May 18, 2024 7:49 amWhen 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?
It's a tricky thing to do.
@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
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
