Download MetaTrader 5

MQL4 and MetaTrader 4 - page 474

To post a new topic, please log in or register
I’ve been testing for my EA & custom Indicator tocommunicate, below is my latest “Tester EA” interfacing with my Indicator: int start() { double Timer, Resist_Pr; Timer = 60*Period() - TimeSeconds(Time[0]); //---GeneralTimer depending on period selected from the "chart timeframe"... Print("Timer...
Fellow developers, Can one of you help me, my problem is: Using MQL4---After compiling my indicator, the mq4 fileor the ex4 file is not in the “Indicators”folder. But I can still access my Indicator when I use “MetaEditor” <i.e.when I try to access its source code>, the icon beside the mq4 file...
Hello, Please any one tell me, that how to edit and run EA on Mt4 with screenshot I'll very thank full to you...??? and suggest me that which EA b est for trading ..?? Than x every one .
Hello. I have are two programs which work on real. On the average on real 200% - 300% profits in a month. But completions for more profitable works are necessary. Your ideas for full stabilization of work are necessary. Profit in 27 times for a floor of year in alpari. On work and access to real...
Hi I have downloaded tick data using Birt's EAreview php scripts and converted the csv to fxt and hst files. I have checked the csv and know i have data for 1/5/13 - 1/8/13. So i plug these dates into my test in Use date fields. Sometimes the tester will run the backtest, but other times it won't...
Hi Can anybody please tell me how to solve tis problem : I want to draw a line (Buffer[]) on a chart and then switch the drawing off and resume the drawing of the line at a later candle. Can this be done ?
I have nearly finished my EA (with a huge thanks to some really helpful people on here!). None the less, I am sure there will be plenty of more stuff along the way - just evolution, which is expected. Anyway, this is my hurdle: I use this code:   ... Similar "if" statements above, relative to iMA's...
Hi, I trade with the strategy "10 points on eurusd" and yesterday (28.08.13) I have set two pending orders for stop buy and stop sell on High/Low prices +/- 2 points of the day before, like usual. And I was very angry about an opened buy order on 1.3402 (High was 1.3400 on 27th) in the teeth of the...
Hi, I´m newbie at MQL4 and I am trying to detect an new bar open event, using daily timeframe, and I have tried my code and other several snipets that I have found on the forum like: https://www.mql5.com/en/code/10370 https://www.mql5.com/en/forum/134278 https://www.mql5.com/en/forum/114228 https...
Hello, I read the manual and found the rules regarding the variables getting deleted unless they are not used for long or does not change value. I got a little confused regarding the variables declared outside of the start() function. I take one of the lowest price point for some period...
Hello, I have a disconnected MetaTrader 4 to backtest. I want to backtest with microlots, 0.01 lot. I get an error 131 when I try to open a 0.01 lot order : ERR_INVALID_TRADE_VOLUME 131 Invalid trade volume. How to allow microlot 0.01 in my Strategy Tester ? Thank you.
Hi! I was just wondering if there is a way to assign a button to the buy market order and another to the sell market order? I just think that it may help me spare an additional 0.5 second in comparison with the One Click Trading solution, which is superb but can it be any faster? The problem happens...
So I put a lot of charts with an indicator that takes a while to compute everything (2~3 minutes for all charts). Since I closed MetaTrader that time, when I open it the program's window doesn't show up, even though terminal.exe is running. I even changed lastprofile.ini to other standard profiles...
Hi. I created programm that analyze multiple currency pairs and store results in Excel file. The output format is like this: GBP;CHF;USD;EUR;JPY and from left to right strongest to weakest Symbol. Now I want to somehow analyze that data and get information how often that one combination have been(...
Hi, I have done quite a bit of searching for information about this, have found lots about init() and when it is and isn't called etc. but not specifically relating to the strategy tester. I have an EA that works fine on live account and demo but will not work in the tester. All I got was a "zero...
HI all, I need to round Bid to the highest and lowest value, as in this example Bid = 1.24231 I need to obtain 1.24300 (upper round) and 1.24200 (lower round). I’m trying to use MathRound() and NormalizeDouble() but it doesn’t work. Could you help me? Thanks!!!
hello, im new to mql language and also almost new to programming. i was found some source of line cross alert. and i was add keyboard event to source to close my order. so it should have to working when current candle crossed(Close[0]),it should have to be close order but this time it just closed...
I have an EA that writes to a log file some info, at some points it decides to open an order and when this happens the EA doesn't write to the file anymore, I just get: invalid integer number as parameter 1 for 'FileWrite' function I'm attaching an screen shot: fo how when it opens the order the...
Good day... Is there any way or is it possible that a certain script or EA displays information about the dealer who accepted the trade? Thank you very much...
Hi, I have the following int Orders; if(OrdersTotal()<Orders) { SendNotification("\nOrder Closed\n" + "Open Orders: " + OrdersTotal() + "\nEquity: " + DoubleToStr(AccountEquity(),2) + "\nMax " + Symbol() + " Lots: " + DoubleToStr(maxlots,2)); Alert("Order Closed"); } Orders =...
Hi, I found that Forex tester Data Service should be a high quality source of history data for Strategy tester. As far as I know they provide real tick data for a monthly fee. Does it make sense to subscribe for it, in order to get exact low timeframe data? If yes, what data conversion has to be...
I have coded this so that once the alarm fires, it sets the Bars count and shouldnèt trigger again for 5mins. However, when the lines cross, the a;larm keeps triggering every few ticks as the values cross and uncross. How can I stop this"    if (iMAOnArray(TSI_Buffer,0,7,0,MODE_EMA,0) <...
Hi! My expert closes active orders and deletes unactivated pending ones on regular days at 00:00 of my pc time,and on fridays on 23:00. Today it didn't close and in journal wrote that market is closed(usd/chf)... I thought fx is 24/5...Please fill the gap in my understanding and how can i avoid this...
Are these two testings equivalent from the programming logic point of view? 1) if( RAIN2>RAIN1 && RAIN3>RAIN2 && RAIN4>RAIN3 && RAIN5>RAIN4 && RAIN6>RAIN5 && RAIN7>RAIN6 && RAIN8>RAIN7 && RAIN9>RAIN8 )if(!( RAINX2>RAINX1 && RAINX3>RAINX2 && RAINX4>RAINX3 && RAINX5>RAINX4 && RAINX6>RAINX5 &&...
Hi, I have modified an EA to execute trades from Excel but the MT4 stops execution of trades. When I restart the MT4, it executes all the pending trades from excel. Please help me to resolve this. Thanks.
New article Trading Signal Generator Based on a Custom Indicator has been published at mql5.com: I am sure there must be an indicator not included in the standard delivery that you have long wanted to use. And that is the indicator based on which you want to build a trading signal module. I will use...
I'm not very skilled in coding and was wondering if someone knew how to take the original RSI indicator from MT4 and add these things: -Crossover alert (1 time per cross) for above 75 level or below 25 level -Separate alert for the formation of the next 15M candle in which the price changes...
Hi MQLers, please advise: within my EA I am using a variable which gets continuously updated based on how the market unfolds for that specific symbol. Given that of course I am going to have my EA run in multiple windows on multiple symbols, a question of concurrency arises. To use a live and...
anyone have any Indicators show server ip? if have please shared us.. thanks