EA that does not keep making the same order
- Experts: Pending orders by time
- COULD SOMEONE HELP ME ABOUT BUY AND SELL ORDERS FOR THIS EA???
- Envelope 2.11
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
No free help (2017.04.21)
Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2018.05.12)
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
No free help (2017.04.21)
Can someone help me make the EA i created stop making concecutive orders of the same type ... i mean a code that tells it that if the previous signal was sell... it should not trigger another sell.... but do a buy...so it goes sell ...buy sell buy..... not buy buy buy ..
You should check previous order, if that is buy, then this order is not buy, open sell only, and vice versa.
For example code:
int order_type_pre = -1; bool ticket = OrderSelect(OrdersTotal()-1, SELECT_BY_POS, MODE_TRADES); if(OrderSymbol() == Symbol()) { order_type_pre = OrderType(); } // Compare pre order type with this open order type if(order_type_pre != OP_BUY) { // Open buy order } if(order_type_pre != OP_SELL) { // Open sell order }
Can someone help me make the EA i created stop making concecutive orders of the same type ... i mean a code that tells it that if the previous signal was sell... it should not trigger another sell.... but do a buy...so it goes sell ...buy sell buy..... not buy buy buy ..
- 2021.06.15
- www.mql5.com