Hey guys, can somebody tell me where the error is? Here is the code: #property indicator_chart_window#property indicator_buffers 2#property indicator_color1 Lime#property indicator_color2 Reddouble SMAup[], SMAdn[];//+------------------------------------------------------------------+//| Custom...
[Deleted]
Hi Guys, I am working on an indicator which performs most of it's work in a background thread, using OnTimer to fetch and update the indicator.. The trouble I'm having, is that the indicator does not update until the chart is moved (eg. scroll left/right, tick, zoom etc..). I have tried sending...
I can not figure out why it does not work, anybody can help? Pls see the following code: double Sig[ 1 ][ 1 ]; // magic|type|target----magic|type|target bool no_Sig = false ; string Sig_str = Signal_Get( "Sig" ); string res[]; if ( StringFind (Sig_str, "|" , 0 ) != - 1
Following the solicitation of https://forum.mql4.com/62170 I dld and installed the terminal b628 and the editor b915 Butr the editor cannot be used!! This line: extern int aHIGH_UseHiLo = 1; //Max$ HiLo=0; maxT 0&1 My mouse is placed between "//" and...
[Deleted]
I creat an test EA name Test_01(Fig.1) and launch in window, before I start "AutoTrading" ( Fig.2 AutoTrading disable), EA was running automatically...... can someone tell me what happen with it ? Fig.1 Fig.2
button automated trading must cover not only the expert advsor and scripts ... I can have it turned off and only work on the script .... with the 625 build is not possible! because merge scripts with expert?? I would put a button for each, and so as not to turn on and off all together
Hello, I need a function of multiplyclose >>> HINT : Not closeby i have many functions do closeby ... but i want MultiplyClose ... any one here can help me thanks ... anyway
[Deleted]
Hi All I am currently running Opensuse 13.1 32 bit software on my pc & am having a few issues. The installation went fine until you come to the screen where you have to open an account. As soon as I fill in my personal details & press next my computer just hangs. A message box appears saying [CODE]
How do I add time to Time[0] if it returns 1396270800? Like 1 hour? Correct me if im wrong but i may have figured that if one hour is 60seconds*60minutes then thats 3600 seconds added to Time[0]. Refrence: https://docs.mql4.com/predefined/time
if(limit<=Xbars) { if(isCross) { if(fastsma>=slowsma && fastsma>MarketInfo(Symbol(),MODE_BID)+DistancePips*mPoint ) { DrawHorizontalLine("fastsma"+i,fastsma,color1,STYLE_DASH); } else...
long s2iChar = StringToInteger("A"); Print(s2iChar); // The result is: 0 // in my humble opinion it's supposed to be -1 or some error code long s2iNo = StringToInteger("0"); Print(s2iNo); // The result is: 0
Hello guys, It might be a stupid question but here it goes: I have a double variable MACDcurrent and I call the iMACD function and I get 0 as a return, but when I do DoubleToStr I get 0.000123. How can I get that procession stored into my variable? double MACDcurrent =iMACD(NULL,0,12,26,9...
[Deleted]
Hello, i have create a indicator and i see in the Experts Journal during backtest the info printed that the indicator get loaded successfult and when i end the backtest i get many time the info that the indicator have been removed. What is the problem, why does metatrader makes such think, load the...
Hi, I think ther is an issue with the build 625. When i upload an ea compiled before installing buid 625 it works correctly. But if i recompile the same ea and upload i get the message 'global initialization failed, invalid ex4 file. I tried with buil 628 with same result. Are metatrader and...
Hello, Im writing simple EA code: extern int MaxOpen=1;extern double Lots =1;extern double StopLoss =1000;extern double TakeProfit =1000;extern int TrailingStop =0;extern int Slippage =10;extern int MagicNumber =10001;int EURLongUSD=0;double x=iCustom(NULL,0,"ADXEURMom",0...
[Deleted]
Hello EAs running in the Tester, and Scripts have different FileOpen() default paths. Is it possible for one to access the other? So far I've failed in my attempts to get a script to open a file produced by an EA run from the tester (which has written the file into the Testers default file...
Help please! I want to close a position after a certain bar if still in negative profit. Thanks.
Hi, I know there are examples here usin the obsolet Windows-function like _open(), _read()... But I think this could be troublesome due to ANSI and UTF8... Anyway I want to read a csv-File which is admin. by LibreOffce and save LO save it as csv Notepad++ tells me this file is now ANSI. After...
Dear, will be an expand of timeframes into the new MT4 platform builds (like M20,H2,H3..), same as in MT5? without using offline charts solution Elie
Something awkward is happening with the MT4 trading accounts everywhere (it can happen with any broker, as far as I can tell). The platform is sometimes, though rarely, duplicating orders sent by experts. I have seen this happen at least 3 times with build MT4 build 500. The first two were on demo
I've searched and searched and have not been able to find a script that will make a (100% amount of account balance) market order that does not add stop loss or take profit (or at least a setting that can turn those off). The closest I was able to find was this http://www.forexfactory.com/showthread...
Hi, does anybody has a link to the Windows-File-Constants (and may be others too - you never know) like: OPEN_EXISTING, GENERIC_READ, FILE_SHARE_READ, FILE_ATTRIBUTE_NORMAL, ... The Windows-Errors I have found. THanks in advance, Gooly
Loading Metaeditor to make a few changes to an existing MT4/MQL4 EA, hit compile and what previously compiled fine, now gives me #include errors. It is now looking in the MQL5\Include\xxx path -- MQL5? There is an MQL4 directory, but never a MQL5 one. Anyone else experiencing this? This is opposite...
[Deleted]
Hi I trade with Renko charts, but since MT4 updated the platform, i started to have troubles. If anyone of you have the code fo renko charts for the new version, please let me know!! Thanks Juan
Hello, I wonder if there is any way I can modify the fibonacci indicator mt4, that annotates the way I point out in the photo. I have seen some platform already has implemented this system. Thank you.
hello community since some days, I am unable to loggin in my MT4 platform, even real account and demo and even a recent downloaded demo does not react on my loggin attempts in the journal, it show following : " connection failed ( general error ) " what could cause this problem ? thanks for any...
[Deleted]
Hi, I have this script an I wann add Time to start and stop running script . Any idea . //+------------------------------------------------------------------+//| Period_Converter.mq4 |//| Copyright © 2005, MetaQuotes Software Corp....

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.