Author Topic: What if  (Read 3418 times)

Tags:
  • All members
  • Posts: 136
What if
« on: 08 May 2014, 11:13 »
Hiya all
On the trading ladder you have the "what if p/l"
Is there a formula/variable within MF that will return this value?
Thanks in advance

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: What if
« Reply #1 on: 08 May 2014, 11:47 »
Hi,

A special variable will be added in the next program update.

But right now you can calculate this value. If you placed more back bets than lay bets on a selection, e.g. if you backed first, then it'll be:

(back_payout-lay_payout)/lay_price - back_matched

If you placed more lay bets than back bets, then it is:

lay_matched - (lay_payout-back_payout)/back_price
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 124
Re: What if
« Reply #2 on: 20 May 2014, 10:07 »
Hi , should the lay_price-back_matched be in brackets ?
I tried this out as it was , without brackets on the denominator and couldn't get it to work...
Thanks

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: What if
« Reply #3 on: 21 May 2014, 10:59 »
hi
yes you need the brackets to define the amounts


mcbee
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.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: What if
« Reply #4 on: 22 May 2014, 11:47 »
Hi mcbee, I'm afraid I don't agree.

The formula I suggested does not need additional brackets.

If you made a back bet of £10 @ 2.2, and the current lay price is 2.1, then the expected profit from the greening up bet will be:

(back_payout-lay_payout)/lay_price - back_matched

That is

(10*2.2 - 0)/2.1 - 10 = 0.48

Whereas if you add brackets it will give a totally different (incorrect) result:

(back_payout-lay_payout)/(lay_price - back_matched)

(10*2.2 - 0)/(2.1 - 10) = -2.78


binsey, you need to give an example of what exactly didn't work.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: What if
« Reply #5 on: 22 May 2014, 11:58 »
hi
yes you are correct oxa.
because the lay_price, is one calculation followed by -back_matched another calculation.
having brackets makes the calculation 1 whole value.


mcbee
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