Pages:
Actions
  • #1 by mux on 01 Aug 2017
  • 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
  • #2 by MarkV on 01 Aug 2017
  • 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
  • #3 by mux on 01 Aug 2017
  • 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.
  • #4 by MarkV on 01 Aug 2017
  • 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
  • #5 by mux on 03 Aug 2017
  • 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.
  • #6 by MarkV on 03 Aug 2017
  • 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
Pages:
Actions