Forum

FAQs and other general questions are answered here
#27797
I have a strategy that I want to hedge when the home team scores (1-0).

See the screenshot, and an example of when it hasn't worked is the Brazil v Guinea game tonight. Brazil took the lead in the 27th minute, and the bot did not hedge.

What is the best way to achieve this?

Thanks
Attachments
Capture1.PNG
Capture1.PNG (13.01 KiB) Viewed 4059 times
#27800
Attached as requested
Attachments
Capture6.PNG
Capture6.PNG (14.54 KiB) Viewed 4053 times
Capture5.PNG
Capture5.PNG (17.93 KiB) Viewed 4053 times
Capture4.PNG
Capture4.PNG (33.12 KiB) Viewed 4053 times
Capture3.PNG
Capture3.PNG (24.68 KiB) Viewed 4053 times
Capture2.PNG
Capture2.PNG (46.83 KiB) Viewed 4053 times
Capture1.PNG
Capture1.PNG (178.35 KiB) Viewed 4053 times
#27802
I just noticed that second goal was scored very fast after first goal e.g. first goal at 27' and second one at 30'. It is possible that market was suspended, offer was not good and that results service was not fast enough, so that second goal was scored and market got suspended again preventing strategy from hedging your position.
#27807
MrDrifter wrote: Sun Jun 18, 2023 6:01 pm Set another condition up for 2-0?
Still leaves a big issue if the score goes to 1-1 three minutes later.
Allow hedge to execute at scores 1:0, 2:0, 3:0 etc. You do not need another condition, just select more scores at score rule that hedge already has.
#27811
It is not always possible to hedge, this appears to be one of those situations, as live score data can be delayed and market can be suspended, it can also take time for market offer to be formed and to satisfy back/lay ratio etc. Then with your refresh rate of 1s and high number of markets that you are loading, it means that within 3 minutes strategy might get prices for that market only few times. So try to load less markets, if needed change refresh rate to 500ms instead of 1,000ms, that should increase chances of hedge to happen as strategy will get market prices more often.