Author Topic: trying to stop betting when wallet is at x amount  (Read 4074 times)

Tags:
  • All members
  • Posts: 16
Hi

I have an issue with my trigger that I have done. I have a trigger with one block for laying away teams in soccer between 2-3 and another block for laying 3rd favourite horses in a place market. I have tried to set a global variable that will only place a bet when my wallet is below a set value (aus wallet for horse and uk wallet for soccer). When I run these triggers it doesn't place a bet at all it seems to get stuck on how I have written the wallet balance into it. Unfortunately I can't view the trigger or program log every time I attempt to I get a red message saying undefined I have re installed marketfeeder but still happening. I have attached my trigger.

Thanks

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: trying to stop betting when wallet is at x amount
« Reply #1 on: 25 Sep 2013, 05:34 »
hi
you first need to set the variable, then use it in your betting trigger.
i have added 2 new constants to your trigger
set the maximum uk balance
set the maximum aus balance

mcbee

download the trigger below
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.

  • Moderator
  • Posts: 3597
*
Re: trying to stop betting when wallet is at x amount
« Reply #2 on: 25 Sep 2013, 06:06 »
Hi
I would suggest using 2 profiles for this.
1 for soccer using UK wallet
The other for AUS horse racing place markets using AUS wallet
In each profile set the appropriate settings for the markets you are trading. This will save having to switch wallets etc.

In the UK wallet betting triggers, the condition to bet or not according to balance is:
and selections trigger expression IF(test_mode=1,test_balance,uk_balance) is less than 21.22 (or whatever figure you wish to use)

In the AUS wallet betting triggers, the condition to bet or not according to balance is:
and selections trigger expression IF(test_mode=1,test_balance,aus_balance) is less than 25.28 (or whatever figure you wish to use)

You can optionally use a setting instead of conditions to stop betting if the Total Funds is greater than x
Settings > Betting Options > Banking > Stop automated betting when the total bank has reached x
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: 16
Re: trying to stop betting when wallet is at x amount
« Reply #3 on: 25 Sep 2013, 06:15 »
Thanks for your help

Sorry if this is a stupid question but how do you set up 2 profiles and can both run simultaneously?

  • Moderator
  • Posts: 3597
*
Re: trying to stop betting when wallet is at x amount
« Reply #4 on: 25 Sep 2013, 06:24 »
Hi
Just start the program again and choose profile to run.
See the manual section "Login Window"

Yes you can run 2 or more profiles concurrently, but you need to adjust the data requests in Connection Monitor so both running together do not exceed the betfair limit. Your triggers both are not inplay, so should not be any problem. If you set each profile total requests to 9 it will be fine.
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: 16
Re: trying to stop betting when wallet is at x amount
« Reply #5 on: 25 Sep 2013, 09:24 »
Thanks

Would love to be able to bet in play on soccer matches but our stupid laws in Australia don't allow it

  • All members
  • Posts: 16
Re: trying to stop betting when wallet is at x amount
« Reply #6 on: 25 Sep 2013, 16:32 »
HI

Sorry to be a pain the triggers are working well I would like to adjust them slightly and have no idea how. I would like to only place a bet if the last bet has been settled.

Thanks

  • Moderator
  • Posts: 3597
*
Re: trying to stop betting when wallet is at x amount
« Reply #7 on: 25 Sep 2013, 17:19 »
I would like to only place a bet if the last bet has been settled.
Hi
Add a Condition Block to the existing conditions:

... existing conditions
AND
     OR
       Trigger <name of your betting trigger> number of runs is equal to 0 overall
     OR
       Previous triggered events status is settled
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.

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: trying to stop betting when wallet is at x amount
« Reply #8 on: 25 Sep 2013, 19:06 »
hi
i have altered the triggers to include the only true way of a last bet been settled, using the balance and funds available.

mcbee


download below
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: 16
Re: trying to stop betting when wallet is at x amount
« Reply #9 on: 25 Sep 2013, 19:36 »
Thanks

 

Please note, BetFair is seems to be currently OFFLINE