Expert Advisors and Automated Trading - page 338

Hi MQL5 experts, Can you please point me in the direction of some documentation that explains how to retrieve data from the MT5 economic calendar into an indicator or EA. Regards, Tim
I had a very curious problem with a multidimensional array which I just can't figure out. I first made an array like this: double MyArray[][2]; So I had an array consisting of dimensions with 2 items in the second dimension, both of which I used for some calculations in my code. I then looked at the
For the sake of User Experience, and my EA have a little screen over the Main Chart, I would like to give the user a more visual and easy way  to access again the Properties/Inputs screen of the EA, without counting on him to find and click on the traditional little icon on the top-right corner of...
I rented an EA that gives me 6 activations. In my tests I used the 6 activations in demo accounts. Now I need to remove one of these activations (demo) and put it in a real account. How can I do this?
Ok, here i'm stuck on any idea on how to do this procedure. [not looking for codes, you see. just any help on how-to] ---------------------------------------------------------------------------------------------------------------------------------- Short version of the question : How to count number
Hello there, I am using Profit EA Automation in my trade, but i discover that when i close an order in a profit, another order is automatically placed again. Please any idea what is causing this and what can be done to stop it re-occurrence. Thanks
Hey guys, I am struggling with coding a trailing stop loss in my EA in MQL5. Could anyone please help me?  I would be extremely grateful. Thanks in advance, Martin //+------------------------------------------------------------------+//| MACD crossing the Signal line//| WORKING ON Trailing Stop Loss...
Is there any way to pass a parameter when using macro substitution for event mapping? #define ON_EVENT( event ,control,handler) if (id==( event +CHARTEVENT_CUSTOM) && lparam==control.Id()) { handler(); return ( true ); } So would it be possible to pass the equivalent of OnClickButton( myParameter
i have a website contains trading signals how do i let my ea read my website contents? i have used function WebResquest to do that but all i receive is numbers Take a look at the example provided at http://docs.mql4.com/common/webrequest i have added Alert(result[0]); to see what server respond...
Hi, I'm new to mt5 and was wondering if you guys could help me out, I had a really good backtest result and then all of a sudden it stopped working and to add insult to injury every time it fails it makes that squeaky duck sound (I hate that sound lol). Here's a partial log: Passed in 0:00:00.000....
Hi, I would like to know if I can only allow certain account IDs to use my EA? I am just in the process of learning coding and have no idea yet if this is possible. Thank you.
here is an indicator code, I need to translate it to tradestation el. Correct me if I am wrong...the formula for the indicator is the difference between value2 and value1, or Rezalt=value2-value. The calculations for value 1 are variable weights*the value of the close from current close to close on
Hi guys,  I have been trying to implement a code which will be able to adjust my lotsize based on the percentage of equity. I am not getting any errors but i am getting warnings which is preventing my EA from running in the strategy tester. double Lots=0;double Equity=AccountEquity();double...
Hi guys, Im quite new to mql5 ,so im having a few problems with making the EA trade.Im attaching the code.int OnInit()  {//---   point=Point();   if(Digits()==3 || Digits()==5) point*=10;   ExtTrade.SetExpertMagicNumber(MA_MAGIC);   ExtTrade.SetMarginMode();   ExtTrade...
Hello friends, I have a little question... I need to know a event to catch when an order closes... Could anyone help me?? Thanks!!
Hi guys,I literally spend an hour to find a service provider that offers me a online verification for my expert advisors. Do you giys know someone on the web that offers a service which let's the expert advisor be deactivated or activated when I wish???? Thanks 
Hi guys, My EA does everything correctly except for closing orders. The EA compiles with no errors. Do my CloseAtMiddleBand(), closebuy() and closesell() functions look ok?  //+------------------------------------------------------------------+//|...
Dear friends, Suppose I have a pending sell limit order for a certain instrument in a stock exchange market. If I run an OrderSendAsync() command to cancel this order and, shortly thereafter, I run another OrderSendAsync() command to send a market buy order for the same instrument, is it...
Hi, I back-tested the same code (pseudo-code) with same broker's data on Trading-view web-platform and MT4 platform. Trading-view  shows 200-300% profit per month almost consistent. However, MT4 gives very small profit, and big losses. Could anybody explain why there is so big difference. Thanks.
In the Toolbox/Experts, it says that " indicator is too slow, 6000ms, rewrite the indicator" , does it affect the operations of the EA's? NB*The indicator is not part of the EA but is on the other graphs.
Hello I'm a beginner just started to code my very simple EA for index trading and get confused with an error with my code. 2018.06.28 09:12:33.787 2016.12.10 13:10:00   failed market buy 0.01 Volatility 75 Index tp: 21257.4562 [Invalid stops] And here's my code :...
I am trying to test an EA performance in XAUUSD in 2007 at 1 hour timeframe. I have checked in the history center that I do have 1 hour history data of XAUUSD in 2007, but no data for 30min, 15min, 5min and 1 min. However when I run my strategy tester in visual mode, I saw the candle stick in the 1...
I have an EA but want to make the final decision as to whether to buy or not. So having detected a buy/sell condition the EA should request entry confirmation with something like: "Buy condition confirmed - submit order?" and then allow me to give a y/n response. Does anyone have a code sample or...
im looking for a trading utility to open and close trades quickly in mt4 using offline renko charts.  do I need a programmer or can I buy it at the market?  thanks for your time.
[Deleted]
Hi, I have rented an EA since 3 months but at the end of this month my rental period will come to an end. I've decided to buy te EA but can someone explain to me how this works in practise? After buying, do I need te download it again? Can I just leave te EA running that I rented before? Any ideas...
I know and I have read alot of threads on it which were old which basically stated that the commission rates of the broker remains hidden and is not accessible to do any calculations until after a trade is made. Any luck with this?
Hi I've got an EA set up on a Demo Account and then set to run using the VPS services (here) and in Parallel I also have the same EA set up on a live account via a  VPS This morning something potentially dangerous happened, my Demo EA just kept opening the same trade until the balance was empty and...
Hi, I 've done a simple indicator using Dialog. Working fine, no errors. I am now trying no create an EA to use it's signals. Once I load the EA I get the alert "CApp Dialog: find sub window error". My indi has no sub windows. I searched deeply for it but couldn't find any related information....
How is it possible for EA's to be still active when EA's has been dis-abled/removed from the graphs. I would first remove the EA from the graph, then synchronize the graphs and experts. All EAs will be dis-abled then I able the auto-trading again. Everything will be green . But after all that, I
Hi master trader, , I want to Ask about to indicator zigzag. how to call indicator zigzag for MT4 And how to use it in order to open position automatically.