Codes

Candle Pattern EA /test for MetaTrader 5

This is a simple EA test code I made for adapting Candlepatterns.mqh

MarketsMaster EA for MetaTrader 4

Expert Advisor in MQL4 with 4 signals based on 6 Indicators. Works at any stock. If anybody wants to translate it to MQL5, it would be great. I still do not know MQL5. If you do, please, let me know

Forum

Requotes in Backtest. How to solve them?

Hi, I am getting requotes in backtest when backtesting from 2019, getting the EA into some trouble for making the right actions. I have tried m.symbol.RefreshRates but it makes no difference, even before closing each order. I do not think in real it would give a requote having a refresh just before

Code for releasing orders

Hi, I am trying to code a way to release orders, but it is not working. Does anybody know the logic? //+------------------------------------------------------------------+ //| Profit loop |

If an account was banned, can a new one be opened?

Hi, I would like to know if the same person can open a new account after having a first one banned? Not just for buying or asking, but also for selling. Best regards

Can I share a Demo EA?

Hi, Can I attach an EA only for Demo, compiled. I mean, share it, with the intention of people testing it

Making a Multi-Symbol function

Hi, I am trying to code a Multi- Symbol function and I need some help with it. I have given the pairs an option like this one: input bool Trade_Pair1 = 0 ; // Trade input ENUM_SYMBOLS Pair1 = GBPUSD; // Pair input bool Trade_Pair2 = 0 ; // Trade input ENUM_SYMBOLS Pair2 = GBPUSD; //

EA not opening orders after changing profile

Hi, Does anybody know why might the EA not be opening any orders after I changed the account? I am backtesting so I do not want to restart the MT4 platform and VPS again, I did it once, but it has not opened any trades in a whole week. Best regards

Tell the EA to close orders if in profit for a certain time

Hi, I am looking at my trades and, although the EA is doing quite well I have seen that it might be a good idea to exit some trades after some time. Due not having reached TP, it might get stuck in flat movements, so I would like to know if I can tell the EA: If in Profit for X time, close all

CopyHigh and CopyLow for Breakouts. CopyLow DOES NOT seem to work.

double Maxima_Candle[]; CopyHigh ( Symbol (),TimeFrame2, 1 ,Shift2,Maxima_Candle); int position_max= ArrayMaximum (Maxima_Candle); double CL= Maxima_Candle[position_max]; double Minima_Candle[]; CopyLow ( Symbol (),TimeFrame2, 1 ,Shift2,Minima_Candle); int

EA suddenly not opening orders

Hi, I am coding an EA and I have generated like 4 versions. I created the last and now none are working. The EA has been working for 2 weeks and suddenly it does not open trades. Any ideas? A friend has a copy and it still is working

Pip Distance and Martingale

It is giving me some Invalid LotSize 4051, any ideas why and what could I correct? I want to calculate the distance from one signal until the other one. Lets say the signals are very good but 'who is without a flaw'? Then, I want to calculate the lotsize for a Martingale if the 1st signal goes wrong