Expert Advisors and Automated Trading - page 347

Hi all, I use MT4 for automated trading since a time. Very often I heard that the MT5 is better. Has someone experience by MT5
Hi All,  Please, I need help with my EA, attached. It only opens one order at once, even when I have multiple signals at once.  It will only open one order, and it will not open another on a different pair until the opened order has been closed. It has a Magic number, and I make sure that each pair...
I tried to use generic pointers to access the subclasses methods but I was unable to access the correct methods.  Can you help me to do it right? I expected the direct and indirect access with the same output. class Super {public:   void action(){ Print("Super");}};class A : public Super {public:...
[Deleted]
Hello. i've got some problems. The Expert advisors are running 6 months without problem in real account. I have 10 experts advisors running the same parameter,on the same broker,same MT5 Version,Same timeframe 3 of them gave me the following error : One of them gave me this error : (USDJPY,M2) array...
Below are some logs from an indicator in the .log file: "2 01:02:27.235 Custom indicator #VISUAL ORDERS GBPJPY,M5: removed 2 01:02:27.237 Custom indicator CCI GBPJPY,M5: removed 1 01:05:09.372 Mail: invalid SMTP settings (Tools->Options->Email) 02:20:00.873 TopIndicator USDCAD,M5:...
Hallo, Can anyone give and example for closing all positions using OrderSendAsync() with TRADE_TRANSACTION_ORDER_DELETE ? Thank you for any help
//Enumerations enum DateTimeToDays     { s1DAY = 1, // 1 DAY s2DAY = 2, // 2 DAY s3DAY = 3, // 3 DAY     };// Inputsinput DateTimeToDays Inp_Pending_Expire_Date = s3DAY; // Days till Pending Order Expiration//...
Hi, everyone. I worte down this code, but it doesn't work, can you find out the mistake please? #include <Trade\Trade.mqh>CTrade trade;int MyRSIDefinition=0;int MyEMA5Definition=0;int MyEMA10Definition=0;int MyStochasticDefinition=0;int OnInit()   {     MyRSIDefinition=iRSI(_Symbol,_Period,14...
I want to write an Expert Advisor that takes values (Stop Loss, Open Trade, Take Profit) from an emailed signal and places an order. Can this be done? If yes, how can it be done?
  Stop backtest  (6)
Hi guys, supposing I want to test my EA since 01/01/2015 to 08/12/2017 Supposing on 17/01/2016 there is a condition and i want my EA to fail in the test, how can i do that? In this way I can save time for the test instead waiting the end. Thanks
Hello, in MQL5 when i set this EA on MT5 in H1 and it' changes automatically timeframe (to Daily) and reset after some milliseconds. So the chart seems crazy. Not all computers have this problem, i have an i7-6700HQ where there is no problem, but on my aruba VPS and some computer there is this...
My EA wanted to query iLow, iHigh.. values and the terminal said 4073. Does anybody have any idea how to avoid this problem?  Thanks,
I need to use my own Close button in my panel. Then I tried to override CreateButtonClose(void) in Dialog.mqh file but I got this error: private member access error How can I fixed it and use my own Close.bmp instead of the default bmp file ?  #resource "\\Projects\\myPanel\\resources\\Close...
Hi, looking for an automatic trailing stop that can; - Execute console side (ie. MT4 terminal rather than setting a TS broker side), and - Will apply to any trade in any pair that is opened (either manually, via EA, or an external signal provider ). The following features would be a bonus too; -
Hi, is there any way to compare the results from our Expert Advisor with the "buy and hold" alternative. That is, if we buy at the first position opened by our tester and then we just hold that until the end of our test (this is useful because if we are testing a bullish market we could think our
I'm building a basic EA. I would like to enter a long position on the high of the last x hourly candle. Is the timeframe of the chart overruling the timeframe set on the EA? If in the code I calculate the high on the hourly candle (double HighEntry = High[iHighest(" EURUSD ",60,MODE_HIGH,48,1)])
Before i post a job i want to know if this is even possible. Can an EA take external triggers?  For example i use Sierra Chart to plan all my trades and am able to make my own alerts and they can be set to .wav files or to sent an email or SMS. Is it possible to create an EA with some dummy .wav...
>_< all the procedures the EA performs to copy large quantities of buffers and prices, works fine in demo mode. BUT the same procedure fails each and every time in tester. how to copy large number of buffers/prices in tester successfully ? (~ 350,000 buffer doubles) I guess the problem is, my code...
Do someone have some EA based on this Indicator? "SSL Fast Ba"
why does it shows up dpo to the chart so many times?? And what do you think is wrong? #include <Trade\Trade.mqh>CTrade   trade;void OnTick()  {double DPO [];double Ask=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),_Digits);double Bid=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID)...
how to adjust inputs in ea like automatically open trade etc
Hello all, I'm writing a EA similar to Martingale. But I encounter a problem while I want to re-calculate the "take profit" for all of my current orders. Here are the processes, 1. I set up the target total profit would be 10 USD at beginning before any order is placed.  2. Now, the 3rd order is...
Hello, I want to know can I subscribe my own signal from another broker? My situation is I have 2 trading account from 2 different brokers. Let's say Broker A and Broker B. I already register my signal from Broker A and mark it as Private. I can see it in My Signal page. How can I subscribe to this
Good day great developers, I would like to know How to make the demo Ea strategy tester to work only for few days??? I downloaded a demo of a certain product that demo worked only one day but when I downloaded mine it kept on working until today (1 Year after). I would like to know how to make to...
Hi everyone,  I just try to select the order ticket of largest lot order from my current trading pool, buying and selling. From some of sample just write like following, but as my understanding, it just return the random ticket rather than largest one.  Is anyone could advise me this is right or not...
Hi there, Im trying to set up a WebRequest in an Expert Advisory, wheras the server needs ~5-10 min to come up with the response. Even though I set the timeout to 3600 seconds, I get a "read timeout" after exactly 10 seconds. The following code can be used to reproduce the behavior for MT5 Build...
Hello to all. I would set the stop of an open position to breakeven, but I'm doing something wrong. Look at the code please and leave a comment if you find out the mistake. This is a part of the entire EA: #include <Trade\Trade.mqh>CTrade trade;#define EXPERT_MAGIC 123456double PatternTP2=0;ulong...
  Refund  (1)
Does MQL5 have a refund policy? In case person wants to unsubscribe a signal within lets say a week?
Hello all I'm thinking about getting a home server (probably second hand) for heavy backtesting, to take advantage of e.g. the Intel Xeon's large core and thread count. Two questions: 1. If I buy a server with two or more CPU's, each with several cores, will MQL5's optimization engine use both CPU's...
Hello everyone,I have a small problem with my EA, I would like him to close the winning position only on GBPUSD.but now he closes the winning position on all the instruments. can you help me please.here is the...