Download MetaTrader 5

MQL4 and MetaTrader 4 - page 911

To post a new topic, please log in or register
Hello: I have developed an EA that do some trading on a single currency pair. I have done some testing during 2-3 months testing with MT4 test environment and now I'm working with real money (and real trading). I have some conclutions that I would like to share and see if someone have some...
I have recently created an EA that works great in the strategy tester but is behaving very oddly in the live demo. The program is coded to close all open orders if the Account Equity is greater than the Account Balance. In the strategy tester, this means that when it closes my open orders I always...
I am writing a fx program and want to use Heiken Ashi candles to indicate quiet or noise market (to check previous 50 candles red or green and if 5 are the same coloue=quiet, not=noise) but I don know how to do it Can anyone help me please???
Am testing a very simple program with init and start routines by duplicating the same Alert messages in both. Can get the init to run when I start the program but but for some reason the start does not run. What does it mean when the manual says "when new quotations are received, the start()...
Can anyone tell me if there's an rsi indicator that can send an email alert when certain level is reach? For example: I use rsi period 9 on 4 hr chart with levels 70/30 Can any programmer build one?
hello, i would like to create for one of my EA a function which it looking in the last 5 closes orders of my EA (same magicnumber and symbol) the net profit value and save them in a array. Then: if array[0] is positive X =1; if array[0] is negative and array[1] is positive X =0.9; if array[0] &...
Hi, I tried to add an alert to the attached indicator by copying and pasting from a similar indicator, but I must have missed something in the code, because neither the arrow nor alerts are generated. Can you look at the code and see what I did wrong? Thanks for your help,
I'll start with my best optimization so far with my all-time favorite EA: MA_cross_Method_PriceMode by Duke3D Results: Excellent My parameters are: JPY H1 with MA1_Period = 12, MA2_Period = 44, default for the rest Backtesting Results: I use high quality 1 min data from fxdd 90% modeling I use a...
Hi, I have developed and run two EAs. One catches WHIPSAWs and other catches TRENDs. Both are highly profitable in the short runs. But I've found both unprofitable in the long runs as the WHIPSAW one got done by the long trends and the TREND one lost heavily when the market just whipsaws for a long...
  help needed (2)
double C1=iClose(Symbol(),5,1); double M1=iMACD(Symbol(),5,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1); double P0=iSAR(Symbol(),5,0.02,0.2,0); double P1=iSAR(Symbol(),5,0.02,0.2,1); double P2=iSAR(Symbol(),5,0.02,0.2,2); double B1,B2,B3,B4; double S1,S2,S3,S4; double MB1,MB2,MB3,MB4; double MS1,MS2,MS3,MS4;...
hi there guys (and gals?) im pretty new to mql4 and have been studying away at Rosh's template article. in the article he uses ' & ' i've tried looking in the book / documentation and searching on the forum, however i cant seem to find it and am wasting lots of time. google thru up something...
Please, I need your help. I will write the folowing code lines: ... string beta[3] = {"EURUSD",EURCAD","USDCAD"}; ... Check1(num,beta[3]) ... void Check1(int N,string beta[3]) { .... } Within the void function we do not change the parameters of Check1. I got after compilation: 'beta' incompatible...
into Russian MQL4 forum here in this thread https://forum.mql4.com/ru/31463 essence of the problem
Hi Guys, For example I want to optimize a moving average cross over EA I have the following inputs Fast_MA and Slow_MA So under the tester environment, I put the following Fast_MA > start : 1, step : 1, stop : 20 Slow_MA > start : 1, step : 1, stop : 20 I want to skip when Fast_MA value is more than...
hi all, Have been searching hedge EA strategy and robot for the last 3 days. Only can find all the same useless strategy. Anyone can give me better ideas?? Regards Hans ng_hans@yahoo.com.sg
hi all, i would like to setup an EA for trading commodities on cfd with the mt4 platform and to test the capabilities of what the program has to offer. I have been studying my system for a while and think it is now time for it to be automated. I am not a programmer and would appreciate some help,...
Pls i need tips on how to test multiple screen EA. Just built my first ea and it confirm signal from both daily and 4hr then entry is made on the 15min chart. They all give diiffrent result when i back test. So i need your assistance. Searched the forum and dint get much useful info. Thanks guys
Hello world! Just to test whether I'm able to code anything in MQL4, I wrote a pretty simple custom indicator (see below). It defines 'push' as fraction of maximum gain during the period that is still kept at close, and then puts a MA over it. Similarly, 'pull' is for fraction of maximum loss....
About a month ago, we started a closed beta testing of the MetaTrader 5 client terminal. Totally, we've received about 300 bug reports and suggestions from our testers. The most of bugs have been fixed, while suggestions have been considered, and we're planning to implement them. Since the testing...
Okay, what does that mean? Anybody? I am not talking right away but like in a few years. Does existence of MT5 mean that Metacorp will no longer support MT4? Will MT4 expire?
Does anybody know any good MQL4 and/or MQL5 code compressor program ? Freeware or cheap shereware will be the best for me. I need compress source MQL code to minimum capacity with no empty spaces, without any comments.
Is it possible to have more than one time frame on one chart with an EA? The two different time intervals are for two different strategies. I can specify the time intervals in the Open, Close, MA etc with the EA. Is this possible or do I have to use two different charts in order to do this?
I first hear (read) about this on a newsletter today. I think that there is no such thing. If it is .001% manual, then it is a fully-non-automated EA.
Hi all, I have been looking for a normalised version of the momentum indicator and cannot find exactly what I'm after. I am now looking into changing the momentum indicator to display values from 0-100 (is this called normalised?) like RSI. Can anyone give me some example code of what would needed...
I have seen posts on how to calculate the rate of change from two points on a moving average line which gives you the slope, however, this is the secant of the curve. How do I get the line derivative of this when the original formula for the moving average only exists in random points. The line...
Hi, I would like to ask, whether somebody could refer me to an exising / easy modifiable code. I would find it frequently useful for an custom indicator (and / or his line in the window) to see also the lines of first and second derivatives. In particular, when having a custom indicator X (which...
If I have a line of a code like: if (function_a(xxxx) > 100 && function_b(yyy)>200) but function_b() is uses the results of function_a(). Is the MT4 computs function_a() first, and then takes its results and put them inside function_b()? or maybe I should computs function_a() first, and after (;) it...
I like to use this EA for educational only, if you able tohelp me out I very appreciated. Here how I wish to codes: I want the EA to open buy if bar close above MA(12) and if this trade close out, now EA must ignores all the bars that close above MA(12) and waiting for bar close below MA(12) to open...
I am the developer of SteadyWinner EA. Now Version 2-forSmallAccount is free. The EA works on EURUSD. You can use it on any timeframe because everything is hard coded. Since the EA collects data from different timeframes, backtesting can be slow. Please have some patience. Trading principles, the...