Author Topic: Use percentage of profit as stake  (Read 1167 times)

Tags:
  • All members
  • Posts: 3
  • Gender: Male
Use percentage of profit as stake
« on: 01 Aug 2017, 17:29 »
Hi, i just started learning to use triggers and i have one doubt.

Id like to use a percentage of my profit as the stake of a lay bet. How can i achieve this?

Basically what i need is:

Green up a bet  with lets say $10 profit.

Use i.e 10% of this profit ($1) to lay a new bet.

Hope you can help me

Thanks

  • Moderator
  • Posts: 3597
*
Re: Use percentage of profit as stake
« Reply #1 on: 01 Aug 2017, 17:56 »
Hi
if it's expected profit
you would probably need to record that in a user variable, say expected_profit and then use:
expected_profit*0.10
this example trigger demonstrates similar by remembering the expected profit from another market and using a percentage of that

if it's profit from the last settled market you could use last_pl variable:
last_pl*0.10

please test using test mode first

edit: also have a look at tradeout_net variable:
tradeout_net*0.10
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: 3
  • Gender: Male
Re: Use percentage of profit as stake
« Reply #2 on: 01 Aug 2017, 18:15 »
thanks for the quick help.

Well actually i dont want to lock or expect any profit, i just want to use 10% of my already made profit(after i green up a bet) as the lay stake on a new bet 
I want to use it to make something like this:

I back a team (soccer) and if it score first i green up and use 10% of this greened up profit to make a lay bet againts the same team, just in case the other team scores too ill green up again.

  • Moderator
  • Posts: 3597
*
Re: Use percentage of profit as stake
« Reply #3 on: 01 Aug 2017, 19:42 »
Hi
after green up use selections profit_loss or market_min_pl

home team
s_1_profit_loss*0.10
away team
s_2_profit_loss*0.10
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: 3
  • Gender: Male
Re: Use percentage of profit as stake
« Reply #4 on: 02 Aug 2017, 23:20 »
Thanks, it worked!

On another question, how can i lay the away team when it scores?

When i try to achieve this the bot will lay the draw and the away team. 

Using selections: Favorite dont work because a lot of times even if the away underdog scores first the favorite team will still favorite for a while.

  • Moderator
  • Posts: 3597
*
Re: Use percentage of profit as stake
« Reply #5 on: 03 Aug 2017, 05:19 »
Hi
first matching selection
once per market
conditions:
selections index is equal to 2
and selections trigger expression market_score2 is greater than market_score1
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