Pages:
Actions
  • #1 by markoone11 on 15 Sep 2015
  • Hi,
    I have set a trigger up, and its based on using a liability % stake, so, if I use say a 5% liability of a £250 bank, this is £12.50 risk or liability, and the stake is £12.50 / (lay_price - 1) - or
    (bank_size * perc_bet) / (lay_price - 1)

    Now, there is no way to have a virtual bank size, so I have had to use a variable in my constants, which today I set at £250. By the end of the day, I had made £16.79, so my new size is £266.79

    I would like some help on having MFP calculate the stake based on the current HIGHEST bank, and if there is a loss, I want it still to stake calculated on the highest bank. I also want MFP to remember across sessions, the highest bank achieved, and somehow update that value somewhere?

    I don't really want to ask for a trigger as I won't learn by doing that, I would rather get some help/advice

    Can anybody help?

    Thanks

    Mark.
  • #2 by MarkV on 15 Sep 2015
  • Hi
    Please search forum for "maxbank", I'm sure you will find something you can adapt for your requirement.  ;)
  • #3 by markoone11 on 15 Sep 2015
  • Hi
    Please search forum for "maxbank", I'm sure you will find something you can adapt for your requirement.  ;)

    I did a search for that, and it came back with your post here....
  • #4 by mcbee on 15 Sep 2015
  • hi
    have a new trigger to record the maximum bank using a variable.


    mcbee
  • #5 by MarkV on 16 Sep 2015
  • Hi
    Need to run the search from forum home page to see all results.
    http://community.welldonesoft.com/archive/something-so-simple-has-a-snag-for-loss-recoupment-on-next-bet/
    http://community.welldonesoft.com/general-discussion-12/help-with-recoupment/
    as mcbee says he probably has an updated version of this.
  • #6 by LarpHager on 16 Sep 2015
  • Hi,

    I use a current_bet variable. The variable increases when the bank increases, but does not decrease when I have a loss, unless I want it to under certain circumstances.

    Firstly, the current_bet is initialised as a fraction of the actual balance eg 1/80th, either once time only or once per session. When a race settles and I have a win, my variable trigger acts on that settled market (and before the betting trigger in the next market) and increases the current_bet figure according to instructions.

    I imagine tying the curent_bet to an overall highest balance achieved balance would not be insurmountable by any means.

    Larp
    • LarpHager
Pages:
Actions