Bom dia RodrigoM
Ja tenho novidades.
Bem é assim vou deixar duas coisas.
Uma é a resposta directa à tua pergunta par ou impar:
This is the formula for determining if a [number] is even or odd:
[number] % 2 = 0 - even
[number] % 2 = 1 - odd
Assim e como falaste em apostar consoante a posição do mercado temos
market_index%2
Irá responder-te com o valor 0(par) ou 1(impar)
Agora a outra solução para quem tem triggers alternantes:
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
Pronto
Deixa-me agradecer a preciosa ajuda da equipa Market Feeder (Oxa e mcbee), sempre prontos a ajudar.
Grande abraço
pcal72