Expert Advisors and Automated Trading - page 147

To post a new topic, please log in or register
I want to have a list of fonts of my system  in my indicator Can you tell me how can I do that ? I know how to make enum list but I need a Library.
Two updates back these lines ware showed correctly. With the previous and current update trendlines are now showed randomly (most are missing) as can be seen in below snapshot! I did not mention this earlier and hoped this to be corrected in the current version however its not. Please...
So my understanding is that OnStart() is where you put trading algorithm for opening and closing positions but any changes in the currency pairs price during the execution of OnStart() are ignored. If, then, how would I set it such that once the positions are opened, my closing algorithm would...
hi i am setting up my accounts on a new pc and was wondering how i can activate my E.A and indicator on my new pc.the account is there but nothing else. how do i make this activation?
Is there a way to determine trend in MQL? I just started to learn this language and can't figure out how to do it properly. Thanks in advance.
StdDev = SQRT(SUM[(CLOSE — SMA(CLOSE, N))^2, N]/N) What is hte SUM and CLOSE????
Need some idea (MT5):  How to allow opening of a new order only after the last order has be opened for at least more than one day?
[Deleted]
    positions = PositionsTotal();     if(positions == 0) return(true);     for(int i=0; i < positions; i++)//for every position open       {        position_symbol =...
Hi, I am new to MQL 4 coding and trying to get up to speed. This is my first EA and the strategy tester runs successfully but just does not place any trades.  I have written part of an EA to enter a trade when the current candle has broken out of the 20 candle bollinger with 2 std dev then...
  Optimizing EAs in Real Time (22   1 2 3)
Dear Programmers, Can anyone tell me how to optimize EAs in real time? As no one has any clue why is this needed, I will post something very interesting. That all programmers will dare to change their perception of trading and move to a new level of trading.   
Hi, im solving small problem. I have code like if(OrdersTotal()==0): orderSend(Symbol()... OP_BUYSTOP....) Sometimes it happens that 2 positions are opened in same time. How is that even posible? Is it because new tick comes immediatelly after first one? I mean like OrderSend is just being send...
I stumbled on this website that helps code simple EAs. It is free and I hope mql5 permits  https://youtu.be/qOoEVoVSHf4
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!&nbsp;
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...
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.