More detail would be appreciated.
- What does 'if price goes bearish' exactly mean?
- What kind of line is the '50 line'?
More detail would be appreciated.
Bones de nou, company. La meva recomanació per a backtesting és fer servir MT4 amb les dades del servei "Tick Data Suite 2". De llunys, són les millors dades que trobaràs comercialitzades a dia d'avui. És una mica car, malauradament, però paga molt la pena. Tenen l'avantatge que s'instal·len a la MT4 amb tres i no res sense cap problema.
És veritat que la MT5 és molt millor, de lluny, per a fer backtesting, però per desgràcia encara no he trobat dades de la mateixa qualitat per a MT5. el dia que les trobi, em passo a MT 5 sense dubtar-hi.
El putu covid aquest està arrasant l'economia del país, però suposo que és el preu a pagar perquè la situació no surti de mare com us passa a vosaltres. Espero que tot aquest malson s'acabi aviat per a tothom.
Honestly loops are not my field of expertise, I'm afraid. Maybe Mr. roar would help us! 
So let's rewrite it, please. You are creating an EA that will be opening a new trade every 5 pips. Correct? The first question is verey 5 pips from what? What price will be considered the baseline?
Once more, my request was to twogirlsonecup, LOL 
Working on ex4 files is hard and not always effective. Can you please provide the mq4 version?
Is each new SL supposed to move upwards (buys) or downwards (sells) as price move in that direction? I mean, can that SL move back and forth depending on the proce level of the previous trade? Maybe a diagram would help.
It depends on your custom indicator's buffers. Are those arros stored as colours in those buffers or as objects?
Si lo entiendo correctamente, lo que quieres es que los valores de lotes de las operaciones pendientes que se han lanzado mediante el bloque 3 se modifiquen a medida que se cierran operaciones abiertas. ¿Es correcto?
I recommend you to disconnect the 'close trade' blocks fron those positions and create a new tree structure for them alone.
Could you please share your last version's project?
I can't remember the exact mql order right now, but what you get in that way is the price fraction. Maybe that's enough for what you are looking for. Do you really need it to be transfored in to pips?
Why do you need a line when what you really need is a price level? Just store that price level in a variables and then compare ask/bid with that variable. Ithing that will be easier.
El problema que planteas es que la cuadrícula de operaciones se lanza al marcado de una sola vez al principio del proceso. Esas modificaciones que solicitas deben modificar operaciones pendientes (que aun no se han ejecutado) sobre la marcha. Eso es una estructura complicada de realizar. ¿Tienes algun proyecto de EA ya desarrollado para echarle un vistazo y trabajar sobre él? De lo contrario, empezar desde cero puede ser una tarea muy grande.
That symbol is used when you are looking for any number different from 0, for example. Maybe your variable has that initial value and then it is modified later. You can use that symblo to find the moment in wich it changes from 0 to any other number.
You are using candle ID 0 everywhere. I stringly recommend you to use candle ID on all operands of all 'Condition' blocks.
Man, that's a huge project. Reviewing it all is VERY time consuming. Could you please try to specify the area that you guess can be wrong?