Have you ever wondered why bets placed in test mode are matched more slowly than in real mode?
In a nutshell
Test Mode is comparing Back and Lay prices against the unmatched bet whereas it could be checking Last Traded Price and volume and Market Volume.The latter would give more accurate results.
Check out the following scenario
Lets say you back a fav for $100 @ 2
in the following market.
1.9 1.96 1.98 2.02 2.04 2.1 (back_price3 - lay_price3)
volume =.80 last_traded = 1.98 market_volume = $100
1 refresh after bet placed the market reads
1.9 1.96 1.98 2.02 2.04 2.1 (back_price3 - lay_price3)
volume =.80 last_traded = 2 market_volume = $200
in Test Mode the formula is
back_price < bu_price
1.98 < 2.00 = bet unmatched
in Real MODE the formula is
last_traded >= bu_price
2 >= 2 =bet matched
How much is matched?
the formula is
*assuming a $1 back bet generates $1 of market volume
(market_volume*volume -market(previous)*volume(previous)
($200* .
- ($100*.
$160 - $80 = $80
so matched amount (bm_backa) = 80, and unmatched amount (bu_backa) =20
several refreshes later the market price leaps above 2 ...
the market reads
2 2.04 2.1 2.12 2.2 2.3 (back_price3 - lay_price3)
volume =.80 last_traded = 2.12 market_volume = $400
in Test Mode the formula is
back_price > bu_price
2.1 > 2.00 = bet matched @ back_price
AT 2.1 back_price !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
this is a mega serious bug with Test mode.
As the bet was placed before the market reached 2.1 (back_price)
the matched price should be 2 (bu_backp)
Applying a formula involving (now_time>bu_backtime = bu_price) will correct this error but for now be aware that the test program generates false profits.
In Real Mode
MAXV(back_price,last_traded) > bu_price
MAXV(2.1,2.12) > 2
2.12 > 2
AND
market_volume*volume - market_volume(prev)*volume(prev) >bu_backa
400*.8 - 200*.8 > 20
320 - 160 > 20
= bet matched.
So that's why.
Happy punting.
Apples999.
(Note:The same with lay bets also)
In real mode the formula is
last_traded = bu_backprice