@gurpals You will need a variable and then do this:

@gurpals You will need a variable and then do this:

@lanrayy Because backtesting is the most perfect market conditions and executions imaginales whereas reality is not. For example, backtesting doesn't include variable spread while real market is always changing spread value. That is a major changer on its own.
@kestra Not sure what you mean exactly. What condition is stopping the EA to open a trade?
@cristian-0 Es ciertamente un proyecto muy complejo. No acabo de entender la distribución de bucles que usas. Mi primera recomendación es que ordenes los números de los bloques que ecabezan cada rama del EA. Veo que las ramas que ejecutan bloques son menores que las que lanzan operaciones. Eso nunca es recomendable. fxDreema ejecuta cada rama en función del número de bloque que encabeza. Deberías situar primero los que lanzan operaciones y luego los que las gestionan una vez abiertas.
@tcanuto Ok. Now I wee. In that case you will need a loop to do those calculations. I'm afrad loops are not my field of expertise, sorry. Maybe roar or miro can help.
@andrew-b Probably those are your broker's conditions. No smaller SL distance will be alloed as per their trading conditions. You should contact them to confirm.
@ftsio Not completely sure I understand what you mean. Can you please be more specific?
@digimax Genial. Si necesitas más ayuda, vuelve al foro a pedirla.
@sosel I recommend you to move the tree block headed by block 53 to the 'on chart' tab. I didn't notice it is on the 'on tick' tab when they work on buttons.
@asaph Correct, both indicators are independent. They can never cross unless you are using a custom indocator including both of them.
@gurpals Can you please share teh link to your project?
@wolamen My example can calculate the overall profit/loss of all open trades right now. No matter how many are open right now. You simply need top duplicate it: one structure for buys and another one for sells.
Same with closing. You can specify only buys or sells to be closed when your profit target is reached.
@saeed-2 You can create a variable to store the value of lot size and then do this as many times as you need:

@javier-dl Le estás axigiendo al indicador que apdopte valores mayores o menores que 0. ¿Estás seguro de que esos valores son correctos? ¿Lo has comprobado con variables visualizables?
@padletut Absolutely impressive!
Thank you very much for sharing.
@skf1883 That is weird. You should contact the admin here: