Pages:
Actions
  • #1 by markoone11 on 10 Jun 2018
  • I am trying to write a trigger for greening up.

    I want to be able to mimic the betfair cashout option, where clicking gives a reasonably equal amount to all outcomes, but I am struggling with the maths.

    its a football strategy, using O/U 1.5 goals.

    At some point in the game, I place an initial back bet for £10, at whatever price is on offer, then I place another £10 back bet once the first is matched, at bm_1_backp + 0.5, and repeat this, adding 0.5 to each last back price, until I have placed 4 back bets, and this gives £40 outlay, consisting of £10 at 4 different prices.

    When a goal is scored, the price goes down, and it is at this time that I want to place my lay bet to green up, and I cannot figure the maths out to do this in the same way that betfair does.

    Can anybody help?

    Thanks

    Mark.
  • #2 by LarpHager on 10 Jun 2018
  • Theres loads of examples in the triggered betting forum or learning forum.

    https://community.welldonesoft.com/marketfeeder-triggers-for-learning/greening-up-on-multiple-positions-with-a-target-profit/

    you have to build it, its not inbuilt except on the engineer mode, tradeout all button, but that takes the lay price, it doesnt put in a lay price like you want to.
    • LarpHager
  • #3 by markoone11 on 10 Jun 2018
  • Hi Larp,

    Thanks for the response.

    Yes, I have seen and downloaded the trigger, but they all look to use the green method with ticks or percentage, and that isn't what I want.

    I want to do a lay, at current price, with the correct amount of stake, such that a green is equal on all outcomes. I am not comfortable using black box 'green up' - because I am not in control of it that way, and even while there are many features of MFP that can do many complex things, I still prefer to write my own.

    For the standard Back then Lay to green, the maths is simple enough, where stake = backStake * backOdds / layOdds

    But mine is moire complicated.

    I will figure it out eventually if nobody has an immediate answer

    Thanks

    Mark.
  • #4 by MarkV on 11 Jun 2018
  • Hi
    the selection variable tradeout_net is effectively the cash-out figure on a given selection. You mention you are trading on one selection only, so this should be what you need.

    If you are trading multiple selections in the same market, you need to update a user variable for the cash-out on all selections in the market. e.g:

    trigger 1
    set user variable, name: cash_out, value: 0, indiv. for each market, first matching selection, execute: 0.3  
    trigger 2
    set user variable, name: cash_out, value: cash_out+tradeout_net, indiv. for each market, all matching selections, execute: 0.3

    so user variable cash_out will hold an up-to-date value of the market "cash out" and you can apply your own conditions using this user variable:

    e.g.
    trigger 3
    green up, ticks: -1, all matching selections, condition: selections trigger expression cash_out is greater than 10

    also might be worth having a look at how unticking the green up option "against last matched bet" might help you, as this will green up all the bets on a selection.    
  • #5 by Oxa (WellDoneSoft) on 15 Jun 2018
  • Hello!

    You can find all the green-up formulae here:

    10 Facts About Green-up in MarketFeeder Pro
Pages:
Actions