
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Try this:
Not compiled or tested
worked great... Thank you so much
Hi, I want to develop EA in MT4, I have made some EA before and have experience with C++.
Now, since MQL4 supports OOP which I'm more comfortable than procedural language, is it wise to learn new MQL4 language which is adapted from MQL5 ?
Unfortunately its still lack of tutorial although the documentation is there.
Continuing on my programming learning endeavor,
I am trying to develop an EA now just for educational purposes. The idea is simple. It detects candle spike and put an order (buy or sell) with a TP and SL. Ihe idea is based mainly on simple candle pattern.
This picture would help to get the idea. Here is the code under but still not working. I am not sure why?
//I wanted here to make sure that EA opens only one buy " or /and " one sell at any time.
// However, i am thinking what would happen if there is no orders at all. How this could work
You can try something like
Also, the variables absHighToClose5 etc are not assigned values in OnTick so will not change from when the EA is started. Is that what you want?
Thank you so much.. It was a new info to know about this kind of variables. I have done the modifications. Buy orders did work but SELL did not.
In the log, it says there is sell signal true but EA did not open. What i can say is "Programming is really fun". :)