// Trying to make an EA based on these Rules:
//Buy:
//1. Open buy trade when rsi touch 70 with 10 pips tp and open buy stop and buy limit with a gap of 10 from the previous buy trade.
//2. When rsi 70 is touch, sell orders are not allowed.
//3. When rsi 30 is touch, all buy orders will be closed.
//4.. When the latest buy trade TP is hit, open buy trade at market price and add buy stop and buy limit with a gap of 10 from the latest instant buy trade.
//5. Pending orders has 10 pips TP.
//6. When pending orders TP is hit, close all pending orders, then open buy order at market price and open buy stop and buy limit with a gap of 10 from the latest buy trade.
//Sell:
//1. Open sell trade when rsi touch 30 with 10 pips tp and open buy stop and buy limit with a gap of 10 from the latest instant sell trade.
//2. When rsi 30 is touch, sell orders are not allowed.
//3. When rsi 70 is touch, all sellorders will be closed.
//4.. When the latest sell trade TP is hit, open sell trade at market price and add sell stop and sell limit with a gap of 10 from the latest instant sell trade.
//5. Pending orders has 10 pips TP.
//6. When pending orders TP is hit, close all pending orders, then open sell order at market price and open buy stop and buy limit with a gap of 10 from the latest sell trade.
- Oil Spot Strategy in Forex by Mohammad Sadi
- Looking for EA which will close all open and pending orders when hit take profit(TP)
- BUY ORDER AND SELL ORDER WITH TP AND SL WITH PENDING ORDERS
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
- Usually people who can't code don't receive free help on this forum.
- If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
- To learn MQL programming, you can research the many available Articles on the subject, or examples in the Codebase, as well as reference the online Documentation.
- If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free). However, recommendations or suggestions for Market products are not allowed on the forum, so you will have to do your own research.
- Finally, you also have the option to hire a programmer in the Freelance section.
Trading applications for MetaTrader 5 to order
- 2023.12.23
- www.mql5.com
The largest freelance service with MQL5 application developers
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