Download MetaTrader 5

MQL4 and MetaTrader 4 - page 258

To post a new topic, please log in or register
hi,,, how are you i found problem  with metatrader 4 Build 830 problem with tools (Linear Regression Channel) this tools can't ray !!! please fix this problem
Hi everyone, I'm using MT4 version 4.00 build 825. I can't load my template when i using strategy tester. But with version older it's work . Anyone has same problem? How can i use my template in backtest ? Please help me. Thanks .    
In the code below I'm trying to draw a simple object on a sub window : // Input variables input int KPeriod = 14;input int DPeriod = 3;input int Slowing = 3;input ENUM_MA_METHOD StochMethod = MODE_SMA;input ENUM_STO_PRICE StochPrice = STO_LOWHIGH;// OnTick() event handler                void...
Im trying to write a short code that finds the highest value of iStochastic from the last 3 bars using the ArrayMaximum () function.void OnInit() {     double s1 = iStochastic(_Symbol,_Period,KPeriod,DPeriod,Slowing,StochMethod,StochPrice,MODE_MAIN,0);   double s2 = iStochastic(_Symbol,_Period...
Hi, is there anyway of finding the highest and lowest points on an indicator such as stochastic like you can finding the highest and lowest points using iHighest() or iLowest() function on the price chart?
Hi Guys, I'm using MT4 and want to add 2 script prices and display/plot that chart into single price chart in a single window.... For example: If Abc Co. trades @ 100 and XYZ Co. trades @ 80. So now i want to add both prices and want it to displayed/Plot chart in single window with price quoting 180...
Are youaware you are paying 4 x spreads to some brokers for one trade? Ihave reviewed all of my trades, and have discovered this rule for some pairs. There are lots of hidden rules we are not aware of.
In old version MT4 (Build 600-) was possible create objects in Tester - visual mode. But for new build 600+ my code not function, wrote "Error: can't create object name:tester code #4202" If I use the same code as script and add to chart (no chart tester), object create ok.    long...
I have tried to use the stochastic momentum index indicator but it stops all the time why and what can I do?     
after the updating to build 830 I've noticed an error (the regression channel and most of the channel doesn't ray) and after contacting several people confirm the same issue. any idea how to fix this 
Hi guys, I have the below code for pending orders. I want it to place a buy stop X points above the highest point in the last few candles, and X amount below the lowest point in the last few candles. The orders aren't being sent at all, and I get OrderSend() 130; not sure why..? Please help....
I can draw a text or create an object on main indicator window, but I use sub-window number to draw a text on sub indicator window, it draws on main window. Any one can help?
Hi, Could someone please help me with my LotsizeCalc() function. I would like to multiply my lotsize with the 'MartingaleAmount' if my last trade was a loser. If my last trade was a winner I would like to use the 'normal' lotsize. Unfortunately, when I backtest the EA I get error 4051 from the ,...
Question one.  each desk has about 2880 bars of data that can be accessed from. iclose, bid[] or copyrates. When does it look at the \history\desk= *.hst files? Question two: When are the *.hst files updated. Upon exiting ?   Question three: tools options charts  sets the memory pool that metatrader...
New article MQL5 Cookbook: Implementing an Associative Array or a Dictionary for Quick Data Access has been published on mql5.com: This article describes a special algorithm allowing to gain access to elements by their unique keys. Any base data type can be used as a key. For example it may be...
Hello !! There is some indicator that draws straight lines  every n bars ??? Thanks for your help.
Hi, Could you please help me to plot  the lowest of the low price values over the previous 10 bars of weekly chart in daily chart. Thanks!!! 
I'm relatively new to MQL4 and have been loving it, however I have run into a problem.  I have created an EA and I need to access variable: 'CaseNumber' from multiple functions and also change it.  I have error checking in my code and everything else seems to be functioning correctly only...
Hi guys I have been working hard to get an EA send Alerts and it seems to work just fine. Now I am working to make the EA place trades but everytime I try to set an automatic Trailing Stop feature it just doesn´t work. I receiving these codes: OrderModify error 1 I know it means that OrderModify...
Does anyone found zigzag indicator c++ code? covert MT4 code to c++ code.
Hi everyone, I'm writing to see if anyone can help with how to increase the size of the below mt4 platform? I have a Lenovo Yoga 3 and am using Oanda Australia demo. Any assistance would be much appreciated. Thankyou.      
please explain how I enlarge the mt4 platforms writing in the fields what steps do i take already tried the win 8.1 setting and it dod nothing at all for the Mt4 please can someone give me the exact steps thanks 
All, I have been running in to and error i cant seem to get rid of, any ideas? Here's is the code: attached is a screen shot of the error. any help would be appreciated. thanks, Blax
  What will happen if I use iClose(NULL, 0, i-k) for back testing while k>i in fact?        
Hello Programmers,           I need  your help for the purpose of doing some changes in my EA. It is actually a scalping EA and it's result are very best. Few changes are required in that EA to make it's work perfect. Please if your MQL programming, then contact me, so that t we can abe able to make...
Previously I used Windows XP notebook, everything is smooth. I just bought a new Windows 8.1 notebook ASUS K401LB. I install TickMill demo on the new notebook and recompile my EA. When I attached my EA on a chart, I press the "OK" button but no effect. I have to keep on pressing for nearly about 1...
Hi! My ea puts opening and closing arrows plus trend lines connecting them on chart. It names those objects, starting with '#'. When testing, for the sake of not cluttering the chart, I want to delete all those chart objects (starting with '#') but last 6. I have been riddling this quest for few...
  Help with EA (2)
Hi everyone When I compiled a get this error: "if" - expressions are not allowed on a global scope, on lines 42 and 50. Thantks    //+------------------------------------------------------------------+ //|                                                 trendcatcher.mq4 | //|...
Hi, I'm new to this forum and mql4. I'm working on my first EA project that handles real-time symbol data using SymbolInfoTick(). So far so good, it works fine on MqlTick.ask and .bid data, but not on .last and .volume, they are always =0. I'm running on the downloaded MT4 demo account, Win7....