Author Topic: Green Up one ticke over actual lay price (lay_price2)?  (Read 1292 times)

Tags:
  • All members
  • Posts: 5
  • Gender: Male
Hi,
I'm experimenting "green up" action and sometimes it fails green up because lay betting where not machted.
So I've 2 question:
1) Is it possible to set one or two tick higher the laying bet that action "green up" produce?
2) There's some way to repeat this action after a while (eg 30 seconds) if bet not matched?

Many thanks for your help

  • Moderator
  • Posts: 3597
*
Re: Green Up one ticke over actual lay price (lay_price2)?
« Reply #1 on: 08 Oct 2021, 16:28 »
Hi
not sure if this is for X-Feeder or MarketFeeder but this should work in both.

the formula for lay bet amount to green up a back bet at current lay price is: (bm_backp*bm_backa)/lay_price

to lay to green up a back bet at one tick higher than current lay price:

LAY
price: r_ticks(lay_price, 1)
amount: (bm_backp*bm_backa)/r_ticks(lay_price, 1)

you will need to put in conditions to check the trade is in profit e.g. back matched price must be greater than green up price:
selections trigger expression bm_backp is greater than r_ticks(lay_price, 1)

also bear in mind Betfair will match at best available price, so you will often be matched at lay price which makes the greening amount calculation slightly different.
   
try this in test mode and see what you think 
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