Author Topic: Tracking market volume  (Read 1706 times)

Tags:
  • All members
  • Posts: 490
  • Gender: Male
Tracking market volume
« on: 26 Dec 2015, 22:45 »
I had some problems yesterday and was just investigating.
Is my trigger correct? Is there an easier way

I want to monitor market volume changes. I want to see $500 matche between refreshes or 5secs.
Both user varibales are set for 'individual markets only'

So I set user variable mv1 = market volume
Located before mv1 condition is mv5, it equals mv1 + 500

Therefore, after the first refresh if mv1 formerly equalled $10,000 - Now, mv5 is set at $10,500
Next refresh:
mv1 still equals 10,000 since the mv5 condition is first in the order. mv5 = $10,500
mv1 condition is refreshed and now equals $11,001

next refresh mv5 = $11,501

In my wagering criteria I have a condition mv1 > mv5 (Threfore $500 has been matched since the last refresh, thus the market is active).
However,
13:38:52Checking condition and Selection's Trigger Expression mv1 is greater than mv5+500.13:38:52Selection: 3. Nikitas, initial expr.: mv1, intermediate: 137260, final: 137260.13:38:52Selection: 3. Nikitas, initial expr.: mv5+500, intermediate: 190924+500, final: 191424.

So for the Guru's,
This log seems to be using another market's volume. As I find it hard to accept the market jumped 50% in one refresh from 137260 to 190924. Is the API incorrect? Is my trigger incorrect.

Trigger attached.   

Improvise Adapt Overcome

  • All members
  • Posts: 490
  • Gender: Male
Re: Tracking market volume
« Reply #1 on: 27 Dec 2015, 02:54 »
Trying to find a resolve to this.
Using the manual.
refresh_start : date/time : The time in minutes that has passed since you last started monitoring (refreshing) the event. Each time you stop a market this time is reset to zero and is then updated when you start the market.So I would assume if I started monitoring a market at 3 minutes before the off and it is now 2 minutes before the off.

refresh_start would equal 1 or 1 minute

However this is what the log says.
Quote
12:40:01Checking condition and Selection's Trigger Expression mv5 is greater than mv1+(refresh_start/0.01667).12:40:01Selection: 8. Chiatorio, initial expr.: mv5, intermediate: 40228, final: 40228.12:40:01Selection: 8. Chiatorio, initial expr.: mv1+(refresh_start/0.01667), intermediate: 3930+(42365.5263925/0.01667), final: 2545353.29889022.

I don't believe the manuals accurate
refresh_start appears to be a date/time reference. To get a time since refresh started I believe I need to use refersh_start - now_time




Improvise Adapt Overcome

  • All members
  • Posts: 490
  • Gender: Male
Re: Tracking market volume
« Reply #2 on: 27 Dec 2015, 03:31 »
I think this will work. My goal is to ensure the market is active. I appreicate there are new variables in the silks such as moving in that achieve this.

Set a constant 'change in volume/minute'    I'll call it vcpm = 60
Therefore I want the matched volume to have changed at least $60  in the last minute
mv1 = matched volume at start of event monitoring
mv5 is the latest matched volume

Condition is mv5 > mv1 + (now_time-refresh_start)/0.00694*vcpm


Please change the manual to read refrest_start : date:time :
The date/time in minutes when you last started monitoring (refreshing) the event. Each time you stop a market this time is reset and is then updated when you start the market.
I don't believe the below is accurrate :The time in minutes that has passed since you last started monitoring (refreshing) the event. Each time you stop a market this time is reset to zero and is then updated when you start the market.
Improvise Adapt Overcome

 

Please note, BetFair is seems to be currently OFFLINE