Hi
I have an EA that enters its first position when a trendline is crossed.
I have 2 instances of the MT4 platform on my computer.
The EA works perfectly well in live and demo trading on both platforms.
However, strategy testing of this EA only works on one of the platforms.
On the other...
hi all,
if i have 1 comment command at the top of the codes and at the bottom i have another comment command
is it possible for the 2nd comment to be appended to the 1st one?
currently i notice it will only show the 2nd (i guess the 2nd overwrite the 1st)
thanks
Hello everybody!
I am facing a problem. I had an account in a brokerage where I wasused to use de cloud to optimize my expert advisor. Last weekend I opened anotheraccount in a new brokerage and I had to install another MQL5 dedicated to thisbrokerage. Therefore, to use the cloud to optimize an...
I have this problem that gives me trouble for quite some days , I think it's pretty much a fact of the code structure, because in this case the shift of the news candle never increases . Because if the news comes out at 17:00 , at 17:01 the news candle will no longer 0 but will of course 1 ( M1 ) ,...
void CloseEverything() { for(cnt=OrdersTotal()-1;cnt>=0;cnt--) { xxx=OrderSelect(count,SELECT_BY_POS,MODE_TRADES); if(OrderSymbol()==Symbol() && (OrderMagicNumber()==Magic || OrderComment()==Comment)) {...
So, here's a general template for my EA
So far, there seems to be no compiling errors and warnings ...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
i apologize in advance as I'm sure there were questions similar to this like thousands of times
but currently, I'm in the process of developing a single EA with multiple currencies including OrderSend and OrderClose functions for several currencies so that the EA can screen currencies...
I have an EA that has so far never resulted in a loss but the reason for that is for my human interference. I was wondering if I could code in " Realms " but I am not sure how too go about it at this moment.
I may figure it out in a month or so but I feel like I should brainstorm with a little...
My Broker's MT4 is giving error of too many positions open. Seems like there is a restriction of 200 max total positions that can remain open. They say MT4 has provided that, but I knowin past another broker was able to increase that number for my account.
So can anyone tell what setting i that...
Both MT4 and MT5 are in the same computer.
I'm not interested in any of the paid options.
I've tried the free EAs I've found googling and in the codebase but most of them seem to be outdated. In other cases when I try to compile the code there are tons of errors (maybe outdated also??).
Any of...
Hi there,
my plan is to save the chart as a template bevor leaving it. This part works fine!
It's the reload in 'OnInit', which don't do what I what.
The MessageBox says "Template apply: 0" - but noting happends in the chart.
I can load the template when going the manual way: right mouse button...
Hello everyone!
When I download history data ( using f2 ) from somewhere where candles timezone is different to my or my broker's timezone then will they be converted to my timezone?
Do copy* function return the candles time on my timezone?
Thanks!
Hi guys,
Am trying to create a simple EA that sets pending buy/sell STOP orders at previous bar high & low. See below
extern bool TradeOnClose = true;extern int MagicNo = 144500;extern double Lots = 0.01;extern int SL = 20;extern int TP = 60;void OnTick(){...
I'm wondering if there is any interest in collecting performance statistics on the collection of free / demo expert advisors available on metatrader. I have been looking around the internet for this kind of information and have not found it. My idea is that I could set up an automated system that...
All,
I have been study and search for good EA to help generate consistent profit.. would like to discuss with group here the topic what is the best EA so far you been used to help you generate good profit ? any suggestion or learning from the group can help each others gain better experience and...
Why do I get difference result for same EA same BROKER same VPS
My EA is MFM5
Broker is XM
Thank you very much
int OnInit() { double LotSize(string symbol,datetime tbar) { double size; string BQ,currency=AccountCurrency(); switch(MarketInfo(symbol,MODE_PROFITCALCMODE)) { case 0...
I've got a problem with an sl too. Whenever I think it's about numbers typed "double". Bevor I use my SL in OrderSend() I try to round it to the posible numbers given by the TickSize. double sl = 0.00544; double currSymbolTickSize = 0.00001; sl = MathRound
Hi, I'm new in mql5 and I'm trying to following the docs to listen the position opened "event". The functions like TradeEventPositionOpened() and TradeEventPositionClosed() are never executed. But the functions like TradeEventOrderTriggered() and TradeEventPositionStopTake() are executed. For now,...
So, I have a strategy that I want to implement on EA and it will be a while loop based strategy such that the program will reiterate calculations
until the profitable condition is met, then will execute the appropriate orders.
Would it be possible for one file to reiterate those calculations on...
hi all
i am using ontick and with some rules to enter trade
however, when price move too fast, it might trigger 2 or more entries on a single bar
how can i code it so that once it has opened a trade on current bar, it can only open the next trade on next bar onwards?
thanks
Hi,
I'm running an EA on 5 different currency pair.
All is running on a VR Server so that my PC doesn't have to run all the time.
The VR works pretty good.
The problem is, that sometimes if I'm running MT5 on my PC, some orders doesn't set the automated S/L.
As said, just running VR without...
[Deleted]
Hi!
I have an EA working in my MT4 and I'd like to transmit the orders of buy and sell for the 24 Options. Yes! The EA is a robot of binary options. However, the 24 Options don't offers support for MT4.
So, how can I do it?
Thanks!
Hi There,
I did my first steps in MQL5. Which is to set a SL to ervery thing living there without one.
It works well, but there are errors in the terminal jounal that I can not interpret.
"Notifications invalid settings (notifications not enabled)."
What is it about and where to...
[Deleted]
I have a question:
Call me paranoid, but Metaquotes isnt really a big company, it make a lot of sense stealing good strategies as second purpose,if i was the owner myself i'll try to see high profitable EAs, but
i have a technical question, for who understand programming, if i have a good EA,...
Hi is it possible to only open a position when spread for example is less than 5?
I tried that with
if(SymbolInfoInteger(Symbol(), SYMBOL_SPREAD) <= 5){ buy();}
and in buy() i do
Print(SymbolInfoInteger(Symbol(), SYMBOL_SPREAD));
and it shows me also values higher than...
Hi folks,
I'm struggling with an error on the following EA: https://www.mql5.com/pt/code/2314?
It uses the tradealgorithms.mqh and returns the following error: (): Incorrect volume for a trade request structure
Searching the code I realized that the error is caused by a Volume <= 0. But I still...
Hi, please help me!
How to place object(button, text) into separate window or separated indicator?
please, answer.
Hi There!
I am about to do my first steps in MQL5. Some things went fine others . . .
How to open a file in append mode?
There is no flag in the FileOpen.
Thanks a lot
Willbur
hi all
currently i am using ontick
when a trade is closed, i want to wait a certain interval before evaluating to open a new trade
googling around, i found sleep can do the trick
is this the best method?
thanks
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.