Expert Advisors and Automated Trading - page 459

Anyone know why I might get this error in the middle of the week? 2014.05.21 15:00:35.759 Trades '1693028': failed buy stop 0.32 USDJPY at 101.625 [Market closed] The account works fine for manual trading just now and the bot works fine under tester. A new h1 bar must've been formed right before...
If possible what is the best way to create EA with different patterns of behavior through the wizard MT5 ? ie: To buy when short MA crosses downward the long one Thank you for listening
I can not create EA with variable parameters for optimization of technical analysis with the standard version of Visual Expert Molanis MT5. ie: Optimizing the period of two moving averages...or timeframes. Only available scales of general parameters of the EA as SL, TP, etc. Thanks for the help.
Hello, Is it possible to subscribe to a signal provider in MQL5 code, and ultimately subscribe on the same account to multiple signal providers? Thanks in advance
Hello MQL Community, and specially programmers, prefer in german language. I have concepted a strategy based on Linear Regression Indicator and calculate and build this one in Excel Calc. The Result are very intresting and now i think about how could it working as an EA. So im asking for german...
Hi: I have two questions here, and cannot find the solution (here and other places), hope some people can provide related information. It is about both MT4 & MT5 [1]. Basically, I want to monitor the slippage of every deals In MT4, only one order at one time can be placed (single thread, and...
[Deleted]
Hi there ! Can someone please give me a clue ? Nither F1 nor Alt+G goes anywhere! Regards MRC bool Testing()  { return(MQL5InfoInteger(MQL5_TESTING));  }//+------------------------------------------------------------------+ //| RETURNING THE FLAG FOR OPTIMIZATION...
I find that the documentation about the trade retcodes is a bit shallow, and I have some questions about some of them: 1. TRADE_RETCODE_REJECT - what are the reasons? is it an error? what is the difference versus the TRADE_RETCODE_INVALID and TRADE_RETCODE_ERROR ? 2. TRADE_RETCODE_CANCEL - when
[Deleted]
Hi there! Anyone has any experience on this? Article says the quality of JMA is very superior. https://www.mql5.com/en/code/427 Regards, MRC
Hi, I'd like to stop the expert running on a symbol 10 days before the expiration date, how to using SymbolInfoInteger(SYMBOL_EXPIRATION_TIME) please ?
I have several EA MT5 running on VPS. When I load the EA or modify properties of EA loaded in the chart and "accept", a error is generated: "Handle indicator is wrong"... and this so much with custom and standard indicators. The code does not give any problem in testing or optimization. The problem...
[Deleted]
Hi There ! One question please My EA have a flag called bool firstOrder to know if we have already sent one order to the market (and already executed). The problem is that if the EA somehow resets itself, this flag returns to true even if we have already sent an order. Can someone please tell me...
i want to subscribe signal but shows" The volume of copied trade operations may not coincide with the initial volume of trade operations at Provider side" how to solve this problem?
Helou I realy need good advice. I put my EA into Startegy tester, I know that chart objects are not created in Tester, only in visualization mode. So a tried it. I create FIBO object based on two MA. But the visualization creates only the second one from ELSE, do I use the if-else operator not...
[Deleted]
I cannot find the signal below in MT4. Anybody has any idea about this situation? [Edited by Moderator]
Would if be better to use datetime and calculate the future date of expiration or count using a timer to delete the pending order?
void LongPositionMoveSLTP(){double slb = NormalizeDouble(iEnvelopeUp[1],_Digits);double tpb = NormalizeDouble(iEnvelopeBtm[1],_Digits); MqlTradeRequest mrequest; MqlTradeResult mresult; ZeroMemory(mrequest); ZeroMemory(mresult);...
Hi, everyone I need a help to make my strategy in EA. Is it possible to custom the size of lot right after a position get closed in loss? for example if Lot_1 is closed in loss, then open Lot_2 if the Lot_2 is closed in loss, then open Lot_3 if the Lot_3 is closed in loss, then open Lot_4 if...
  Working with files.  (83   1 2 3 4 5 ... 8 9)
There have been difficulties with: #import "kernel32.dll" int _lopen( string path, int of); int _lcreat( string path, int attrib); int _llseek( int handle, int offset, int origin); int _lread( int handle, string buffer, int bytes); int _lwrite( int handle, string buffer, int bytes); int _lclose( int
Hi guys, I need to sort an array by values... or at least find the 2 minimun/maximun values of a range of data... I have the array (series array) daLow[100] correctly populated with the last 100 Low. This is what I have done so far: int iLowest1, iLowest2, iHighest1, iHighest2; iLowest1 =...
[Deleted]
Hi , I have a question: I subscribed a signal with a real account. My signal provider insert an order buy 0,02 lots and I find my corresponding order in my Platform with a buy 0,10 lots. The same with another order sell 0,03 and I see that my order with a sell 0,15 lots . Why?
Hello there. int digits_adjust=(m_symbol.Digits()==3 || m_symbol.Digits()==5) ? 10 : 1; m_adjusted_point=m_symbol.Point()*digits_adjust; Could you please help me understand why this adjustment is being done? In the context of EURUSD, we've noticed that for MT5 (expert advisors) 1 point is...
[Deleted]
Hi There ! Is there any way to run automatically, multiple tests using the date period in a moving window ? Any article related ? Example: From 01-jan to 07-jan From 02-jan to 08-jan From 03-jan to 09-jan From 04-jan to 10-jan From 05-jan to 11-jan From 06-jan to 12-jan Regards
Helou, I would like to ask for help, the compiler is screaming at me : "return value of 'OrderSend' should be checked" request.action=TRADE_ACTION_DEAL; request.type=ORDER_TYPE_SELL; request.symbol=_Symbol;      request.volume=ShortTradeVolume +...
m_adjusted_point =10; The variable m_adjusted_point in MQL5 standard libary should be changed to 0.00010, correct? m_adjusted_point =0.00010;
hey guys as explained in the subject line my EAs dont appear as options to select for backtesting even though they are in the experts folder. the only options i see are the EAs which come with MT5 like ExpertMACD and the moving average example. ive tried everything from reinstalling the program to a...
Does anyone know of a script/indicator to change the symbol of all open chart in Metatrader 4 ? Any help greatly appreciated.
Hello people. It is great that EA or indicator can send email from their Meta Trader Platform. However, before the EA send email, I would like to make sure the user enabled Email Notification on their Meta Trader Option. So I can avoid some errors. Does anyone know how to do it ? So far, no...
[Deleted]
Hi there ! How can I make one EA open a PETR4/PETR3 for example ? To place a long & short order(s), do I have to place both orders or MT5 has any special feature for L&S orders ? Regards, Marcelo
Metaeditor has crashed during saving and my new EA is completely GONE!!! Is there a way to decompile the compiled EA? Or do i have to start from scratch!? :( i was about to create a copy after this save as the version was showing some good results...... maybe Metaeditor stores .bak somewhere?...