Author Topic: Pause Daily Betting when Profit Target Met  (Read 148 times)

  • All members
  • Posts: 13
  • Gender: Male
Pause Daily Betting when Profit Target Met
« on: 26 Dec 2022, 02:43 »

What's the best way to pause betting when the target profit is met, then restart it the next day?

I want to set a target for per cent of my_funds, say 5%. When the daily profit is met, stop betting (or go to test mode). Then the next day start again with a new target of 5% of the start-of-day my_funds.

Thank you for any guidance you have,

  • Tim Vetrov
  • Administrator
  • Posts: 4766
  • Gender: Male
Re: Pause Daily Betting when Profit Target Met
« Reply #1 on: 26 Dec 2022, 10:49 »
You can create a trigger that sets target_profit for 5% of funds running once per event/market. This trigger (as a second action) should set a global trigger variable last_reset to now_time and check condition now_time is greater than last_rest + mf_hour*24
Of course your betting trigger checks target_profit value.
Then it starts betting every 24 hours. Note, you probably need to not reset if the target_profit has not reached in 24 hours.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT


Please note, BetFair is seems to be currently OFFLINE