Expert Advisors and Automated Trading - page 110

To post a new topic, please log in or register
I am new in programming in MQL4. My first EA make two ordersend on the same cross but different type. If I run It in debug mode step by step it is ok. If I run it in debug mode with F5 command it seize up on the second ordersend. If I attach my EA at window with double click on line of navigator it...
Hello, I have an EA and want to optimize it to give me the best result and I want to know if it is an option to change parameters automatically in backtest. All the best
Hey So iv been back testing an EA a lot lately. Watching different parameters play out. I like to play with spreads too. I average .5pips on account but like to test all the way up to 3.0 pips ( so 5 - 30 on tester) As of yesterday. I cannot adjust the spread. Well I can. But it does not test...
I have a problem with my EA because the spread of the currency that im trading is 5 , so, when the indicator give something ending with other number than 5 or 0, the error ocurrs   2016.10.22 13:29:38.787 2016.10.03 11:55:00   failed exchange sell 1.00 WINZ16 at 60739 sl: 60834 tp: 60584...
  ea competition! (20   1 2)
lets have a competition of our back testing results! 
I have this code in my indicator: #include "C:\Program Files\GKFX MetaTrader 4\MQL4\Libraries\htmcode.mq4" is it possible to set this path as Extern variables so that I can change it externally?
Why the ontester() function of mt4 is not working properly? I wrote this piece of very simple code that should give me an interesting way of evaluating a system. I used the genetic algorithm (by the way what's the difference between using it and not using it?) and started an optimization. I...
Just updated my MT4 version to build 229 and now I am not able to attach a debugger. "Debugger detected" them the terminal closes. So I thought I would give MT5 a go and I see the same problem. Looks like Themida Debug Guard. This poses an impossible situation for library developers like myself...
I've written a couple of bots for MT4 as Expert Advisors. I typically run them on my desktop. I'd like to be able to change some of their external variables while they are running. Is there some easy way to do that? Can they have any kind of user interface?
What are the best sollution to send data to matlab, then make calculations in it and return other data to MT? I saw many methods but mostly they are described few years ago or earlier. What ways do you use and can recommend as "working"?
hello guys am currently reading books on MQL4 to createy own EA and I have some questions to ask. first, I read where EA don't work when your computer are disconnected from the internet is this true? it means we have to be connected to the internet before our EA work.secondly, can EA work on mobile...
Hello, I want my EA to be executed on every tick and, if there is no new tick for several seconds, to be executed every xxx ms (for example 500ms). What is the best way to code this in MQL? Thanks in advance! 
I would like to write an indicator with someone. Please send me private messange and we can speak about details.
  Live and Demo (2)
Hello,  I recently opened a live account for the first time. And between the live and demo account, the EA is placing the orders the same. But when it comes to Closing the trade, only the demo account seems to close where it is suppose to, and my live account is not closing (still testing...
 Hi, I am trying to test some EA's to buy. However, when I am running the tests (pressing the start button), I am getting the following errors below.  2016.10.20 23: TestGenerator: unmatched data error (volume limit 3467 at 2015.04.19 22:00 exceeded) 2016.10.20 23:02:33...
Hello, int ticketId = OrderSend(...) always returns 1 for me inseatd of a (fake) ticket number. Is the the correct behaviour for backtests? I want to select the (just) opened order to read some information from it.
Hi to you all in the forum, I am now experimenting and studying mql5 for several monthsand despite a lot of research I could not find an example for my problem. The trading idea is that a buy signal occurs if one of twomoving average signals are positive and the RSI has first fallen below 30,...
Hi, is it possible to capture the dragging process of a horizontal line somehow? I can get the CHARTEVENT_OBJECT_DRAG event but this event only fires when dragging is finished. I want to capture the dragging itself, like mouse-move that is updating x and y position of the mouse...
thanks, problem  fix.
iam using an expert which make many trades at the same moment i need to limit this number to 6 or 5 maximum  is there any expert can help me or if it is a code  please bind it to a link explaining how to enter that code inside the expert     Thanks ^^ 
Very new to MT4. I have an EA that I am trying to backtest. If I click on Expert Properties I see 3 tabs: Testing | Inputs | Optimization On the Inputs tab is it possible to enable/disable certain parameters without having to go into the code and rewrite the entire EA? Thanks for any help! -Alex
hi  any one can provide me exact formula for lot size caluclation for CFD.  i searched alot but not helped to me can any body give me lot formula minimum lot size is 1.00 and lot step is 1.00 please check attachment for tick value and ticksize
I'm fairly new at the MQL5 language and I've got a problem I can't find a solution to. I've got a couple of promising strategies but when things are a bit volatile I can enter a position that gets closed out rapidly and then re-enters again on the same bar. This sometimes happens two or three times...
barialto
I need to turn a pro real time code .itf for the MT4 Platform mtq4 Thank you for those who want to help me. Miguel mail: freelance
Good Day, Just enquiring upon writing the code, the following errors pops out, "',' - unexpected token, cmd-some operator expected and OrderSend - undeclared identifier. Code is as; #define...
Hi, i am pretty new to MT4, i got 3 free EA and bought one EA as well, when i log on to my demo account, the autotrading and EA works fine, But when i log on to my Live account and start the EA and Autotrade, nothing happens. I tried with the same amount of money on the demo account as on my...
  String Split (5)
Good day, May i just enquire if i have a string sent via Pipeline where said string goes as ""EURUSD",OP_Buy,0.1,Ask,2,0,0" How can i split it into using String Split Symbol="EURUSD" cmd=OP_Buy volume=0.1 so on so forth using the following codes void OnStart()  {string...
So I am almost finished developing a system that uses mathematical relationship among multiple currencies (usually no more than 4)  and opens trades on those currencies almost simultaneously to allow hedging ... etc As it seems that I can only apply 1 EA per chart, my question is can 1 EA do...
Hello I having difficulty to get the SendFTP command to work on a custom indicator I am writing. For testing purposes I am just using this code, that should just create a snapshot and FTP it. The snapshot does get created however it does not get FTP and returns false ScreenShot("screen3.gif"...
Hi to all... I try to fiend an EA Builder software where I could import my own codes to modified by my self..?