Author Topic: bm_lpricedat_{price} not functioning??  (Read 1170 times)

Tags:
  • All members
  • Posts: 25
bm_lpricedat_{price} not functioning??
« on: 21 Jan 2019, 18:45 »
i'm in engineering mode and test mode is OFF!

placed a £2.00 lay bet at 2.94:

bm_lpricedat_2.94 - reads correct: £2,00

s_3_bm_lpricedat_2.94 - returns correct £2.00

last traded price = 2.94, s_3_bm_lpricedat_last_traded - returns correct £2.00

so i ask:  s_3_bm_lpricedat_r_ticks(last_traded,-5) -
returns:  s_3_bm_lpricedat_r_ticks(last_traded,-5) no values.

ask:   bm_lpricedat_r_ticks(last_traded,-5)
returns: bm_lpricedat_r_ticks(last_traded,-5) no values.

what am i overlooking?

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: bm_lpricedat_{price} not functioning??
« Reply #1 on: 21 Jan 2019, 19:48 »
hi
h'mmm , ok
Quote
bm_lpricedat_2.94 - reads correct: £2,00

so far so good , you PLACED a bet at 2.94 , no problem , mfp gives the correct value .
and the other info etc is ok.

Quote
so i ask:  s_3_bm_lpricedat_r_ticks(last_traded,-5) -
returns:  s_3_bm_lpricedat_r_ticks(last_traded,-5) no values.
Now you want to know a value that has NO value.
how can mfp KNOW what the price is of a PLACED bet that never happened , OK you placed a bet at 2.94 , it was matched , no problem , now you want to know a value that you did not place and that was not matched ?
placed = bet at 2,94 = matched at 2.94
NO bet placed at 2.94 minus 5 ticks
tell me how mfp or you or anyone can give a value of a none placed/matched price.
I am here to learn and to help.
mcbee
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.

  • All members
  • Posts: 25
Re: bm_lpricedat_{price} not functioning??
« Reply #2 on: 22 Jan 2019, 08:54 »
agree with that, but bet was placed and matched, not test mode but real ££ mode.

for that matter bu_lpricedat_{price} returned the same values / no values.


writing a new trigger and always test the syntax in engineering mode.

  • All members
  • Posts: 25
Re: bm_lpricedat_{price} not functioning??
« Reply #3 on: 22 Jan 2019, 09:47 »
forgot to mention that when i asked for the last_traded minus 5 ticks, because the price at that time was trading at the matched price PLUS 5 ticks, so ti should have returned £2.00?

i understand that bets that haven't been placed cannot return a value.


 

Please note, BetFair is seems to be currently OFFLINE