Author Topic: Create a constant  (Read 5515 times)

Tags:
  • All members
  • Posts: 97
Create a constant
« on: 09 Sep 2012, 03:29 »
I am wondering if it's possible to create a constant for trigger to stop betting after reaching certain amount of profit or loss?

I don't want to use the one under the settings/bank.

Anyone got an idea.

Thanks all.

  • All members
  • Posts: 3597
Re: Create a constant
« Reply #1 on: 09 Sep 2012, 06:49 »
Hi
It's total_won in win/lose variables with the corresponding statement setting
retrieve records that are not older than x days
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.

  • Nerd
  • Élite
  • Posts: 462
  • Gender: Male
  • I think I could be on to something here!
*
Re: Create a constant
« Reply #2 on: 10 Sep 2012, 12:29 »
V6 had a section in the setting, "betting options" towards the bottom to stop after XX has been won/lost
Fortune favors the brave!

  • All members
  • Posts: 490
  • Gender: Male
Global stop betting
« Reply #3 on: 15 Nov 2014, 21:54 »
Will this work?

I want to stop my entire betting if I am winning 5% of my bank for the day.
 
First trigger in block.
Action: Delete market
Conditions: Global | Total Won/Lost Amount > total_funds * 0.05

Account statement: Retrieve data not older than 0 days

I have set this trigger as first in the block assuming the Global setting will delete every mar market in my market tree if I am up >5% of my bank.
Improvise Adapt Overcome

  • All members
  • Posts: 47
Re: Create a constant
« Reply #4 on: 18 Nov 2014, 08:01 »
Hi. I just want to ask please if the trigger works?
Bots are lifesavers.

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Create a constant
« Reply #5 on: 20 Nov 2014, 08:09 »
hi londolozi
that will not work, because your total_funds are always increasing/decreasing with wins/losses, so total_funds*.05 woul never be reached.
you need to create a new trigger
set user variable 
name   sb
valaue  IF(test_mode=1,test_balance,balance)
no conditions
one time only
then is your delete trigger
and selections trigger expression IF(test_mode=1,test_balance,balance) is greater than sb*(1.05)
.05=5%

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.

 

Please note, BetFair is seems to be currently OFFLINE