Expert Advisors and Automated Trading - page 90

To post a new topic, please log in or register
Hello is posible to use File functions with flag FILE_COMMON on MQL Cloud Agents?? Thanks
Hello! I'm using the last version of MT5 (build 1881) and I'm having some troubles in strategy tester with a custom indicator with 7 buffers. The indicator works perfectly when I put it in the chart and works fine too when I put it in an EA and runs the advisor in real time mode. When I run the EA...
Hi Anyplace on the web that you can get those strategy tester reports evaluated? Reports do a find job of the basic details if you only had one symbol on it. I love the amount of details you get with myfxbook.com and others but you cannot upload a statement as far as I know of. Anyone had any...
Hello  I wish to write an EA that sends a File to a server. I am aware of SendFTP but do not want the user to be aware of the FTP details of the server as via SendFTP the user has to specify them. Hence can someone provide a method sending a File to FTP sever where the server FTP details are  coded...
I was looking to import historical data to several custom symbol as quickly as possible and thought about it: 0. Open the file 1. Read the entire csv file 2. Convert entire file to rows 3. Convert all rows into cells 4. Convert all cells to time, open, high, low, close, volume 5. Import all data to...
In the ExpertSignal Class of the Standard Library we can use the method PatternUsage (sets m_patterns_usage) if we want to use specific market models from the signal modules. The method has one parameter which is a bit mask. I don't know how to set up the bit mask correctly. I found this thread...
Hi everyone,  Does anybody know how I can make my EA click to the one-click button rather than using OrderSend() function in the code?
Hi, I have tried this code but I seems to get errors: static datetime oldTime;void OnTick(){if(oldTime != Time[0])      {      m_Trade.Buy(lot_size,_Symbol,Ask,(Ask-300*_Point),(Ask+500*_Point),NULL);      oldTime = Time[0];      }} 'Time' - undeclared identifier  1 error(s), 0...
Hi at all! i'm in test phase about 3/4 EA that i develop. For each 1 EA i examinate a poll of 38.000 - 45.000 test. so 1 session of complete backtesting of 1 EA need time as 8h - 12h (it change for result requests that i use). In this scenario i prefer disconnect MT4 connection (with account not...
I have an EA that I already use both on demo and production accounts. The EA works as expected on those accounts. However, I´m having issues with strategy tester. On ST the trade results are not accounted. All the trades appear in the history tag with the correct entries and outs, but the financial...
My EA uses some indicators that open subwindows (volume, RSI, Bulls bears, etc). How can I hide these subwindow indicators? It is hard to see the candles with a lot of subwindows... Tks by advance!
How to get info from times and sales? I know that has MarketBookGet() for the market depth, but not for times and sales.
Hi Everyone! i'm a beginner and i'm trying to create an EA which uses 3 Moving Averages. First i was using 2 MA, no Problem. But there a Problems with 3 MA. The Code: if(timestamp == iTime(Symbol(),Timeframe,0)) return;  timestamp = iTime(Symbol(),Timeframe,0);   double maFast = iMA(Symbol()...
Dear (human) experts, I'm struggling to solve this issue with my EA (read several topics/help and tried to use different EAs). I'm running a backtest, but the my sl/tp orders are not executed. They remain active and the prices seem to be frozen. I don't know if this is an issue with my broker, but I...
hi there my EAs keep on coming and making trades even after i closed the charts and deleted them and closed all the orders.i am using MQL5 VPS.please help me out!
Is there a way to buy and install an EA on MT5 running under Wine?
Hi guys. I am trying to make a dynamic trailing stop. Instead of moving the stoploss every point in profit, it only moves the stop loss after X amount in profit. And amount of stoploss must be equal to distance between Takeprofit and bid. For example When price reached WhenToTrail variable, EA must...
Hello folks! According to documentation, MarketBookGet() has to be used after the EA was subscribed to book using MarketBookAdd(). So, we have the event OnBookEvent() always when the book changes. What happens if I use MarketBookGet() without subscribing, out of OnBookEvent()? I think about...
Hello Everyone, My mql5 is multi currency correlation hedging, so my EA analyze many other currency pairs. The running of EA depend on incoming tick of the chart that I put the EA. Sometime the price of the chart which I put the EA is not move, so there is no incoming tick which make the EA not...
Hi all, I am  developing multi currency EA and trying to implement trailing stop functionality in EA.  I need to check pip difference between current price and position opening price  and if the difference is more then N number of pips then change stop loss to specific price. For this purpose i was...
Hi all, I am using MACD indicator in MQL5. The problem I am facing is MACD is giving different values in code then front-end. But the value I received in code is as follows:  -0.02428525001140258 please help. Thanks
Tjahjadi Budiali2018.08.11 08:40 Dear Anyone, Can someone help to convert this mql4 to mql5 for open trade and close trade ? This is the mql4 for open trade that I want to use in mql5 but please using OrderSendAsync() :              string koment = komentar + DoubleToStr(MarketInfo(Pair1, MODE_ASK)...
Hi All, I have recently purchased an indicator online, and it has no input parameters. Trade signals are up & down arrows, buy on up and sell on down arrows. I used icustom to call this indicator to get up & down arrow. On testing I found only sell trade works fine although up arrow appears on chart...
Hey Gentleman , would it be possible to code an ea which does the following : 1)drawing a box for a certain time period ..for example  7.00-8.00 am  or 3.00-5.00 pm (start and end time of the box should be adjustable ) 2)after the box is drawn the ea should place 2 pending orders .. No.1 = Buy Stop...
How to get the pointer of an object by name?I created a local object in a function using the new operator and added it to a CObject array declared in global scope. Now in another function I want to get the pointer of that object by the object name.Is there a function that will do this or will I have...
hi. I reinstalled meta trader 5 and during test my expert, this error accures. how can i fix it?
Moved indicator window up by moving indicator code to the top in template.tpl file BUT cannot drag trade levels anymore. How
Hi All When I do backtesting, OrderSend sometimes failed to open trade, but I got no error (e.g. error 0) when I use GetLastError() to check. Why is this the case? what could possibly wrong in here and fail to open trade? Many thanks
  EA disabled (1)
If the EA is in-active for about a week , does it automatically becomes dis-abled ? Under which situations does the EA disables it's self? *NB: The EA is on a VPS platform.
hi I have an expert that open and close orders automatically.  is it possible to prevent modifying orders (close orders that created by expert) manually? i don't want to allow user (with the master password not investor obviously ) to be able to close the order manually after it is triggered by...