Author Topic: Stop bot when preset profit is made  (Read 2615 times)

Tags:
  • All members
  • Posts: 68
Stop bot when preset profit is made
« on: 13 Jan 2014, 13:07 »
I know that this is going to be simple but I can't figure it out. How can I set the bot to keep making bets until a certain level of profit or loss is made and then to stop betting?

I would like to add this feature to a trigger that I have already made.

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Stop bot when preset profit is made
« Reply #1 on: 13 Jan 2014, 13:39 »
hi
use the total_won variable.
and trigger expression total_won is equal or less than (the profit you require)
and trigger expression total_won is equal or greater than -(the loss limit)
please note
-(the loss limit)
-10   for a loss of 10 on the days betting


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 68
Re: Stop bot when preset profit is made
« Reply #2 on: 13 Jan 2014, 15:53 »
Thanks mcbee.
I was wondering about "total_won". I don't understand what is meant by "total_won". Won since when? Is this what was won today? Or won since the trigger file started running? When does this figure reset? What if the trigger file is left running for a few days?

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Stop bot when preset profit is made
« Reply #3 on: 13 Jan 2014, 16:23 »
hi
total_won
is the amount that has been won/lost from 12:00 midnight to 11:59:59 midnight today.
it resets at 12:00 midnight.
you can see the profit from the previous day in the statement.
if you want to stop the bot at a set profit over x number of days, then you would have to use a variable to record the profit/loss amounts.

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 68
Re: Stop bot when preset profit is made
« Reply #4 on: 13 Jan 2014, 16:29 »
Aha... Simple, really. Thanks mcbee.  :)

 

Please note, BetFair is seems to be currently OFFLINE