Author Topic: formula coding for fav p/l  (Read 3905 times)

Tags:
  • All members
  • Posts: 829
formula coding for fav p/l
« on: 16 Apr 2014, 10:09 »
Hi,

I would like to know the code used to refer to the profit/loss amount showing for the fav.
example:
-3.60 Nadal  1.70
  5.10 Murray  2.80
In the above example I would like to refer to -.360 being the loss of the fav. 
Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3597
*
Re: formula coding for fav p/l
« Reply #1 on: 16 Apr 2014, 10:20 »
Hi
The condition is:
favourites profit/loss is less than x

or in a trigger expression:
selections trigger expression r_1_profit_loss is less than x
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.

  • All members
  • Posts: 829
Re: formula coding for fav p/l
« Reply #2 on: 25 Apr 2014, 17:50 »
Hi Mark,
Apologies for late reply. I just returned from holidays a few hours ago.
I'll check this out and reply
Many thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 829
Re: formula coding for fav p/l
« Reply #3 on: 26 Apr 2014, 07:24 »
Mark,

How can I use it as a 'bet amount' ?
eg:  2nd Fav shows +5.00
place that amount on Fav.
Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3597
*
Re: formula coding for fav p/l
« Reply #4 on: 26 Apr 2014, 10:18 »
Mark,

How can I use it as a 'bet amount' ?
eg:  2nd Fav shows +5.00
place that amount on Fav.
Thanks
R
Hi
In the amount box put: r_2_profit_loss
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.

  • All members
  • Posts: 829
Re: formula coding for fav p/l
« Reply #5 on: 26 Apr 2014, 16:56 »
Hi Mark,

Does this formula look okay?
My trigger places a bet whenever the 2nd fav shows a profit
and places total profit on Fav.

IF(r_2_profit_loss>0,r_2_profit_loss,0)
Thanks if you can correct
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3597
*
Re: formula coding for fav p/l
« Reply #6 on: 26 Apr 2014, 17:30 »
Hi
Yes the formula looks OK. Another way to do it is:
amount: r_2_profit_loss
condition: and second favourites profit and loss is greater than 0
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.

  • All members
  • Posts: 829
Re: formula coding for fav p/l
« Reply #7 on: 26 Apr 2014, 19:33 »
Thanks Mark,
Works well
R
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 829
Re: formula coding for fav p/l
« Reply #8 on: 28 Apr 2014, 16:09 »
Hi Mark,
Just a quick question.
If I place a minus sign in front of the formula r_1_profit_loss does it turn it into a positive
EG: if the fav showed a loss of say -3.00 and I wanted to bet that amount (3.00)
would I use   -r1_profit_loss   as the bet amount ?
Thanks in advance
R
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3597
*
Re: formula coding for fav p/l
« Reply #9 on: 28 Apr 2014, 17:44 »
Hi
If you pop the variable (or any variable or expression) into the View User Variables window, you can see the live value. Having just tried it, yes what you suggest works fine. See screenshot
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.

  • All members
  • Posts: 829
Re: formula coding for fav p/l
« Reply #10 on: 28 Apr 2014, 18:51 »
Thanks Mark, quite a neat function !
R
My grandma taught me not to run downstairs and never back odds on.

 

Please note, BetFair is seems to be currently OFFLINE