Author Topic: How to count all markets with unmatched bets ??  (Read 1933 times)

Tags:
  • Élite
  • Posts: 215
  • Karma: +4/-0
*
How to count all markets with unmatched bets ??
« on: Sun, 13 September, 2009, 18:18 »
Hi,

for money management optimisation, I would like to have a trigger counting all monitored markets with matched bets and all monitored markets without any  unmatched bet.

The idea is, to check  funds before enter the first bet in a new market, to avoid out of funds error.

I do already check funds before any back and lay action, but unfortunately if availiable fund increases slightly, all actions blocked by the fund check are done at once and cause an out of funds error.

Trigger expression is:  uk_funds greater than 50

(50 is maximum liability of my bets)


Then I change the trigger expression to: uk_funds greater than 50*num_markets

too much money keeps unused because I monitor many markets without any bets done because they never meet a certain condition.

Any hint?
tia Martin

  • Administrator
  • Posts: 8952
  • Karma: +337/-2
  • Gender: Female
*
Re: How to count all markets with unmatched bets ??
« Reply #1 on: Mon, 14 September, 2009, 15:40 »
When counting the markets with matched bets, do you also want to include those that are not being monitored inside MF Pro?
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • Élite
  • Posts: 215
  • Karma: +4/-0
*
Re: How to count all markets with unmatched bets ??
« Reply #2 on: Mon, 14 September, 2009, 18:20 »
Oxa, thanks for your response.

do you also want to include those that are not being monitored inside MF Pro?

No, because I only want to limit MFP  --  not me when betting via website.  :)

I tried some triggers, with some interesting results. I think the key to count active monitored markets with a certain property are user variables "common for all markets" . 

It is easy to write a block like this:

Set user variable common for all markets
Name: mytotalmarkets
Value: 0
Condition: mytotalmarkets not set

Set user variable common for all markets
Name: myspecialmarkets
Value: 0
Condition: myspecialmarkets not set

Set user variable common for all markets
Name: mytotalmarkets
Value: mytotalmarkets+1
Condition: --

Set user variable common for all markets
Name: myspecialmarkets
Value: myspecialmarkets+1
Condition: Favourites bu_laynum+bu_backnum>0

As a result, the value of expression market_num * myspecialmarkets / mytotalmarkets drifts the the desired value after some time, but

- value is is wrong after startup of trigger,
- value changes very slowly to the desired value if markets are addded or deleted.



Better results come from this block:

Set user variable common for all markets
Name: myspecialmarkets
Value: market_num
Condition: myspecialmarkets not set

Set user variable common for all markets
Name: myspecialmarkets
Value: (myspecialmarkets+IF( Favourites bu_laynum+bu_backnum>0,1,0))*market_num/(market_num+1)
Condition: ---

Again

- value is is wrong after startup of trigger,
- BUT: in the long run: drifts around the right value, even if markets are addded or deleted.