Pages:
Actions
  • #1 by mikejcshaw on 17 May 2017
  • 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
  • #2 by mikejcshaw on 17 May 2017
  • 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
  • #3 by MarkV on 17 May 2017
  • Hi
    try enclosing each in brackets: (bm_bpricedat_1.97)+(bm_bpricedat_2.02)+(etc...)
  • #4 by Oxa (WellDoneSoft) on 19 May 2017
  • 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.
Pages:
Actions