Download MetaTrader 5

MQL4 and MetaTrader 4 - page 924

To post a new topic, please log in or register
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...
Hi, I want to do coding in the indicator to perform Y-axis rescaling, would like to know whether any code or function in MQL4 to preform rescaling the Y-axis (Price) ? Not using "F8" --> "scale fix", I want to do it automatic in the indicator. Thanks for your responses.
Hello freinds, I understand that a function can return ONE veriable. If I want to return more then 1 veriable, (f.e. a number and a string), Can I defind within the function an aray (f.e. kuku[0,0] ), which its first place is for the number and its second place is for the string, so... I returning 2...
hi guys recently i have checked my historical datas....1 min 5 min 15 min ..... and i have found a lot of errors!!!!! in some cases there arent datas for several days!!!!!!! i know that it's possiible to download them but i presume that they are not reliable. right???? each time i...
Ok, I have written a couple of indicators that deal or address currency ring trading. One of them uses the iADX of each symbol in the given currency pair to show the iADX of each of the pairs in a single indicator. When the conditions are right, they trigger an open trade in the tradition of the...
With help of firends it is made one simple script for closing half of the open position. (Scailing out). It is working beautiful with 5-digit brokers who have micro lots available. Problem is with brokers such as FxPro who uses mini lots. If position size is 0,80 lots, script is working normal (you...
Hello everybody! Can anybody help me to check for profit some custom indicator.I was read an article here about testing custom indicator - https://forum.mql4.com/22243 and was use this EA https://www.mql5.com/go?link=https://c.mql4.com/book/mq4/experts/shared.mq4 and https://www.mql5.com/go...
I try to program a Economic calendar script to output outcoming news. I tried to import the csv. file from dailyFX mit a '\t' delimiter so that a full line should be plotted in the window. But all lines are cut to a various amount of elements although a string variable should allow text with up to...
Hi everyone, I have a question concerning the label we get on orders on the backtester. If I take the below exemple we have : "#1 Buy 0.10 EURUSD at 1.33454 Buy(#1) (1) 1.33463" I understanding the origin of everthing except the red value. 1.33454 is the Ask price of the order filled. We are in...
I need to add one more check to my EA. The EA need to draw a linear regression channel from 0:00 to 24:00 on the previous day and radiate this to the present day. The bar open price need to be compared against this radiated line and check for a breakout. This holds true for that day. As soon as...