Pages:
Actions
  • #1 by cybernet69 on 06 Nov 2018
  • Hi,

    Which action to we use if we have back and lay bets on the same selection and want to spread any profit/loss across all selections.

    I have tried using Distribute loss and Green-up but they don't work.

    Thanks,
  • #2 by MarkV on 06 Nov 2018
  • Hi
    spread a freebet P/L equally, try these two triggers in test mode. You will need to add your own conditions to control when you want them to fire.

    selection has a positive P/L

    LAY
    price: lay_price
    amount: profit_loss/lay_price
    condition: selections profit/loss is greater than 0

    selection has a negative P/L

    BACK
    price: back_price
    amount: -profit_loss/back_price
    condition: selections profit/loss is less than 0


      
  • #3 by cybernet69 on 06 Nov 2018
  • Hi spread a freebet P/L equally, try these two triggers in test mode. You will need to add your own conditions to control when you want them to fire. selection has a positive P/L LAY price: lay_price amount: profit_loss/lay_price condition: selections profit/loss is greater than 0 selection has a negative P/L BACK price: back_price amount: -profit_loss/back_price condition: selections profit/loss is less than 0

    Thanks for this.

    I have tried this before with very good effect if only 1 selection has back/lay trades.

    Where it seems to go wrong is if I have more than 1 selection with positive back/lay or negative back/lay outcomes in the same market etc.

    I could be wrong but I remember reading somewhere that if you have more than 1 qualifying selection then you need to first find a selections profit with no trades and then deduct that from the selections profit/loss before trying to equalise profit/loss across all selections.

    Problem is I cant get my head around on exactly how to build the triggers for it etc.

    Help! :(
  • #4 by cybernet69 on 06 Nov 2018
  • I think the solution lies here but I cant get my head around how to build the triggers:

    First find a selection with no matched bets. This selection has a profit_loss named profit_loss_no_bets

    For every selection with positive (profit_loss-profit_loss_no_bets):
    enter a lay bet at lay_price with stake: (profit_loss-profit_loss_no_bets)/lay_price

    For every selection with negative (profit_loss-profit_loss_no_bets):
    enter a back bet at back_price with stake:
    -(profit_loss-profit_loss_no_bets)/back_price
  • #5 by MarkV on 06 Nov 2018
  • you're correct, it's in the formulas topic here
    I'll have a look tomorrow and see if I can convert to a trigger

    just seen your last post, lol. will post here tomorrow if I have a trigger   
  • #6 by cybernet69 on 06 Nov 2018
  • you're correct, it's in the formulas topic here I'll have a look tomorrow and see if I can convert to a trigger just seen your last post, lol. will post here tomorrow if I have a trigger

    Thanks, your a star. :)
  • #7 by liltbrockie on 07 Nov 2018
  • Interested in this too...
    The market_tradeout figure just goes out the window completely when you have multiple lay and back bets on the same selection

    I would like to know the fomula for how to work out the TRUE tradeout value.
  • #8 by MarkV on 07 Nov 2018
  • ok, this trigger is verbatim as per Martin Steiner's formulae. Brief testing looks like it does the job. You will need to add your own conditions or modify as to when you want the trigger block to run. Have a play in test mode.
  • #9 by cybernet69 on 07 Nov 2018
  • ok, this trigger is verbatim as per Martin Steiner's formulae. Brief testing looks like it does the job. You will need to add your own conditions or modify as to when you want the trigger block to run. Have a play in test mode.

    Will do. Many thanks. :)
  • #10 by cybernet69 on 19 Dec 2018
  • ok, this trigger is verbatim as per Martin Steiner's formulae. Brief testing looks like it does the job. You will need to add your own conditions or modify as to when you want the trigger block to run. Have a play in test mode.

    Hi,

    How would I go about repeating the triggers, if say one or more remained unmatched. You could use the match trigger but that might mean the wrong amount getting matched etc ?

    Thanks,
Pages:
Actions