Expert Advisors and Automated Trading - page 107

To post a new topic, please log in or register
When I test my Ea,it show " CTrade::OrderSend: market sell 1.06 EURUSD [invalid volume]" ,how to solve it?
thank you guys I want to compare the value of the main line and the signal line in MQL5. i was doing like this in MQL4:-      if((iStochastic(NULL,0,5,3,3,MODE_SMA,1,MODE_MAIN,1)<iStochastic(NULL,0,5,3,3,MODE_SMA,1,MODE_SIGNAL,1))&&(iStochastic(NULL,0,5,3,3,MODE_SMA,1,MODE_MAIN,0)>iStochastic(NULL,0...
My EA creates, writes to, and reads from .csv files while it's running.  One issue I noticed was that if I open the .csv in Excel to read it, my EA will not be able to open it and write to it. Would it make sense to use FileOpen during initialization, and keep the .csv files open (and then close in...
Am confused with this  OrderCloseBy function, i thought it only closes one order by another but it is closing both orders at once.
Hi there, I would be glad if someone could me  help out: I want to organize the common/file directory into input and output subfolders, in order to read files there accordingly by my EAs. The manual says "The name of the file can contain subfolders". But it seems that I am missing something there....
  Hjälp (3)
Hej! Vilken sida ska jag vara på om jag ska komma gång och autotrada, och fungerar det inte på helger?
I have an algorithm to develop an EA. The goal is to develop an EA that will never get a margin call, but will always close in profit or with zero loss like grid Martingales do. My problem is I can't afford Freelancers to fully develop it and I would like to have it done before walking the long path...
  click button (10)
Hello, i want to provide a click button in my expert which behaviour is the same as any normal button. So, when mouse is over button and left mouse button pressed, the button should change into pressed state. Unfortunately, i get no such LBUTTON_DOWN event. The next useful event for this...
Hi All .. Firstly, I realise that it's not allowed to discuss Market Place products in the forum, and so I hope it's OK to ask some questions about a product that is not listed in the market yet. I have been running my EA for some time, and it has never crossed my mind to sell it. To cut a long...
Does anyone have a custom Messagebox class with a timeout they'd be willing to share?
hello everyone I was looking for an ea with the technique of the candle idnr4 but I can not find anything, I find it hard to think that anyone has done an ea about this method, being very profitable someone has some links to share by chance for mt4 please?
  Price_Channel_v6-ea (86   1 2 3 4 5 ... 8 9)
Hello. Today I come to propose a new method to you which proved reliable manually. I know that newdigital uses this indicator on its method, but today the approach is different . Here several weeks that one of my best friends trade with this method than it improved much and who is advantageous still...
simple HFT algorithm and research on arbitrage soft
Hi! all I would like to use Debug mode to check step operation of My EA and custom indicators. My English is very poor. I already read MQL reference and all topic about using debug mode but I don't understand....... Please tell me how to use debug mode step by step........PS I have tried many time...
I want to do arbitrage so I need to use 2 MT4 EAs tarding on 2 accounts with 2 brokers. I can run the 2 EAs on my machine on 2 instances of MT4, or ideally in the cloud on servers, but how can I make them communicate together AS FAST AS POSSIBLE (arbitrage needs to be quickly executed:-)? Here are...
Hello all I have a question about the OnTimer(). If the OnTimer() should trigger while the EA is in Sleep() will the EA continue to Sleep() or will the OnTimer() function operate?
I noticed, with the strategy tester in fixed lot mode, that if I set a value for Signal_Expiration other than 4 it makes some operations with wrong volume. I used the wizard with different strategies and the error repeats itself. #include <Expert\Expert.mqh>//--- available signals#include...
HEy Guys, i am looking for the code for the following factor. i would like, that my ea can calc 75% of the candle body.  Does anybody has a solution?
Hi guy! My ea can't entry lot more than 0.10 in cent account but it's no problem in standart account. This problem only for 1st entry. What should I change in ea code. Some one please help me. Sorry for my english
Hi i have a problem with my vps, i'm using the vps provided by the mt4 (webzilla), i migrated everything, no errors in the journal, but when my laptop is off, vps doesn't open any trades. What should i do? Thx Luca
Helo everybody, I am looking for a solution for my EA. For that i have serveral horizontal lines at my chart. My EA should think, that every line has the parameters. Does anybody know a code for this? so for example : I say if Close is higher than X1 (horiontal line 1) and when the price decrease...
in Ontick, ordertype don't change when pending position become open.
Hello Guys, Anyone has RSI EA which opens order when RSI crossing 50 level
I'm creating an EA that is meant to be run in fullscreen mode (F11), but I would still like to display important messages from the Expert tab on the chart, more than just Print(message), since it's easy enough for me to duplicate those messages as Objects. Is there a buffer or command that someone...
Does anyone know where to find EAs to trade candlestick patterns????  thanks!!!!
I am trying to get values from Sin Fractal indicator which has the input parameters shown on the image. Below is the code I tried:       double sinFractal=iCustom(NULL,0,"Market\\SinFractal 7TF",         "",         2,         1.0,         "",         0,         PERIOD_M15,         PERIOD_M30...
HI, I'm looking for the "Best EA" in the marketplace for metatrader 4. I have got this requirements EURUSD as a minimum, Timeframe 5m to 4 H, High Profit factor. 2+, Low drawdown. Meaning no grid, Martingale etc, Can be ruin on a small account 100 USD. Not a must, You have great expirence yourself...
Please with respect to the great coders of this forum, i need a code that will output the least/highest value of a given line indicators like Moving Average for like 20 bars back in a given period. just like the case of High[iHighest(NULL,0,MODE_HIGH,20,1)];
Hello Have this problem in MT5/MQL5 (64bit on W10 64bit) only (note: the same code works in MT4/MQL4 (32bit on W10 64bit)): I need to pass an array of handles to kernel32::WaitForMultipleObjects; the function is defined here: https://msdn.microsoft.com/en-us/library/windows/desktop/ms687025(v=vs.85)...