Author Topic: Help from Portuguese forum ("odd" or "even") [TCKT21072013OE]  (Read 2560 times)

Tags:
  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
 Hi all

A friend of the Portuguese forum asked me for help but do not know the answer as I remembered to ask you this question together with friends here in forum English

"
I developed a trigger and now wanted to duplicate it, what I want is entering alternately ... ie Trigger 1 (T1) and Trigger 2 (T2)

Following racing, T1, T2, T1, T2 .....

The first idea that occurred to me was to put a condition for the total number of runs, ie odd and even, the point is that I was looking in the manual and found no reference to where to put the expression "odd" and "even" ...

I can always manually put 1,3,5,7 etc .... or 0,2,4,6 etc ... but this would be infinite ...

How can I do what I want? is there another option rather than odd or even?

thank you"

So... is there a way via variable and or via formula know if a number is "odd" or "even"???


Many thanks
pcal72
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!

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Help from Portuguese forum ("odd" or "even")
« Reply #1 on: 22 Jul 2013, 05:30 »
hi
if you want to use alternate triggers, then add a variable to each trigger, call it   ok
in the constants put
ok                     DO NOT ALTER                  (value)  0
now in the first trigger trigger add the action
set user variable    ok    1
in the conditions add
and selections trigger expression ok is equal to 0
and trigger (your second trigger name) number of runs is equal to 0

in your second trigger add the action
set user variable   ok   0
in the conditions add
and selections trigger expression ok is equal to 1
and trigger (your first trigger name) number of runs is equal to 0

so the first trigger will only activate if the value of   ok = 0 , then change the  ok value to 1
the second trigger will only activate if the value of   ok = 1 , then change the   ok value to 0


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.

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Re: Help from Portuguese forum ("odd" or "even")
« Reply #2 on: 22 Jul 2013, 06:53 »
Hi mcbee

Yes this will solve the alternate triggers problem, for sure.

Many thanks

By the way, you know a way of we program MFP for recognize "even" and "odd" numbers?

Is not already needes for this case but for others who need this option..
Imagine one trigger that bets in determidated way if market id is  even and bets other way if market id was odd.

Thanks again mate, always the best  ;D

pcal72
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: Help from Portuguese forum ("odd" or "even")
« Reply #3 on: 22 Jul 2013, 07:45 »
This is the formula for determining if a [number] is even or odd:

[number] % 2 = 0 - even
[number] % 2 = 1 - odd
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

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

  • Desenvolvedores de trigger
  • Posts: 919
  • Gender: Male
*
Thanks Oxa

One more post solved  ;D

pcal72
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!

  • All members
  • Posts: 84
Thank you very much for the support, tomorrow I will do some changes on the trigger and introduce the new conditions...  :P

thanks

 

Please note, BetFair is seems to be currently OFFLINE