Array for tic
-
Hi.
I have 5 variables, where I want to record the value of the last 5 tic.
tic_0 current price value
tic_1 value of tic n-1 (previous tic)
tic_2 value of tic n-2
tic_3 value of tic n-3
tic_4 value of tic n-4
I used the modify variable block.
To each tic, I want to give you the values:
tic_4 = tic_3
tic_3 = tic_2
tic_2 = tic_1
Tic_1 = tic_0
tic_0 = Bid.
when executing the ea, only tic_0 changes me.
I do not understand why the values do not shift.
Could you help me? Thank you
-
AFAIK only the last variable on your block (tic_o) can storage tock ID. All other above can't. Just hover your mouse on "Tick ID" and you will be provided with full info about how ticks are stored.
-
@l-andorrà
gracias . intentare modificar- -
@l-andorrà
Hi .
I have got the variables to take the values that I need.
The problem now is that my 5-buy and 8-sale blocks don't let me pass, I have them badly programmed.
I could correct myself.
and a second problem is that the variable gap, I don't know how to make it external, so that I can configure it.
Thank you
 -
Empecemos con el bloque 4. Ahora mismo recibe dos condiciones de los bloques 3 y 7 y las deja pasar a los número 5 y 8. Tal como lo tienes montado ahora si la condición del bloque 3 es cierta, pasa al 4 que, si también es cierta, lo envia A LA VEZ, a los bloques 5 y 8. O sea, que se puede dar una compra y una venta independientemente de si vienen de las condiciones 3 y 7.
Te recomiendo que dupliques por completo ambas vías de compra y venta y las personalices. Una vez lo hayas hecho, hablaremos del segundo problema.

-
@l-andorrà
Hello-
First of all thank you very much for your answer.
already solved.
-. 1nd problem was that box 1 that updates the variables was disconnected, so these were not updated so the conditions were never met.
-. 2nd. problem - block 4, I have put it to close operations after I open them.
thank you -
So what problems are remaining right now?
-
@l-andorrà
in principle none, I think everything is resolved, now is to try it in demo. To see who does what I want.
thank you -
Great! Corssfingers now!
