MQL4 and MetaTrader 4 - page 1588

Is there any limit in this "string StringSubstr( string text, int start, int length=0)"? I read the documentation, but no answer. "length=0" means I can extract starting from the given position and up to the end of the string. But when I do so, it always cut the tail of the string, the maximum...
My EA is exchanging data with Matlab program via csv file. Is there a way to backtest my EA? Any help is appreciated. thanks. Anybody can help me?
  Simple Trend Follower System  (111   1 2 3 4 5 ... 11 12)
[Deleted]
hello everyone.... I just discover the forex and the meta-trader... so.. I tryed to perform a back-test with EA proposed on this website (like ATS combo and MACDCCI) and nothing happen.... no result, no graph...... So I have downloaded de .mq4 file and I puted in my EA folder, I'm rebooted my MIG....
New MetaTrader 4 Client Terminal Build 213 has been released: Tester: At strategy optimization, fixed check of testing limit triggering, if there are no open positions. Tester: Disabled check of testing limits at genetic optimization. Tester: Optimized history uploading. Tester: Fixed error of...
Hello...Is it normal that the number of trades placed by the optimization engine is far less that the number of trades placed by the tester using the optimal parameters returned during the optimizaton process..if so, what is the sanctity of the optimization engine...
[Deleted]
My EA is in trades for a period of hours/days, usually looking for t/p and s/l of around 100 pips. Is it advisable to close out all open positions on Friday before the market closes ? And Why? Thanks! -Tom
[Deleted]
Hey, I'm drafting this litle EA of mine and I've been banging my head against the wall trying to force a decimal (1.5) in the deviation value, that is used in calculating the upper and lower BB bands. Is it even possible? And if so, then how exactly would one go about it? The variable is defined as...
Can someone tell me how to change the settings so that when I open MQL4 in iexplorer the font isn't enormous and unreadable. If I open in foxfire the page is normal. all other links and metatrader work fine through iexplorer? Appreciate any help John
[Deleted]
hi i write 2 buffers, named buffer1[] and buffer2[]. and i need metatrader to identify which buffer is the latest to be created. e.g. if buffer1 is just created, then if(buffer1 created) { dosomething() }
[Deleted]
I would like this: For MathSin distance calulation. I have one point .This is the zero point.The zero point Bars number is 1000. The Point 1 Bar number is 1050,the price is :High The Point 2 Bar number is 1050,the price is :Low I would calculate in zero point the sinus (for degrees) How it possible...
Is it possible to open a chart with code? For example, if a pair = value then open new currency pair and attach EA/Script/Indicator. What I want to do is find out differences in certain pairs, hedging pairs for example, but automated. This would be a nice feature if you can't already do it.
Hi I have the alert code below, I am expecting it to fire 5 times and then stop, I tried different version and played around with different blocks of code, but it is sounding once with the block 1 and twice with the block 2 as indicated in the code below. that is if I un_commnets the block 1, it...
  -ve pips count ?  (1)
I am trying to find the number of pips in loss so I made this line if (OrderType()==OP_BUY) { PipsOpenPL=PipsOpenPL+MathRound((OrderClosePrice()-OrderOpenPrice())/MarketInfo(Symbol(),MODE_POINT)); } if...
Can an Expert Advisor "execute/launch" an external script, located in scripts folder?
[Deleted]
Where can I find the  PDF version of Documention and Book?
Is there any way to detach a graph so that it can be dragged to another monitor? Any chance this being a feature in the future if not.
[Deleted]
I need to lunch a terminal automatically with the API CreateProcess and afterwards close it with the API TerminateProcess. Please could someboyd show me how to declare them and later on call them in MQL. The VB statement of CreateProcess is: Declare Function CreateProcess Lib "kernel32" Alias...
[Deleted]
Does anyone know how to use alert feature to have an alert sound at the close of each 4 hour bar?
seems like that indicators do not model bars of a different time frame than period(). what I notice is that the EA is indeed modelling the bar[0]. exactly asthis article, Tester in the Terminal MetaTrader 4: It Should Be Known, describes it. however the same is not occurring forthe indicator. I...
Hello, can someone please explan me in little words the need from the optimize funktion from the tester oder give me a link to a great artikel, i like to understand this future option, but at the moment I have vervy fear from long texts.
[Deleted]
Someone can explain why some indicators use the “ for(int i=0; i<limit; i++)” direction of calculation and others use “for(i=limit-1; i>=0; i--)” direction?
Hello all, I'm coding a hedging strategy where I enter a trade on a symbol and place an opposite direction trade on the hedge symbol. When the sum of the profits of the two orders are >= a set profit amount in dollars, I want to close both orders. My problem is that the expert seems to close both
Hi, I wrote the attached EA, and I'd like to operate with 1 hour time frame. I'd like to receive signals only when the new bar is complete, and not in a smaller time frame, when the new bars is setting up. How can I modify this EA? Thank you! Alberto
the result is that huge amount of trades occur and each of them was opened and closed within 1 min. What might caused the problem? I am driven crazy....
  2 MAs  (1)
Does anyone have a 2 moving averages EA code, I repeat 2 moving averages, not one?
Hey everyone! I really don't know anything about this specific programming language yet and all I want to do is get alerted by email when the 30minute parabolic sar changes. Can someone help me out? Thanks alot! -Arie
[Deleted]
Hello! I have this code,but it's not work. val=iHighest(NULL,0,MODE_HIGH,Bars-point,point) (the point is a Bars number point<Bars) I would see the maximum in a range (point to current bar); I know iHighest give me only the bar number of highest bar.But this code not work for me. Thanks for help.