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
You do not have the required permissions to view the files attached to this post.
#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.