Author Topic: Problem with totalling bets  (Read 1759 times)

Tags:
  • All members
  • Posts: 110
Problem with totalling bets
« on: 17 May 2017, 13:39 »
I am using the expression bm_lpricedat_46+bm_lpricedat_48+bm_lpricedat_50+bm_lpricedat_55+bm_lpricedat_60+bm_lpricedat_65+bm_lpricedat_70
to detect any bets on a selection at these prices.

As you can see from this log entry they are being put together as a string rather than being added, thus giving an incorrect result.

14:24:20 Checking condition and Selection's Trigger Expression bu_lpricedat_46+bu_lpricedat_48+bu_lpricedat_50+bu_lpricedat_55+bu_lpricedat_60+bu_lpricedat_65+bu_lpricedat_70 is equal to 0.

14:24:20 Selection: Kentuckyconnection, initial expr.: bu_lpricedat_46+bu_lpricedat_48+bu_lpricedat_50+bu_lpricedat_55+bu_lpricedat_60+bu_lpricedat_65+bu_lpricedat_70, intermediate: 0.000.000.000.000.000.002.05, final: 0.000.000.000.000.000.002.05.

14:24:20 Condition is: FALSE


Please can you point out where I am going wrong.

Thanks

  • All members
  • Posts: 110
Re: Problem with totalling bets
« Reply #1 on: 17 May 2017, 13:51 »
Sorry - I edited out the other selections where the result should have been zero but read
final: 0.000.000.000.000.000.00.00

thus the result should have been TRUE for that selection.

Thanks

  • Moderator
  • Posts: 3597
*
Re: Problem with totalling bets
« Reply #2 on: 17 May 2017, 16:22 »
Hi
try enclosing each in brackets: (bm_bpricedat_1.97)+(bm_bpricedat_2.02)+(etc...)
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.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Problem with totalling bets
« Reply #3 on: 19 May 2017, 08:56 »
MarkV, thank you for suggesting this workaround (this should work).

There seems to be some bug in the parsing of formulae containing the pricedat variable. We will fix it in the next program release.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

 

Please note, BetFair is seems to be currently OFFLINE