Hello MQL community,I just started to learn the MQL language and I am currently trying to build my first EA.So in my first EA I want to only do a CALL or PUT when the fractal+diamond occurred two candlesticks apart (See image for example)
If the Fractal (the yingyang symbol is green) The Value 2 in the Data Window in MT4 shows a value:
If the Fractal (the yingyang symbol is orange) The Fractals Colmun in the Data Window in MT4 shows a value:
If a diamond in green appears The M1LWMA 4x4 show a value:
If diamond in red appears the Value 2 shows a value. Based on that I tried to come up with the correct logic in the code. Below you can see my attempt:
But this is doing something else then I expect. Where did I do the mistakes ?(Please do not laugh, I just started to learn this language and it is my first attempt in coding ever.)Would love to get feedback and tips from you guys! I am eager to learn from my mistakes.Best regards,salexes
Thanks for the quick reply!Fractal Indicator: https://drive.google.com/open?id=0B2rPzZwp8BKcbkhnS3JWT25fRmM
MA 4x4 (4 EMA close x 4 EMA open) Indicator: https://drive.google.com/open?id=0B2rPzZwp8BKcdGhOSHBlcWZmd1E
I am not sure if it includes the forming bar zero, probably not. I attached the indicators, because I am not sure how to answer your 4.th question.
So I figured out the problem, the problem is that if we have for example this setup:
The problem is that if there was an diamond the value LWMA 4x4 will show a value till there is a new/different diamond forming. What could I do against that ? (I do not have the source code of the MA4x4 Indicator, I just got the indicator in .ex4 format.)Is it possible to check if an diamond is drawn on that candle ?
Hello, Could you explain how you solve the problem?
am in search for this indicators for long time
could you share it please