Expert Advisors and Automated Trading - page 48

To post a new topic, please log in or register
Hi I have been going through some strategies . So I come to this triangular hedge arbitrage strategy . What everyone is saying is that if we take 3 pairs like EU ,GU , EG   buysellsell  or sellbuybuy the pairs . So concept is simple . But the thing is that Lot  calculation  place a kind of important...
  EA turned on by script (15   1 2)
Hello. Is it possible to activate EA through script? Basic idea is: EA is active (or just present on chart) with the spread below some value only. If it's higher then script turns off EA and bring it back when spread falls to desired level. Any examples of such solution? Regards
  Trailing Stop (2)
Hello, i have a question how to use the Trailing Stop i found inside the inlude following files now i try to use a trailing stop with fixed pips. the function already exist i used the include  #include <Expert\Trailing\TrailingFixedPips.mqh>#include <Expert\Expert.mqh> and now, how i can use the...
Hello, I am testing my EA strategy on two different computers simultaneously, one of them is MacBook Pro (I run Windows on it), the second one is a very powerful workstation. When I run exactly the same test on both, the charts are different. What happens is, the workstation opens bars exactly at 00...
Hi, I am in the process of developing a strategy and just have a question about Orders. My idea is to have multiple take profit targets depending on the trend and then reduce the trade size. Thus is it better to open multiple orders or is it more advisable to update existing order? This would be a...
Hi l rented two apps when l tried to download apps only one notification  at the top comes up not (is Meta Trader opened ). downloading demo version ok trying to download app can help team help
Hi, everyone!   Is it possible to call (create, raise) pre-create dialog by MQL API? (without external DLL click emulation)   I mean this:
Hi, I am trying to generate a trading strategy based on RSIs across different timeframes, however, there seems to be some issues when I backtest it. The EA doesn't seem to interact properly with the RSIs from different timeframes. For example, when I select "H1" and "M30" in "Period" in Strategy...
I am trying to optimize the period of an indicator using the optimizer in the MT4 strategy tester. The indicator will have varying initialization periods for each optimization run. Is it possible to configure the strategy tester such that trades can only open after the longest initialization period...
In MT5 strategy test, the FileOpen() function deletes the files.  Why is this happening and what is the solution, please? handle=FileOpen(FileName,FILE_CSV|FILE_READ,',');
Hi all I am developing an EA in MQL5. I am having issue in removing TakeProfit of open position. I am using following method. CTrade trade;trade.PositionModify(symbol, 0.0, 0.0); I am getting [invalid stop] error. Please help.
Hello guys, My EA creates graphic images from some data values and operations and save them as BMP. But, as it create a lot of images, each one with around 1MB, this is consuming a lot of disk space. So, there are a way to convert these images in JPEG format? Or at least, save them directly in JPEG...
double ordertotalb_0() //countung buy orders{ double totalb=0; int i; for(i=OrdersTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) {...
I created some .mqh files and left them in the Include folder (not a subfolder of the Include folder). I tried calling a class from the .mqh in my Expect Advisor but I keep getting a "undeclared identifier" error. Where should I place my .mqh files to be recognised by my Expert Advisor?
Hi all ! Searching a good Trailing stop for an Scalping EA, i found somes here, but i would like to know if one of us found a good one, that works fine ! if u have link, and if it's simple for configuration, will be great too ;) my goal is to have fast SL moves when doing profits (SL move each...
Hello Everyone,
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:...
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&nbsp;&nbsp;&nbsp;&nbsp; { s1DAY = 1, // 1 DAY s2DAY = 2, // 2 DAY s3DAY = 3, // 3 DAY&nbsp;&nbsp;&nbsp;&nbsp; };// 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; -...