Author Topic: Last Traded Book  (Read 571 times)

Tags:
  • All members
  • Posts: 15
  • Gender: Male
Last Traded Book
« on: 11 Feb 2022, 07:15 »
I'm trying to write a trigger that doesn't fire until the last Traded market price book % exceeds 100%. In excel I would divide 1 by the last traded price to produce a percentage then sum the last price percentage. Is there any way of doing this?

  • Moderator
  • Posts: 3606
*
Re: Last Traded Book
« Reply #1 on: 11 Feb 2022, 07:20 »
Hi
Have a look here. Could be of help.
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: 15
  • Gender: Male
Re: Last Traded Book
« Reply #2 on: 11 Feb 2022, 08:15 »
I see that calculates the percentage. Would I have to add a condition to that so it does not fire till perc is over 100%?

  • Moderator
  • Posts: 3606
*
Re: Last Traded Book
« Reply #3 on: 11 Feb 2022, 10:06 »
Hi
Yes, the trigger continuously calculates last traded book % every second in the user variable: ltpbook
so the condition for the betting trigger is:
and selections trigger expression ltpbook is greater than 100
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: 15
  • Gender: Male
Re: Last Traded Book
« Reply #4 on: 11 Feb 2022, 21:16 »
Many thanks, I'll give that a go.

 

Please note, BetFair is seems to be currently OFFLINE