Download MetaTrader 5

MQL4 and MetaTrader 4 - page 575

To post a new topic, please log in or register
Solved, thanks!
Hello, A short question I haven't quite figured out. Can an indicator/ea know its filename? Sort like the following. Thanks! String fn = WhichIsMyFileName();if(fn == 'MyIndicatorName.ex4'){    DoSomething();} else {    DoSomethingElse();}
Hi, Is any way I can copy all my settings (profile) from one computer to another machine? Thanks in advance, koze
Is anyone else getting wrong or falseresults when back testing their EA on Saturday? My broker is Oanda.
I know that the zero divide error occurs when you try to divide something by zero. I'm not going to start asking people to look through my code for me, but I wondered if there are any good strategies to avoid or locate zero divides? This must be a common problem, but there appears to be no formal...
Hello people, is there a way to start/stop a series of Expert Advsisors from an external application? If yes, is there a way to do it with multiple instances of MetaTrader? Thank you very much
Hi, I'm trying to modify extern variables in the init function but it doesn't seem to be working.. The EA says that variables are modified, but when I check in MT4, extern variables still have its default values :/ Here is my code: double parametres[NPARAMETRES];int handle;int init()  {//----   int...
I fill I already know the answer but i am going to ask anyway: There is a way to paint a FULL COLOR ARROW? I mean, it's hard to find the hollow marks in the graphics. I tried STYLE_SOLID, BACK, without success.
////                                               mtf_ma_comment.mq4extern int MAPeriod = 20;extern int ma_shift = 0;extern int ma_method = 0;extern int applied_price = 0;/*PERIOD_M1   1PERIOD_M5   5PERIOD_M15  15PERIOD_M30  30 PERIOD_H1   60PERIOD_H4   240PERIOD_D1   1440PERIOD_W1...
Who know why MQL4 does not support any statistical functions ? (Average, Standard deviation, Mod, Median, ...)
i'm worrying about back testing for several days. my problem happened after I set up the date from 1st may 2008 to 31st may 2012(four years). Whenever I access the back testing, it stops and not moving(stop process) at 25th August 2011. I don't know why. So, I mack the process with two different...
Just suddenly this morning, in my Android and iphone, I cannot create new trade order. The new order icon on the main page was disabled. Luckily on my Android, I have the menu button which I can click on new order. How to check what is wrong?
I am looking for an indicator which gives the distance between bollinger bands and can detect the rate of change of the distance between Bollinger bands, and that alerts can be set on the values. Any body know of 1?
Who loves the the gray grid in the Strategy Tester? Is there a way to have the Strategy Tester remember the Property selections? Every time I run the Strategy Tester I've got to turn off that gray grid -- drives me crazy!
dear traders, hello .. i had a problem with my MT4 live account, about order execution.. my MT4 live account platform has rejected to close my open position.. i tried several times to close my open position but it rejected again.. when i could close it, i had some big Loss.. so i need...
buy (Cross(Zig( Stoch(21,6 ) , 50,percent),Mov(Zig( Stoch(21,6),50,percent),3,S)) AND Zig(RSI(C,30), 12,percent)>Mov(Zig( RSI( C,30 ),12,percent),2,S)) OR (Cross( Zig(RSI(C,30), 12,percent),Mov(Zig( RSI( C,30 ), 12,percent),2,S))AND Zig( Stoch(21,6 ) , 50,percent)>Mov(Zig( Stoch(21,6),50...
Hi all, I am looking for someone to help me add a simple trailing stop and stop loss to this EA:
Hello I cant speak English. Can anyone explain how "pipdiffCurrent" in this indicator is calculated.i realy confused.please help me. thanks my friend.
How do I determine if a trade is currently profitable (while still open)? It seems like I should be using MarketOrder and OrderOpenPrice.
I want to know if EA programmed to trade on 5 mins. chart can use the information generated from 30mins. chart. I mean that a certain condition will be meet on the 30mins. chart before the EA can trade on the 5mins. chart. All in the same EA? so,if possible please describe or better still explain...
Sometimes you have these instances when the chart completely disappears and you see this message in huge letters: "WAITING FOR UPDATE". The problem is every time it happens, when the chart does re-appear, my EA seems to stop working for some unknown reason. There are no error messages or anything....
hi When the command iCustom() has been used, this specific symbol() & TF() get's opened somewhere, someone know where is this chart located & where can i find it thanks
Would it be possible to write some type of indicator that plots constant tick chartsor constant range bars in another window? These are different forms of chartingthat are not time based. For example, a 100 tick bar is formed whenever price moves100 ticks. So on little volume, no bar is formed. A...
almost every broker says they price of demo account is exactly same as the real account, but i have record them, they are not the same,how do they do it, what is the mechanism,this is important for those price sensite EA,may you explain it ?
Hi, I would like to publish live charts on my blog with MT4 demo. I tryed very much but I can't. Pls help me. regards, solanki
hey peeps Noobie question (maybe)! I have an EA that needs optimised properties for each chart it is attached to. Is there an easy/automatic way to load these into the EA properties from files containing the optimised values? (I know there is the load button). Maybe something as simple as MT4...
Hi, I have some problems with my strategy tester.. I don't know why every time I run the tester only few day is ccalculated. For example: I set the usage from 01/01/2011 to 31/12/2011 the tester calculate only 01/01/11-05/01/11 or: I set usage from 01/01/2012 to 31/03/2012 the tester calculate only...
Hi, well over a year ago I bought a FX trading system $400 + (manual Trading) I believe it has strict filters thus the need to have at least 3, better with 4 time frames per currency pair. in the example the guy shows you a window with 48 mircro windows open (12 currency pairs 4 time frames) with...
Hi, I have a problem here with MACD indicator settings for the android platform. The mid level of MACD for PC version is 0.00 but for the android, the mid level is about 40.00. How to set the mid level of MACD to 0.00 in the android platform same as the PC plaform? Refer to the screenshot in the...
I have a simple EA that will close orders based on take profit and stop loss. (TotalProfit<=0-stoploss_dollars || percentProfit<=0-stoploss_percent) How would the math work if you wanted to have an order close out when it's LESS of a loss, for example, if you have -100 and you want it to close...
1...568569570571572573574575576577578579580581582...1245