Oh thanks @l-andorrà , it works perfectly. Thank you for your sharings.
I've modified it as below now
https://fxdreema.com/shared/ngBksFjPc
Posts made by rhang
-
RE: Fractual Break out EA for MT4posted in General Discussions
-
RE: Fractual Break out EA for MT4posted in General Discussions
@l-andorrà yes, same person. sorry for the confusion.
-
RE: Fractual Break out EA for MT4posted in General Discussions
Thanks @l-andorrà , but the two trailing stops work in other EA's I've made so far, e.g. one would be for buys only and the other with sells only. the idea was to have differernt trailing stops for buys adnd sells
But for the Fracctal+20 pip part I haven't got it to work yet so far.
-
Fractual Break out EA for MT4posted in General Discussions
Dear all
I have been trying to create an EA for the followinng actions but so far seems no actions happen
For pending long orders, the followings are used
-CCI>0
Pending long using the latest Fractal high + 20 pipAnd for shorts, the opposits.
So far I have tested it in MT4 and have seen no results, not sure if it is correct or missing something, please suggest.
Example of the EA is as follows:
https://fxdreema.com/shared/D6WuBpxtcThank you
Rhang -
RE: Loading EA .ex5 to MT5 fails in Visualize/Genetic Optimizationposted in Questions & Answers
Ah I found it, I did a mistake during creating the project
When I created the new project, I selected
Script*****>>>>>this should be Expert Advisor
MetaTrader 5The Script was the problem. now it can be loaded. my mistake.
Thank you for all suggestions

-
RE: Loading EA .ex5 to MT5 fails in Visualize/Genetic Optimizationposted in Questions & Answers
@rhang said in Loading EA .ex5 to MT5 fails in Visualize/Genetic Optimization:
compili
 -
RE: Loading EA .ex5 to MT5 fails in Visualize/Genetic Optimizationposted in Questions & Answers
I,ve tried to download the mq5 file then used the mt5,s compilier to compile it and it was successful.
However the virtualize still gives the same error in the journel. This was of course after multiple restarts of mt5 but the error remaind.
Any other suggestions please.
Thanks -
Loading EA .ex5 to MT5 fails in Visualize/Genetic Optimizationposted in Questions & Answers
Hello
I've been so far using MT4 EA using fxdreema as a tool to write ex4 in to Mt4, so far it has been great.
Now that I have started MT5, I create a new project with all new blocks and download it to the expert directory and refresh the MT5 explorer then select the new ex5 EA, but so far it can not start in the virtualize tool. In the Journal, it says somthing likeMQL5 >>> wrong type, loading of file-A failed
Tester >>>> Loading of file-A.ex5 failedthe start button is disabled and the input tab has no data.
Any thing different from the MT4 way of doing???
Thank you
-
RE: Close price - EMAposted in Questions & Answers
@trader-philipps , exactly. Super, thank you. it works.

-
RE: Close price - EMAposted in Questions & Answers
@trader-philipps , thank you for shining light on this. so I got as far as below
so now this means the variables will be updated for each tick with the difference of closing price and EMA of closing price. now how to do the BuyLastEMA > 3 for example (that can be optimized later on in EA)?
I tried to find where to put in condition for BuyLastEMA > 3 but can not find where or how to do it.
Thanks alot.
Rhang -
Close price - EMAposted in Questions & Answers
Hi all,
How to create a formula that becomes true when the closing price - EMA10 (close price for example) > 3 ?
Thanks