Author Topic: Monitor price then lay trigger  (Read 4690 times)

Tags:
  • All members
  • Posts: 4
Monitor price then lay trigger
« on: 07 Dec 2015, 19:58 »
Hello
Are you able to do such a thing as monitoring prices of a horse and if the 4th favorite drops below a certain price you lay the 5th favorite for example.

At the moment my trigger seems to only check the price once and if it is not correct it is done.

  • All members
  • Posts: 347
Re: Monitor price then lay trigger
« Reply #1 on: 08 Dec 2015, 07:58 »
I would create two triggers

one dummy trigger that remembers the horse thats dropping with the parameters .. slections rank = 4 and back price is less than your price

then have another trigger lay the 5th favorite if the trigger number of runs for our dummy trigger is equal or greater than 1

  • Moderator
  • Posts: 3605
*
Re: Monitor price then lay trigger
« Reply #2 on: 08 Dec 2015, 08:15 »
Hi
It's a bit difficult to pinpoint without seeing your trigger or conditions, but yes it should be straightforward. Here is an example similar to the one liltbrockie suggests:

Action: lay
Price: lay_price
Selection: fifth favourite
condition:
selections trigger expression r_4_back_price is less than <yourprice>

this trigger will check the price of the 4th fav every market refresh and as soon as the back price of 4th fav drops below <yourprice> it will lay the 5th fav.
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: 4
Re: Monitor price then lay trigger
« Reply #3 on: 12 Dec 2015, 16:20 »
It doesnt work. It says "the trigger has already been executed once per each qualifying selection" and then does nothing else

  • All members
  • Posts: 4
Re: Monitor price then lay trigger
« Reply #4 on: 12 Dec 2015, 16:22 »
here is the trigger file

  • Guest
Re: Monitor price then lay trigger
« Reply #5 on: 12 Dec 2015, 17:17 »
Hi,

Thats a very complicated trigger, and if it one of your first attempts at trigger writing then well done so far.

There are however several errors in design and execution. I am having a go at getting it to work but it may take the rest of the evening!!


  • Guest
Re: Monitor price then lay trigger
« Reply #6 on: 13 Dec 2015, 10:26 »
Hi,


The trigger you attached is not going to function properly in my opinion. Even after going through the errors, using the "trigger number of runs conditions" so many times AND on so many triggers is not something I can ever get to work. Its a headache trying to read them.

Better to start again I think. I have attached a simplified version for you to rebuild it from.

If you have a full strategy worked out, then perhaps getting someone from MfPro to write a full trigger for you is the best way to go for now.
newbielink:http://community.welldonesoft.com/make-me-a-trigger!/ [nonactive]



  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Monitor price then lay trigger
« Reply #7 on: 19 Dec 2015, 13:04 »
hi
here is your trigger altered and working.
there were a lot of mistakes
trigger names repeated many times.
triggers without actions will not work, so all your price checking triggers had to have an action added so they could be activated and there names changed.

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.

 

Please note, BetFair is seems to be currently OFFLINE