Author Topic: Determine if price has increased by 10 ticks at specific times.  (Read 908 times)

Tags:
  • All members
  • Posts: 87
Hi,
Could you help please?
I want variable to help my trigger remember the selection's lay price 10 minutes before the off. Then a separate variable to check the lay price a minute before the off, if this latter price is 10 ticks larger than the 10 minutes lay price then I want the trigger to lay that selection. I know how to set the lay commands on the trigger, so it's just the two variables to remember the 10 minute price and then the variable to determine if the 1 minute price is greater by 10 ticks. If the price goes above 10 ticks before the 1 minute mark and then falls back down, I do not want the trigger triggered. I only want to compare the 10 minute and 1 minute marks. Hope that is clear.
Thanks.

  • Moderator
  • Posts: 3605
*
Hi
It can be done with setting two users variables, but the easy way is to use the built-in condition for this at the one minute mark:
markets minutes before the off is equal or less than 1
and selections lay ticks dif over 10 minutes is equal or greater than 10

the trigger expression variable, if you wanted to use that instead, is: ltdif_{minutes}

in settings make sure the market history depth is greater than 10 minutes 
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: 87
Thanks Mark.
I am familiar with this variable and did consider using it but wouldn't ltdif_(10) set off the trigger if the price went above the tick target at 9 mins before the off and then came back down at 8 mins before?
I am not understanding what you mean by making sure the market history depth is greater than 10 minutes, please explain.

  • Moderator
  • Posts: 3605
*
Hi
No, the conditions
markets minutes before the off is equal or less than 1
and selections lay ticks dif over 10 minutes is equal or greater than 10
check the lay price at the 1 minute mark
and if it is 10 or more ticks higher than the lay price recorded 10 minutes before it will bet
I think this will do what you want, but try it in test mode
this is the helpfile description:
The change of the lay price over the time specified, in price ticks. For example, if the price has changed from 6.0 to 5.1 within 11.5 minutes, then tdif_11.5 will return -9.

Market history depth is is the amount of minutes of historical market data kept in memory while refreshing the markets. So if you are measuring for example price difference over 10 minutes, then the market history depth should be set to say 11 or 12 minutes. The setting is on the Monitoring Options page of the settings.

here is the description from the helpfile:
Default market's history depth 

This setting defines how much historical data about each market is kept in the memory of MarketFeeder Pro. This includes all data loaded into charts, volume and last traded price trends, history of selections' prices etc. You can't access any market information that lies outside the specified timeframe. But don't rush to set this to a couple of hours: the amount of RAM used for storing the associated data may eat up all your computer's resources.
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