Expert Advisors and Automated Trading - page 13

To post a new topic, please log in or register
I have problem with ObjectCreate in MQL5. I coded as below and it seems working in backtest mode. ObjectCreate(_Symbol,iTime(Symbol(),Period(),bar)+":Arrow",OBJ_ARROW,1, iTime(Symbol(),Period(),bar),Top_Level); But,when I actually put the indicator to real charts,arrows are not created. And...
Hi ladies and gents.  I want to add an EA to the market. I've done all steps, the last one do not let me through - automatic validation. When I submit all data, and EA especially, for the 'human' validation, the system says that my EA does any order on the test data, so I have to improve it.  The...
Hello guys, I am trying to use this script, but i got some issues which are: line 19 until 24 - "some operator expected and line 45 - variable "shif_open_close" not used. Can I have a little help from you?? Here it goes the code:...
Do someone know how to make ChartWindowFind() returns correct numbers even if I am using multiple indicators with same name? If I do this,ChartWindowFind() returns same number. Or do someone know how to know window number without using CharWindowFind()?
I tried to test my strategy in the MT4 tester. My strategy  requires some minimum amount of bars in the window. I downloaded the full archive so my usual trading windows  have the full hystory and even the testing window seems have the full history. But when I insert a piece of the code into my...
Hey, new issue. I send a market order and try to read the data immediately after the order has been sent - in synchronous mode - not async. So I use PositionSelect() afterwards, using the ticket number which is returned but get return value false. But when I use OrderSelect() instead, MT5 shows me...
Hi, why would an EA appear to work well in strategy tester in that the EA logic works but fails on forward testing by not following the intended logic?  Anybody have an idea. 
I'm trying to find an EA for the mt4 platform that will immediately open a new pending order with the same specs as the original trade that closed for profit.  For example, if I had a buy trade enter on EUR/USD at 1.1300 and a TP of 1.1310 which closed for profit, I would like an EA to immediately...
Hello, Why i don't have the same volume with my signal subscription ? Thanks a lot.
Hi Guys, I am looking for an Expert Advisor which is able to lock my trading account for a specified time under specified circumstances. For example hitting Daily Loss Limit -> No more trades for the day After X consecutive losses lock account for Y minutes Only allowing X Position Size Can anybody...
Hi guys, I'm currently in a bind with my EA. Everything was fine and dandy until i tried adding an auto lot sizing function or money mangement The following are the codes I've added in and got me the error. input bool isSizingOn = true;   // Auto Lot Sizinginput int Risk = 1;  // Risk level (%)int...
Hello everyone, I'm trying to create a library that can open trades the same way a trader sitting in front of MT4 will open trades. So far, I've been able to bring up the order window and simulate a keystroke on it. However I've been unable to edit any of the fields or even click on the "sell by...
Hello everyone I coded this very simple DeInit  void OnDeinit(const int reason)  {   if(reason!=3 || MQLInfoInteger(MQL5_TESTING))      if(!MQLInfoInteger(MQL5_TESTING))        {         DeleteObjects();        }   return;  } And when compiling, it returns the following errors. Why does it do that?...
When you purchase an EA here, do you receive the source code? Thanks
Hi, I reported this issue already one year ago to MetaQuotes but never got a helpful response. Sometimes - don´t ask me when - a simple execution of functions like iClose(), iTime() or CopyRates(), CopyTime() whatever takes more than 30 seconds until the code-pointer returns. And of course, when you...
Hello I would like to know what is the way in which the profits are calculated in a martingale robot without stop loss, for example if it makes 4 rebuys with -30 pips distance between each trade and the main tp is 7 pips. How would it be calculated the total profit so that the final result is...
  edit alert (5)
Hello guys how can i add deals volume to condition of alert edit? (see attached picture) please help me.
Hi, I have spend months learning MQL4 and have just finished writing my first EA, or so I hoped. Unfortunatly when I go to test it in the strategy tester, nothing happens, it takes no trades, shows no results, and doesn't run through the chart. I was hoping someone here could help me locate my issue...
Hi All, I am trying to transition from MQL4 to MQL5, yet some thingsare still confusing me. After having created a custom indicator I created a simpleEA to just call it. Using both iCustom() and IndicatorCreate() there is noindicator output (I am using only buffers no objects in my indicator)  on...
How can i fix this? 98        for(cnt=OrdersTotal()-1;cnt>=0;cnt--){                                                99 "error"      OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);100           if(OrderSymbol()!=Symbol()||OrderMagicNumber()!=MagicNumber)continue;101...
  how to close a position (15   1 2)
Hello, how to close an opened position? For example, I opened a position in this manner: request.type=ORDER_TYPE_SELL;request.price=SymbolInfoDouble(Symbol(),SYMBOL_BID);   request.symbol=Symbol();request.volume=0.1;request.type_filling=ORDER_FILLING_FOK;request.sl=NormalizeDouble(stop_loss...
Hello Friends  I have a interesting problem.  This is my source code. This codes are work when i use it in mql5 script file. I can close all positions. but this same codes are not working in expert advisor. I got error like in screenshot. it is really nonsensical problem. I open and...
Steps: 1. Define the property like this: #property version "1.00" 2. How can I get version from code? Like Print("Current version: "+property.version)?
  MQL5 indics (6)
Hello everyone I start porting an MQL4 EA to MQL5. It is a multipair EA, running 28. It uses 4 indicators. For the use of these, is it better to create the handles once in OnInit () in a table 28X4 or is it possible to create them in OnTicks () on the fly before using them? Will it create a...
Rented VPS from https://www.mql5.com/en/vps for a year, paid in advance. Tried for a month, have some issues, requested support from "Service Desk", no response at all .... :( Can't cancel it now, since it would mean the whole amount for a year won't be refunded. It sucks. Stay away from https://www...
Hi, everyone! I've tried to run an optimization and the EA Journal at the Strategy Tester got flooded by the messages shown at the picture. While debugging nothing goes wrong and now I don't know what to do. Any ideas, guys? Best regards.
Hi everyone, I am trying to implement a method for modyfing open pending Orders (mainly SELL STOPS and BUY STOPS) similar to modifying an open Position like a trailing stop-loss algorithm would do. The objective is to obtain a better price than the market. Anyway. The code draft (work under...
Hello I am looking for a freelance developer who can convert an indicator I have. The indicator is an automated fibo. I have the source file I basically want to convert the indicator into an EA that will take trades for me when it changes direction, with stop loss and take profits
With this code I always get in BOLL_U and BOLL_L the values of the average of the Bollinger, buffer 0 according to the doc, whereas I specify that I want upper, buffer 1 according to the doc, and lower, buffer 2 according to the doc. What did I not understand? double CCI[],ATR_D[],ATR_T[],BOLL_L[]...
I've turned off auto trading on both the platform and the EA and deleted the EA from my list but still the EA is placing trades. Can anyone help me turn it off as it's loosing me money. Many thanks