I want to store the ticket number of a parent partially closed trade into a variable. I tried this but to no avail:
https://fxdreema.com/shared/C0pkHoN8b
Am I missing something?
I want to store the ticket number of a parent partially closed trade into a variable. I tried this but to no avail:
https://fxdreema.com/shared/C0pkHoN8b
Am I missing something?
It works now. Thank you all for your help. BTW. how can I remove the 'unsolved' tag on the thread? 
@fxDreema Your changes apparently worked...partially. Now no errors are identified when compiling but when I run the EA on the chart no info is visible on the chart until I remove the EA!! 
Then I can see the results as per roar image. Can't the comment(ugly) block be executed on the on init for MT5, maybe? 
Then you can try separating both variables like this example for another project I worked on:
https://fxdreema.com/shared/bKbTjhrse
In my example I'm counting pips from all open and closed traded and then I get the overall result. You can try the same for those trades in profit and in loss.
@jstap This is my last frontier to explore! I find arrays can be very useful but I don't know hoe to create them in fxDreema. Any help would be much appreciated.
Espero que puedas encontrar una solución aceptable, ya que los brokers no siempre esan los mismos métodos de almacenamiento de variables. Lo mejor es siempre contactar directamente a su servicio al cliente y pregutárselo. Te ahorras mucho tiempo y dolores de cabeza.
What you need is two completely separated and different structures to do that. Once for the first move to the line and then a new one controlling the 1 pip move.
Additionally, you will need several variables to control all that info. This is not a trivial EA to implement.
Can you please share the latest version of it?
Pues eso lo complica, ya que necesitas al menos dos de ellas. Una para controlar cuándo se produce un cruce y otra para contar cuantas barras han pasado desde entonces. ¿Tienes algún proyecto inicial ya hecho con el que comenzar?
jstap is right. That is not possible in fxDreema. You will have to import a custom indicator here with both of them already embedded.
Apparently fxDreema can't find the buffers. The only option is modifying the indicator's code or emulating them as explained by this tutorial (see part where the ex4 file is used):
https://fxdreema.com/forum/topic/4208/tutorial-06-my-indicators-in-fxdreema
@sebaseba54 I don't fully understand what you mean. Could you please share a picture of what you need exactly?
@Edify-1984 fxDreema is designed to create EAs, not indicators.
I created my first easy array for MT5 but I get more than 20 errors. Could someone please tell me where's the problem?
@fireblade Once more the logic is correct. The ony reason why a trade should nt be open is if conditions for candle body size on block 3 or SL positioning are not meet. Other than that it should work. Are you sure this is the whole project? If not, maybe the reason is somewhere else.
@safeer992 Can you please explain how that strategy works exactly? I will try to help.