Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1167

To post a new topic, please log in or register
On the website of the Automated Trading Championship 2007, the article Winners of Automated Trading Championship 2007 has been published. The Winners got their prizes and awards and shared their thoughtsand impressions of the Championship with us. The full text of the article was published on the...
I need my SL derived from High/Low of Bar [2] but cant seem to use High / Low toset SL. For example: double stopLoss, takeProfit; stopLoss = (High[2]-Low[2])*2; if(BuyPrimCheck1() && BuyPrimCheck2() && BuyWickCheck() && BuyDisplace() == true){ ticket=OrderSend(Symbol(),OP_BUY,10,Ask,3...
Hello I am looking for information on API interfaces, there are some examples?
Was wondering if anybody could help me, when I try and run the strategy tester thescreen just says "Waiting for update" and never works? This works onmy pc but not on my laptop, any ideas anyone? Thanks
hi all my name is paul. I have been trading a mini account with FXCM for about 6months and came across mql4. I really like power of the system modeling and backtestingcapabilties. My understanding is FXCM is scheduled to have mgl4 soon. I am particularlyinterested in 4h and 1d trading. I have many...
My Matlab function has a matrix output. If I call it from my EA, how do I deal withit ? If MQL4 can not handle it, how shall I get around it? Pls help me. Thanks
  Chart help (2)
Hi all i am new to meta trader. I was wondering if someone could help me with aproblem i have. In the charts i have two ema's but when a candle appears the ema'sare hidden behind them. Is there a way to show the ema line in front of the candlesall the time? Thank you in advance and good luck success...
  tool bars (1)
How do I keep from having to reset my tool bar every time I log on?
I'm a beginner, tried many sample expert advisor scripts but all my scripts arestuck in init() not calling start() at all. So I tried a easy stuff to troubleshoot:int init() {//---- Comment("inside the init");//---- return(0); }int deinit() {//---- Comment("inside the deinit");//----...
Hi Other than writing to a text file format, does MQL4 support INI file writing format.If not, does anyone knows how to do it, may be calling dll file function from theEA, how to import a dll? any known good dll file can support INI file read /writefunctions. Many thanks Tom
Hi guys, The problem looks something like this: You have two simple indicators, for ex. two moving averages, and one EA attachedto the same chart. It's a very simple EMA cross EA, with some experimental codeimported from external DLL that makes it change it's EMA indicator parameter...
My matlab function is like this: Y = Myfunc(v1,v2) The ouput Y is a cell array {y1 y2}, y1 is a 1x1 matrix, y2 is a mxn matrix, IfI call this function in MT4 via DLL, how can I get the output to MT4 environment? thanks a lot.
Hi, I'm new in using MQL4. I'm just wondering why can i only see the pop-up of Print()and MessageBox() command one time only when i first drag the script or expert inthe terminal. It don't work the second time. Why is this happen? Is there any rulesabout these TWO commands that i'm no aware of?...
Hi everyone! Need some help to code a double smoothed EMA. The derfinition is: Double Exponential Smoothing (DES) applies Single Exponential Smoothing twice. My code has still a mistake, hope somebody can find it: //+------------------------------------------------------------------+ //| double...
Hello, This code's purpose is to check if there's any active order opened by this EA.If none, it will open 2 orders, buy and sell. I haven't test it on real marketbecause it's sunday now, but from backtester, there's no trade appear. What's wrongwith these codes? int ordtotal=0; for(int...
Hello I have a lot of open buy and sell 0.1 unit positions. I need to know exactly how many of them are opened. Instead of counting them manually,is there a script which counts the number of open positions i.e. "you have57 open buy positions" ?
Hi, can U tell me how to make an EA open only one position per one bar? Cause now it looks something like this: I also don't want to use "if(OrdersTotal<1)" used in many codes becauseI want to have more than one order opend at a time (but not in the same bar) Thank for any help, Jan
  old tick (6)
Hi, what's means when "Old tick" appears on Diary?? thanks Bolla
Hi, DDE or whatever. There's a suitable protocol? I expected to being able to exportindicator's historical values in as easy way as for historical quotes. Thank you so much, SA
I have a problem with my metatrader. My computer hanged When metatrader4-V202 runningfor about 10 minutes. Please help me .This problem confused me.
How to find the value of High and Low of the 2 last bars of the previous week inH4 ? Thanks
As seen below is incorrect when Ctrl+Space+Shift used to display function formals OR when pops up automatically when opening ( keyed in. IE, double MathMod (double value, double value2)The function returns the floating-point remainder of division of two numbers.
All other charts are working fine in other timeframes on NZD/USD...just 15m chartis stuck. No other issues with any pairs or any timeframes, just this one. Have rebooted programseveral times and have opened and closed chart several times. Thanks for your help! M. Blanck
Could someone please help me with the code for the EA i have attached? I have tried and tried to edit this code to change this without any success. BasicallyI want to have the EA open only one order at a time in the same direction. However,I also would like it the EA to open another order in the...
Support email below, being sent to me every 2 hours - have over 15 so far!!! support was emailed but did not reply - perhaps others are getting this repeatednotification ?????????????/ The following new articles were published at https://www.mql5.com/en/articles/mt4: "MQL4 Lanaguage for Newbies....
Recently I have acquired a Client that has been running Cash Grabber, Trend Trader and Power Trader and they havebeen impressed with the “Demo” results running the Bellevue Strategy however they are unhappy with the supplierand the brokerage firm it is attached too. More information at http://www...
Betting Modeling as Means of Developing "Market Intuition" The article dwells on the notion of "market intuition" and ways of developingit. The method described in the article is based on the modeling of financial bettingin the form of a simple game. Author: Eryomin Sergey...
when running my EAs i often get this error message in the experts tab of the terminal: "expert function calls are not allowed; 'stdlib'-'ErrorDescription'" followed by "expert stopped" maybe the problem has something to do with the TrailingStop function trying tomodify the order too much......
I am trying to keep OrdersTotal() <=1 at any point in time. If my EA is running simutaniously on multiple pairs say USDJPY and GBPJPY and theyboth meet the condtions for OrderSend() at the exact same time will OrderTotal()still remain at <=1? or will my condition be bypassed because both pairs...
1...116011611162116311641165116611671168116911701171117211731174...1249