Author Topic: Under/over markets - Trigger expression  (Read 1581 times)

Tags:
  • All members
  • Posts: 211
Under/over markets - Trigger expression
« on: 18 Dec 2019, 19:48 »
Hi,

I would like to compare data from under/over markets with other markets in a trigger expression. More exactly the under/over market of the current result. Explaining better: if the result is 0-0 the under/over market will be 0.5, if 1-0 or 0-1, will be 1.5.

What´s the simple way to do it? Is there any way of doing it without a sequence of "IF" conditions? Like "IF(market_score1+market_score2=0),football6_s_1_back_price,IF(market_score1+market_score2=1),football7_s_1_back_price,IF(......."

Thanks

  • Moderator
  • Posts: 3597
*
Re: Under/over markets - Trigger expression
« Reply #1 on: 19 Dec 2019, 16:58 »
Hi
this trigger will back at back price, selection under (s_1) in current OU market

TRIGGER
action: back
price: back_price
conditions:
markets betting code is over/under (soccer) market_score1+market_score2+0.5
and selections index is equal to 1

is this something like you were looking to do in the formula?
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: 211
Re: Under/over markets - Trigger expression
« Reply #2 on: 19 Dec 2019, 18:26 »
Hi MarkV

is this something like you were looking to do in the formula?
No, Unfortunately it´s not. 

I would like to compare data like prices or amounts between the under/over market for the current score with other markets. And for that you need (as far as i know) to create a trigger expression where it stands that....e.g. "the price on that market is lower than the price on the under/over market of the current price". How do you refer to the under/over market of the current price in a trigger expression. That´s my question.

I know how to do it with sucessive IF´s conditions as i explaining in my previous post. But it gives you extenses expressions with several lines (1 "IF" condition for each under/over market) and it demands that all the markets referred in the expression are load at the moment (or else it will give an error).

So i wonder if there are a better and easier way to do it

Thanks

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Under/over markets - Trigger expression
« Reply #3 on: 19 Dec 2019, 21:13 »
Hello!

I can suggest a workaround by means of a dedicated trigger that would repeatedly update a variable, setting it to the current price of the required selection (e.g. Under x.5) in the market with the current number of goals (i.e. Over/Under x.5 goals where X is the current number of goals scored).

This way you will not have to use the nested IFs, and as long as you have added all the markets covering possible score, you will have the accurate price of the current Under selection (s_1_back_price).

Please see the trigger example attached.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 211
Re: Under/over markets - Trigger expression
« Reply #4 on: 19 Dec 2019, 23:04 »
Hi Oxa,

To set an user variable and use that value in a trigger expression seems to fullfill exactly what i wanted.

But, now i´ve a doubt: what's the objective  of the 2nd trigger "using the price of the current Under in an expression"? I mean, the 1st trigger "updating the current price of Under in the current O_U market seems perfect, but you added the 2nd trigger with the action "write to action log" that i´ve never used, and honestly apart of writing in the program log i really don´t know what´s the porpuse or even if it´s really needed. 

Sorry about the question, but i am still a beginner and i was assuming that in a situation like this you would "set the user variable" and that was it. After it the value was set and you could use it in any trigger expression without any other action needed to be made.


Thanks

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Under/over markets - Trigger expression
« Reply #5 on: 20 Dec 2019, 04:29 »
Hello BlueSky

The action "write to action log" is to keep a record of that datain your logs, if you dont use itin your project you can deactivate it or delete.

It is also an example of the application of the variable created in the trigger above and how it can be applied in thousands of occasions.

pcal
Desenvolvedor de triggers oficial Market Feeder pro

Também faço:
Cursos sobre Market Feeder pro (gratuitos)
Triggers (gratuitos para sempre)

Para saber informações contacte-me!

NOTA: TESTE SEMPRE OS SEUS TRIGGERS ANTES DE OS USAR COM FUNDOS REAIS!

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Under/over markets - Trigger expression
« Reply #6 on: 21 Dec 2019, 21:28 »
Pcal72 has explained it spot on!
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

 

Please note, BetFair is seems to be currently OFFLINE