Author Topic: trigger constants  (Read 2133 times)

Tags:
  • All members
  • Posts: 314
trigger constants
« on: 26 Jul 2015, 20:00 »
OK, just trying out creating a trigger...

I am trying to find a list of the constants' names that I can use for items.

I am not sure if I declare a constant named var1, and I want it to be the time in seconds before the race is due to start to say 10 seconds, so declare the description as "When to place a bet, seconds before start" and set its value to 10

will MFP understand that? or d I need to use a specific variable name that MFP will understand? Such as secs_before_off

I used the variable name var1 above to show that I don't have a list of acceptable constant names - is there a set of constant names that I can refer to - I cant see them?

thanks

Mark.

  • All members
  • Posts: 365
Re: trigger constants
« Reply #1 on: 26 Jul 2015, 20:12 »
There is a predefined function for that you can use a condition...

Markets Minutes before the off <0.2

or you can define a variable (almost to what ever you want )..

min_before_off=0.2 wich gives the condition..

Markets Minutes before the off <min_before_off

  • All members
  • Posts: 314
Re: trigger constants
« Reply #2 on: 26 Jul 2015, 20:17 »
ok, thanks tupp,

just to confirm, in the Constants section, I set the Variable name as BetTime, use an optional description, and then set its value to 0.2, so the bet will be placed 12 seconds before the declared off time?

Mark.

ahh, looks like you edited? min_before_off

  • All members
  • Posts: 365
Re: trigger constants
« Reply #3 on: 26 Jul 2015, 20:32 »
ok, thanks tupp,

just to confirm, in the Constants section, I set the Variable name as BetTime, use an optional description, and then set its value to 0.2, so the bet will be placed 12 seconds before the declared off time?

Mark.
yes! But you must have a condition in the trigger "Markets Minutes before the off <BetTime"

  • All members
  • Posts: 314
Re: trigger constants
« Reply #4 on: 26 Jul 2015, 20:38 »
as a noob to MFP, it sstill a bit frustrating. How did you know the variable name was min_before_off?

yes, its name is obvious, but somewhere, there must be some documentation that declares this variable?

or is it contained only in the secret club  :-X  ;)

  • All members
  • Posts: 365
Re: trigger constants
« Reply #5 on: 26 Jul 2015, 20:43 »
as a noob to MFP, it sstill a bit frustrating. How did you know the variable name was min_before_off?

yes, its name is obvious, but somewhere, there must be some documentation that declares this variable?

or is it contained only in the secret club  :-X  ;)

It's all in the manual! if you serch for "minutes before the off".

But when you writing a trigger it's a scroll list which also help you.

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: trigger constants
« Reply #6 on: 27 Jul 2015, 18:26 »
hi markoone11
a variable/constant name is whatever you want, it is the value that is important.
i use the variable/constant    mbo    , but the value is what i want the minutes to be before the start time.
then in the conditions you would use
and markets minutes before the off is equal or less than mbo
mbo could be any name that you want.


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