Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1206

To post a new topic, please log in or register
Hi, My girlfriends and I are trying to code our first EA and we wanted to know aboutusing diiferent time period data; we read on some forums that it's a good thingto do. We know about the Timeseries access functions but we had a few questions: 1. Why would you do this? 2. Some examples of this...
Chart time frame : H1 I have a trade opened at 16:20 ( of course it can be anytime, like 16:30, 16:55)within a current H1 bar. I want to run a indicator check when the next hourly bar starts , say at 17:05 orgreater Like if(TimeCurrent() > "17:05") - So I need to find the seconds diff btw 16:30 and...
Hi, Is it possible to change time of start day chart bar to eg London start (now 7GMT) , some script similiar to time frame change ? Now start of day bar is at 0:00 server time. Thanks for answer. Andrew
On the website of the Automated Trading Championship 2007, the article Jury Session Record of the 10th of October 2007 has been published. At its session, the Jury discussed the issue of disqualificationof some Participants the Expert Advisors of which had not complied with the ChampionshipRules....
Hi! I'm in need of a programmer to write an EA. I receive signals from a signals provider.I've had a program written to POP into an email account, check for new signalsand parse those signals to a .csv file. It's very interesting. I've been with thesignal provider for the last 2 months and they are...
Has anyone managed to program the Gann Swing indicator in MetaQuote? It's codedin metastock. I wonder if you can share your code? Thanks.
Hi Guys ! I need some information about how to control pending order, I am looking to know what is the procedure to avoid EA to open many pending order. When i teste in strategy tester, everything work, but when I turn one my EA to tradelive, It open many pending order, I only need one ??? anybody...
I am new to coding and would like to add a code to expire an EA in say 10 days.How do I do this? Thank you
I wanna increase the lot size when my balance hits a certin number, Please helphere is the code #property copyright "© 2007 RickD" #property link "www.e2e-fx.net" #define major 1 #define minor 0 extern string _tmp1_ = " --- ????????? ????????---"; extern int N = 3; extern int Lots = 10; extern int...
Automated Choice of Brokerage Company for an Efficient Operation of Expert Advisors It is not a secret that for an efficient operation of Expert Advisors we need tofind a suitable brokerage company. This article describes a system approach tothis search. You will get acquainted with the process of...
I have an opened order of 3 lots at the championship The price at the opening of the order was 237.52 T/P was set to 238.66 from the beginning At 6pm GMT, the price was 238.77, 11 pips bigger than my T/P Why my T/P at 238.66 has not been triggered ?
Hello, I need to get Highest and Lowest price for particular currency pair within a certainperiod of time, e.g. Highest and Lowest price for EUR/USD between October 4, 23:00:00 and October 5, 6:00:00. I usually need to go back to 1-2 previoustrading days? Could anybody help me? Thanks draho
I use this OrderSend() code in ATC2007 Contest EA, MetaQuotes Demo, FXDD Live &IBFX Demo without problems (no errors). I started a Demo with a Swiss ECN Brokerand I get "Error opening Sell order: 130". Does anyone have idea as to why ?? int TakeProfit=100;int StopLoss=100;double tp,sl;if(Sell1==1)...
Hi!! I've developed my first EA. The EA send pending orders at a determinated level,my problem is that the EA send a order every time that the price hit the level.I want to send only 1 buy and one sell order per sesion. Trading hours is includingin the EA. Thanks for your help!! This is the...
Hello, I have made a Custom Indicator which works. It displays on the Chart and everythingis fine. I am now wanting to use that in an Expert Advisor and the only value I get is 2147483647. It has one parameter which I pass in and that is all. (Below is the code iCustom(NULL,0,"myCustomIndicator1"...
What I do. I use ElliotWave, simple - not all that complicated counting, for that lead to nothing - and for that I count manually and also use Advanced Get. Just 1,2,3,4 and 5 count, and of course the countertrend 1,2,3. To pinpoint a top or low of a wave I use a special timecount. I start with...
Hi, Am looking for someone who can put my trading strategy into a script so I can backtestit. Have been using the same strategy for about 3 months now - with very good results- but I want to finetune it and perhaps we can learn something from each other. Contact me on gmail - shan.ahmed1@gmail.com...
On the website of the Automated Trading Championship 2007, an Interview with Nikolay (zona) has been published. Nikolay known as zonа has not been trading forex for a very long time. However, he has already developedabout 30 Expert Advisors. Nikolay trusts trading to Expert Advisors, because...
I'm calculating MACD and the histogram values as such and putting an arrow on thechart. Periodically I will get a false crossover signal. Can anyone tell me why? Thanks very much in advance, E MacdCurrent=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_MAIN,0); MacdPrevious=iMACD(NULL,0,8,17,9,PRICE_CLOSE...
Hi guys -- I'm new to MQL. What I'm looking to do is using the common Laguerre indicator, invert any valuesunder 0.45 and turning those inverted values Red. I inverted them fine, but I'm having an issue with making the color red. Help wouldbe much appreciated....
  EXIT point - LOGIC (16   1 2)
Greetings! Can anyone give me any ideas for indicator based exits strategies that you may think works. I like to try anything and everything.
I've tried everything to get my code working, something is wrong but what? I'm simply trying to keep BUY && SELL ratios approximately even. I've allowed for in the code a situation whereby five positions can be unhedged,why does my code not work?  Any help greatly appreciated and thankyou.
Hi, I am learning. To have my EA do: "A winning order repeats itself, a losing buy order is followedby a sell order, and a losing sell order is followed by a buy order." Is belowright? int order; if (Ballance!=0.0) { if (Ballance>AccountBalance() && OrderType()==OP_BUY) {...
On the website of the Automated Trading Championship 2007, the article Reporting the Championship: First Week (1 – 7 October) has been published. The article summarizes the results of the fisrt week of theChampionship. The Top Ten Expert Advisors alternated all the time during the week.The Top Three...
MT4TerminalSync - System for the Synchronization of MetaTrader 4 Terminals This article is devoted to the topic "Widening possibilities of MQL4 programsby using functions of operating systems and other means of program development".The article describes an example of a program system that implements...
First week is done, 11 more weeks to go. Leader is winwin2007, who raised a LOT of controversy with his method. His expertis a 1 pip scalper, and trades EURGBP during Asian session only. This expert trades only if there is a 2 pip spread, and he is able to set take profitat 1 pip profit (this is...
Is it possible to use\reference M5 and M15 data on an M1 chart? If so, how? Arethere any implications or benefits for doing this? Much thanks in advance, E
How to detect that the indicator is attached to a chart in "visual" testingmode. Especially how to get the tick time, the Time[0] value is ok but the TimeCurrent() is market watch time.
Hello all I have written a dll to open an HTML email every time and save it as plain textto be useful to expert advisors. I use Mictosoft Word for opening html file andsave it as plain text , here is a part of dll code: ofstream Msg(Dest + "\\experts\\files\\MessageFile.htm",ios::out|ios::trunc);L3...
Hello, ive bin really, really trying to code an EA function that would do the following. It would find the value of the MA in the last two closed bars and see if theiris a difference of 'MinAng' in are case 5, between the two and in what direction. ex. shift 1 - 2.0325 (one bar back) shift 2 -...