Expert Advisors and Automated Trading - page 354

  DLL error 126  (2)
Hi, i'm trying to use a DLL from my EA in MT4 (Build 1010) i wrote a DLL using C++ with VS 2015  but i am keep getting Error 126 i tried to put the DLL in the Data folder (Build 600+ folders): C:\Users\XXX\AppData\Roaming\MetaQuotes\Terminal\XXX\MQL4\Libraries and i tried to put it in a...
input   int              SpreadsToCollect = 10;double spreads[SpreadsToCollect];  How do you do this? I get "invalid index value".
Hello, I got some serious troubles copying signals because my Broker (GKFX) sets the displayed Account Leverage in MT4 to 1:10. The Support answered that the technical reason for this is because they have different Leverages for each Symbol (e.g. GBP/USD is 1:200 and EUR/USD is 1:400) so they set...
  Expert Advisers  (3)
How to write a program code for a EA, to uncheck an ' Allow Live Trading ' box on the EA Common Settings window ( but not on the Platform Trade Permissions), whenever the Net Balance falls to a level, that you want it to disable opening trades. But checks the box back again, whenever the Net...
INDICATOR CODE //+------------------------------------------------------------------+//|                                  &nbs...
Hello, I followed this post https://www.mql5.com/en/forum/9233#comment_1627489 but it does not change lot (still trade0.01 in my demo account) could anyone please send me ExpertMAMA codeI can change lot size? Thank you very much!
I am following a signal and the lotsize my account keeps trading at is 0.01, how can I change this, the signal provider is trading at more than 0.01
Hallo Sirs, I have written an Indicator, which write a HTML File and I want to insert a Code in my Indicator to upload  this File to my FTP Homepage. is it Possible without webrequest?
Hi, I've recently started using fxdreema and I'm a newbie. I looked at many answers but couldn't find an answer to my question. Is there a way to setup EA to wait and to trade in certain conditions? Example: I want my EA to buy when cande close is above the 200 EMA but wait and not open any...
I have a good entry system and exit for trading, but I don't have time to stare at my chart until my exit setup appears. So, I'm wondering if it's possible to code an EA that will exit for you only? I'm not asking for free coding. I just want to know if this is possible before placing a job in...
hi, this ea has several errors when i compilation, please fix those errors and make this ea work.   anyone help please. thanks. 
Is there any way to use redis client in ea? Or is there any redis client dll that ea can invoke? Thank you guys, very much!
Hi, I developed an expert. As far as I know, the expert starts running when the price change . However, if the price change again, and my expert does not get to finish, the expert do not continues and another expert run starts. This happens when the market is under strong variations. So, under this
hi all, I'm searching for a EA that move the stop loss like a trailing stop but even when the SL is in a loo area. So if the starting price is 100 starting SL 90 "dynamic" stop loss is 10 when the price is 101 the EA will move the SL to 91. When the price get to 111 it become a norma trailing...
  Trailing Stop  (1)
Can someone please give me an example of how to use the MQL5 built-in class TrailingFixedPips ? I tried the following: #include <Trade\Trade.mqh>#include <Expert\Expert.mqh>#include <Expert\Trailing\TrailingFixedPips.mqh>input string Expert_Title = "toets8";ulong...
Hi, everyone, I am developing expert advisor. But there is an "invalid volume" problem in my coding. Below is the method I learn and think at mql5 articles. //+------------------------------------------------------------------+//| Check the correctness of the order...
Hi, I'm trying to get a formula to calculate trade lotsizes based on stop loss and a % of the account to risk. I know this has been asked a million times but I still can't get a formula to work. It will need to calculate the value based on conversion to the account currency...
Ola pessoal estou tendo dificuldades com a leitura de um arquivo TXT, peguei um programa q ja faz isso porem por algum motivo na hora da leitura dos dados a funcao entra em loop infinito. Poderiam me ajudar com o problema ou postar algum codigo exemplo. segue a baixo o ponto q entra em loop...
Is there a way to calculate the Average number of Pips per tick? I am new to coding in MQL4. I would like to check in my code if there is a sudden fast movement against my trade and close it out if true. Should I use the spread? Thanks for any assistance
  chart objects  (5)
Hello, Some of the objects that typically appear in Strategy Tester are not appearing in my live account. More specifically,  the entry arrows do appear but the exit arrows and the lines joining the entry and exit arrows do not appear. Also, the red dashes that mark the stop loss price and...
Hello,   The problem is, only, the back test for long period (like 5 years back) takes very long time not hours but days in back-testing... is it normal?? any solution/suggestion?   Thanks 
Hi All. I am a amateur trader for 4 years and still trading manuel. According to my  technical system  ı need to enter conditional sequentional pending order. For example. Step-1- First order:Pending buy (dont use limit order) order  with SL and TP Step-2 İf First...
Hi, Compilation : 0 error(s), 0 warning(s), compile time: 2485 msec 1 1 Attachement to a chart : 2016.05 . 26 18 : 16 : 13.167 MTea invalid EX5 file ( 533 ) Previous attachement to the same previous chart : successful. Any idea ? PS 1 : After check , all EA compiled from that
Hi Every One; I need to write a code to open trade as the following: I open the trade by end of the candle so I open sell if the close price more than the open price, and I open Buy if the close price less than the open price. so if I use the one hour chart , and the last price or the close price...
my robot is need h1 and h4 and D1 trend in same time, but I cannot any setting for this in strategy tester , can you help me?
I want a Expert to make the indicator changes color when the I open trade in the same currency close  
I'm not sure is it right or wrong? i try on backtest. i think it's strange. for example :  if pips loss below -5000 points. i want to set stoploss when rebound again it has to stop at -1000 points.   if pips loss below -10000 points. i want to set stoploss when rebound again it has to stop at -2000...
Hi all, What are the methods to retain a variable value if mt4 was restarted? i can only think of either 1. storing the information in the comment of an order 2. save the info in a csv file and read it back later Thanks 
QUESTION 1: I got a problem with OrderSend. The order was executed in  150063.782 ms It's too much. Take a look at the log: (I ommited the account and change the deal number on this log for security reasons..) OP 0 13:46:06.258 Trades '00000':market sell 1.00 EURUSD KJ 0 13:48:36...
Hi all,  I read somewhere we can draw trendline in indicator but the information is still very vague for me  Need help to clarify a few things   1. I assume it is true you can draw trendline with mql4. do we use obj_trend for this? 2.  is it possible to write an EA whereby...