MQL4 and MetaTrader 4 - page 788

I search but found zilch! Can someone tell me why my MT4 installation installs in a different directory deep down C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\1DAFD9A7C67DCetc on my VPS W2008V2, but on my home PC installs in a much higher directory C:\Program Files (x86)\MetaTrader 4...
[Deleted]
Hi I am stuck.L I want to add personal indicators and my personal indicators do not appear??? Plse help me out Thanks
My own ea worked well previous mt4. after i updated mt4 ea working fine only backtesting. when i go live no trades occurs. i copied ea on folder mql4/experts folder. please support me to solve the issues. i don't get any error in logs file.
  Demo testing error  (11   1 2)
During my demo testing I have received this error 4051, after checking my ordersend() lines I have come to the conclusion that everything is in order. Please note that I added the clr before the colour names as this was suggested by the new mql4 syntax. OrderSend ( Symbol (), OP_BUY ,LotSize/ 8
My OrderSends are being rejected due to invalid price in 625. No matter what the slippage value included in the order, it will only be executed if the OrderSend price and the Bid/Ask is EXACTLY the same. This is the code that places the order RefreshRates (); ticket=
Hi Essentially when running optimizations, you end up with a number of viable parameter sets that, and i am just looking for a better way to sift through these. I am currently running optimization by balance, by pf, by drwadown%, combining these in a pivot table and seeing where i might have...
[Deleted]
  Help needed  (1)
Please I need assistance with this code, it is working well on back testing but does not activate on a demo account.
  EA na VPS  (1)
Pomoc Ke svému obchodování používám MetaTrader 4 s Expert Advisors, které mám uloženo na Virtual Private Server. Po nové aktualizaci MetaTraderu 4 na Build 625 můj EA (ex.4), který je uložen ve složce MQL4 - experts se po otevření okna grafu se nezobrazí v okně navigátor (EA), takže nemá co vložit...
Two error messages when compiling old mq4: 1) The new MetaEditor gives me a function compiling error despite promise that old mq4 indicators etc. should/could work: "not all control paths return a value" //+------------------------------------------------------------------+//| Checks for a...
tradingview.com has an indicator called Stochastic RSI, and I would like to adept the settings to MT4 version of this indicator. tradingview.com settings: The mt4 version can be downloaded here:
hi guys. i have "2014.03.31 08:16:38.149 2009.01.02 08:01 TheTurtleTradingChannel_Strict EURUSD,M15: 2 parameter for SetIndexBuffer function must be array" this error message, while i was doing backtest. this issue is only for buy position but sell position works fine without no error. can anybody...
[Deleted]
  help me  (1)
Dear Community, have opened several transactions but I want to put the T / P, trailing stop for 2 symbol. Thanks in advance if you can help. Sincerely, Tankhoa
Hi, unfortunately it is only a feeling but the optimization of my EA took 24 hours with b509 (as far as I remember) but now - same logic and same amount of vars with the same range to optimize ok the trade-vars are now organized by structs (one data-struct and one struct with strings) - it takes 150...
I am wondering what many of you incorporate into your EA to handle news times. Overall I would like the EA to be able to automatically close out of a losing position several minutes before a major economic news event happens I am just looking for suggestions and options - what do you say?. Thanks...
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
  Order Send  (1)
Is OrderSend the only command that allows you to open an order?
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]
  Time[0]  (7)
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...
  Build 625 error  (14   1 2)
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...
  iCustom values  (18   1 2)
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...