Forum on trading, automated trading systems and testing trading strategies
Hello,
This forum is about MT5/mql5, please post your question about MT4/mql4 on mql4.com forum.
- They are more people who can answer there.
- They are more people who can have similar problem there.
- A forum is not only to get help but to share with the community, mql4/MT4 community isn't the same as mql5/MT5 community.
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
Hi,
I am creating an EA with a website where you do not need to write any code. You just put the condition you want and it will write the code for you. (I have no clue writing code)
Those are my conditions to buy for now. It is comparing each pair.
double Buy1_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 0);double Buy1_2 = 0.000150;
double Buy2_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 0);
double Buy2_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 1);
double Buy3_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 0);
double Buy3_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 0);
double Buy4_1 =
double Buy4_2 = iOpen(NULL, 0, Current + 0);
I need to write in the line (double Buy4_1) the condition "if the price now is higher than the open price". The idea is to open the position intraday only if it is a positive day so far. The timeframe I am using is Daily. Any of you know how can I do it?
Thanks in advance!
Regards