Expert Advisors and Automated Trading - page 211

Hi! I am making a few adjustments in the Fractals indicator from MetaQuotes and i am trying to create more dots to the right, like a support and resistance line, i need 5 more dots to the right instead of just one but i am having a hard time doing it Can someone show me the way? I needed something
I would like to check the maximum lot size that can make an order in the market, before I make the order. If an order does not success due to the lot size is not available in market with current open price , I would like to get the available lot size that is available in market with current price
Yesterday i subscribed to a signal through mt4, but the trades are not being copied. Please do note that my broker uses a different name for the pair i.e EURUSD . rather than EURUSD, Is this the reason that trades are not getting executed automatically
Hi Why I get error 4806 on CopyBuffer? //+------------------------------------------------------------------+ //| test1.mq5 | //| Copyright 2021, MetaQuotes Software Corp. | //|
While running this minimal piece of code, I have different results on tester. input int nothing = 0 ; double totalticks; int OnInit () { totalticks = 0 ; return ( INIT_SUCCEEDED ); } void OnTick () { totalticks = totalticks+ 1 ; } double OnTester () { return totalticks; } Running for
hi i use a EA on real account The EA send a order but i get a error 4756 as you can see at the code below i made a alert to tell me if the order was send or not despite the order was send i still get a alert with error and not get a alert " order "+ _Symbol+ " long was sent " the code is
Hi, I'm struggling and wondered if someone can help? I'm running MT5 from Python using the command line and a config file. I'd like to be able to read in equity curve data from each pass in the optimization. I'm not familiar with Frames and can't really see any good documentation on their use. Can
//+------------------------------------------------------------------+ //| ObjectOnChart | //+------------------------------------------------------------------+ datetime prev_bar = 0 ; int handle_ma_50, handle_ma_200; int OnInit ()
Do I need to insert the break function? If so, where do I insert? Before return or after return? //+------------------------------------------------------------------+ //| One Position |
Hi, Can I attach an EA only for Demo, compiled. I mean, share it, with the intention of people testing it
hi guys....How do you calculate swaps in currency pairs (in forex) and for gold/silver? Kindly help to answer the a I've question
[Deleted]
Good Morning, Have someone please experienced this ? 1. Run a Strategy Tester of some Expert Advisor 2 Get the results via OPTIMIZATION RESULTS tab 3. Export to XML MS Excel 4. Open Excel and import XM file and get the error below Thanks in advance Regards, MRC ERRO XML em Tabela REASON...
hello I am developing an expert adviser. I want to test it on strategy tester . on xauusd m1 timeframe. history quality is 100% but it seems candles data are not true. where is the problem? thanks in advance
Hi, I have the function below and it works. But then I read this: https://www.mql5.com/en/articles/43 where it says that iCustom is best called in OnInit(). Is this also true for my function? I can imagine that every call to iMA recreates a moving average calculated over many values and then only...
I had a wrong activation of EA witch i bought a few weeks ago and activate on the one of my account and today i add this EA to another account (different broker) but the same PC. And today i have got another activation message. I thought that activation is considered to be used on different PCs or i
Hi MQL5 community, Being new to this, I would be thankful if you could help out with the most optimal specifications/settings of the <Deleted> as I am not sure if the default settings would offer the most from this signal. The balance of the account is 7500 USD, I have attached a screenshot of the
this is my code of crossover ema //CROSSOVER OF TWO EMA #include <Trade\Trade.mqh> CTrade trade; void OnTick () { double WeeklyTrendArray[],DailyTrendArray[],MAONEARRAY[] ,EMATWOARRAY[]; //Trend emas int WeeklyTrend = iMA ( _Symbol , PERIOD_W1 , 8 , 0 , MODE_EMA , PRICE_CLOSE );
  error 10013  (3)
Hi I wrote a EA But buy order don't execute and i get this error. pl help ! Error: 2014.05.12 11 36.000 2014.04.04 05:01:06 Function: BuyOrder3 Error: 10013 Invalid request 2014.05.12 11 36.000 2014.04.04 05:01:07 failed exchange buy 0.20 EURUSD at 1.37150 sl: 1.36950 tp: 1.37450...
Hi, Can anyone advise me on the best way to output the deal info/equity curve data for each run in the optimisation? I’m running MT5 using the cmd line with a custom config. That all works fine but from what I can see it only saves an xml file which contains the optimisation summary. I’m looking for
Hi guys, I have been struggling adding a feature to my EA. I want to opposite open market orders on every trade at my SL level that get deleted once TP is hit. So basically, if I have a long position and the SL is hit, I want to go short at the same level as my SL. If TP is hit, the order gets
Hi all, first post and am happy to join the conversation. I am having difficulty with a simple bot I am creating (not for live trading, just practice coding). The premise of the bot is simple: - It checks if the 2nd and 3rd last candles are either both bullish or both bearish - It checks if the last...
Hi everyone I just registered for the VPS here on MQL5 I then shut my computer down and I can't find how to get back to the VPS and also my MQL5 trading room has nothing in it which I guess is now been migrated to the VPS I am only new to trading been dabbling for about 2 months now any help would
Hey guys. Im starting working with EA's and I noticed something today that I don't fully understand. Checking the Experts logs on my VPS it said that on 05:39:31 the EA was loaded. Then, at 05:43:57 it was loaded again. At 05:44:12 again. And then at 05:45:49. All of them in the same day. So I have
Hi! I'm developing an EA where I need to know if "the current OnTick is being called at the last datetime in the testing". IOW if I calibrated the backtester to run a test between 2019.01.01 and 2020.12.28, I want a way to know from inside OnTick that "now is 2020.12.28". To get the current datetime
Hi, i'm new with MT5 and i was wondering what is the best practice to monitor multiple EA's performance in order to diversify my funds. The platform have a built-in performance report but is related to the entire account without the possibility to have a separate report per symbol or per EA. This is
HI EVERYONE i used DT OSCILLATOR in eabuilder.com to create a custom indicator but no matter what i change it doesn't show any buy or sell arrows any one knows whats the issue? OR just send me a dt oscillator with alert code please help me its very important to my strategy i attached both DT
Hey Guys, I want to get the ticketnr. after I opened a position to be able to work with it (close it) later. if (instruction == OpenLong) { double entry = SymbolInfoDouble ( Symbol (), SYMBOL_ASK ); if (trading.Buy(EAVolume, Symbol (), entry, 0.0 , 0.0 , "EA" )) {
I set up a free signal, but was disabled due to too many pending orders. Now this is the issue. Each day there will be a max amount of pending orders, 210 that figure can never be more or less, as old orders are cancelled before new ones are placed. Only a small % of each days orders are excecuted
I'm new in the vps EA thing, i still cannot win migrating charts onto vps, No error message , even when i cant see to check on the expert advisor window. need help to configure. its not Mql5 VPS
<Deleted> Moderator's note: If you want to share an EA or indicator in the forum attach the mq4 source code file