MQL4 and MetaTrader 4 - page 1131

To post a new topic, please log in or register
Hi, I have searched the forum for this problem but found no workable solution: When my EA (on a live account) encounters an 'Old Tick' error (for closing all market and pending orders at a specific time),the EA simply stops working and does not re-try until I manually intervene(typicaly several hrs...
Good day to everyone! I've been using the tester strategy to make optimization for last two days. Obviously, PC slowed down while calculating; but now it is still very slow (BTW I hear the HD running continuosly...) while using MetaTrader4 and I'm not using any optimization or EA. Does anyone know...
Okay here's the order execution code from my EA, the problem I'm having is that it only seems to open orders in the direction I put first in the code... So for this code it only opens short positions, however if I swap the Buy and Sell orders around it opens long and not short positions. I just get...
  Why does 4/6 = 0 (11   1 2)
Okay anytime I divide anything like 4/6 or 5/8 i get 0. Does MQL4 automatically round fractions down to 0? This is a real pain because I need to base my buy orders on a number between 0 and 1. Basically I'm assigning each indicator a weighting, adding up the weightings for buy/sell signals and then...
Hello all, I'm PatriotStef the new guy, thanks for accepting me. I basically know nothing about MQL4, but I do know QBASIC and HTML - so whether that means anything, I'm not sure. I will learn MQL4, of course. Has anyone here ever heard of the ICWR phenomenon? It uses Fibonacci levels and it...
Hi there, is there a way to build an indicator that draws a line for each tick? if not possible, how to draw a candle (open,high,low,close) in the indicator window best regards
Hey guys, I've been looking at this strage issue for a couple of hours now and still can't find a solution, so I am asking you for ideas. I am loading a list of symbols from one long string using StringSubstr into a string array. Then I use this for all the symbols:     if ((MarketInfo(symbol[j],...
  RentaSignal Service Website (25   1 2 3)
It is the link to RentaSignal Service Website: Rentasignal | Rent a Signal Webdesign may be changed but main home page looks like the following: We can use menu to go to see the signals: Commercial signals: Or free signals:
I would like to convert data from Yahoo Finance to MT so I can use all MT4 technical analysis benefits. Anybody knows how to do it using MT native data feeds API? Any documentations regarding MT data feeds format will be very appreciated!
Pair : GBPUSD TF : H1
Hello, I have this typical Martingale EA except I want to tweak it! Basically what I want it to do is instead of closing a position when it hits the SL then doubles the lots, keep the positions open and only close after TP is hit. So the pair can move against me, say for example, 5 levels and the...
Text files are read from the symbol you want to do is purchase buy or sell. But 4106 gives unknown symbol errors. Text files are within the symbol USDCAD USDJPY GBPJPY assigned to the string variable named text file is read, the St. ticket=OrderSend(st,OP_BUY,HedefLot,Ask,3,Ask-Stopx*Point...
I'm working on coding my manual strategy into my first EA, and I've run into a problem while back-testing. Originally, my code was opening a new position with every tick (when criteria was met). This resulted in multiple positions, when I only wanted one position (eventually eating up all margin in...
Hello, I've been working on a EA for something of a grid system. I finished the EA, and ran it on the Strategy Tester. It ran perfectly fine, and trades were placed normally. But when I when I try to run it on a chart (yes I do have "Allow Live Trades" on) it won't place a trade. I've been beating...
  Basket Trading EA (26   1 2 3)
Early days but drawdown is looking very promissing.
I've only just started in the forex market a few weeks ago and have written quite a few EAs in the last few weeks. Have had a particular error which occasionally appears with one of my EAs. I have the same EA performing on 4 different symbols under the same MIG demo account. I've noticed that...
So far, the only way I've figured to run the code is to attach it to a chart. If I'm just fooling around with learning variables & such, is there a way to just run a quick test of the program in metaeditor rather than having to attach it to a chart? I am working with EAs primarily. Also, I...
GWCR EA take part in Championship: https://championship.mql4.com/2008/ru/users/Lovecraft/reports Login: 600360 Password: MetaTrader Server: demo.metaquotes.net:443 Also in EA Competition: http://acompetition.love-craft.ru/?ptp=1 The second is a competition on real accounts. Login: 49471 Password:...
Hi, I am looking for any MQL4 programming books which I can either download or buy. I have tried to download Sergey Kovalyov's book in English, but it always appears with an error. Any help would be appreciated. I used to program in the past in Assembler and C,C++, but am rusty. Thank you, Robert...
Hey Folks! I make 100% returns every month using my 3 different Expert Advisors - Click the link below to see the statement: http://www.forexfundas.com/performance/prem.htm I would like to participate in EA Championship. What is the procedure? I am confident that i can compete with the other...
I can use some help on creating an OrderModify in EA. I am using a buystop as an entry, but would like to modify with the new entry. Currently EA is creating another BuyStop. //Buy if (Order == SIGNAL_BUY && Ticket > 0) { OrderSelect(Ticket, SELECT_BY_TICKET, MODE_TRADES);{...
Hi, I've looked through many of the programs in the Code Bank and all that I've looked at have NO COMMENTS in them to teach beginners how to program in MetaTrader. There is the book (see link above) but it starts teaching by talking about variables and types etc. What I really want is an overview of...
I've only just started in the forex market a few weeks ago and have written quite a few EAs in the last few weeks. Discovered a problem last night with one of my EAs. I have the same EA performing on 4 different symbols under the same MIG demo account. Everything normally goes smoothly (I do use the...
Anyway to suppress the logging of Indicator messages in MT4 in the Experts and Journal? Thank you
Hi all, I'm successfully running MIG's MT4 build 208 on Virtual PC (Win XP Professional SP3) on my PowerBook G4. It actually runs very well indeed. And all of my EAs run fine when compiled on build 208 and run on a real PC with build 220. The reason that I am running build 208 is that terminal.exe...
"Interview with Stanislav Starikov: Features of New MQL5 " Dead or Alive? or just plain DOA I simply ask as why waste energies posting IF staff not interested, yes?
I'm writing an EA that's based on several indicators, now am I best writing it like this if(IndicatorA>=x && indicatorB=y && indicatorC<=z) { OrderSend(Symbol(),OP_BUY,Lots,Ask,Slip,Ask-SL,Ask+TP,NULL,16180,0,Green) } Or the other way I though was int BuySignal=0; if(ImdicatorA>=x) {...
I have been testing EA's for 5 years now, every way every time and every currency pair. I have yet to find an ea that actually works. Out of all the EA's on code base there is one that I have done some modifications to however I'm no guru programmer and need some help tweaking it further. In manual...
new MT 4 Build 220 released, but when compling mq4 files, only products ex4 and log file with 0 length, and then auto-delete those 0 length ex4 file. what's wrong with it ?????
I have active EAs and indicators simultaneously on 16 charts and have the publisher (ftp) option properly configured. However, minutes after I start the terminal, I notice this error in the journal: Publisher: error when building the report 'C:\Program Files\Interbank FX Trader 4\profiles\statement...