Expert Advisors and Automated Trading - page 190

To post a new topic, please log in or register
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...
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...
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...
beyondream2013
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...
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 =...
gilly
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...
Hi There ! Is there any way to runautomatically, multiple tests using the date period in a moving window ? Anyarticle 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...
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?...
I am trying to program a strategy in MQL5 that requires the following history data: Bid bar history data required: Open High Low Close Volume Ask bar history data required: Open High Low Close Volume By history I mean a few bars previous to the current bar. If...
Looking for mirror MT4 -> MT5 and MT5 -> MT4 Any suggetstions?
Hi there! I have an EA with iMA,iBands and iMACD. Any idea why iMACD is presenting one error in the signal line? Documentation says nothingabout differences between buffers. (...)input string temporar4=" "; // Configuração do MACDinput int...
Hi there! Is there any way to changeon variable of an EA from "outside" without interrupting its execution? Example: If I havevar1=true and want to change to var1=false, is there any way to do this whileEA is being executed? Regards, MRC
I subscribe to a signals but the MT4 didn't link I get some help from you for a similar problem before. That is the account and signals PIPS maker 123204364 VantageFX-Demo
Hi all, Any idea why PositionGetDouble(POSITION_VOLUME) does not update its value after being stopped by SL order ? void OnTick(){(...) if(PositionSelect(my_symbol)) // seleciona a posição     { ContratosAtual=PositionGetDouble(POSITION_VOLUME);...
Very funny, I have 2 transactions that was closed automatically while it is still open on the signals provider and a transaction that was not open on my account ... It is normal that it is not reliable. Is signals can be reliable or always need to be double check all the time ?
The Alligator’s Jaw, the “Blue” line, is a 13-period Smoothed Moving Average, moved into the future by 8 bars what does it mean by `moved into the future by 8 bars'? I did not find a corresponding concept in MA definition.