MQL4 and MetaTrader 4 - page 873

[Deleted]
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.
[Deleted]
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...
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...
[Deleted]
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 =...
[Deleted]
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) <...
[Deleted]
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 &&...
[Deleted]
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...
[Deleted]
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
void NewTrailingStop(int xticket) {   double NewStop = 0;   int digits = MarketInfo(symb,MODE_DIGITS);        double bid = MarketInfo(symb,MODE_BID);        double ask = MarketInfo(symb,MODE_ASK);        double point = MarketInfo(symb,MODE_POINT);        double NewRealStop = 0;        double...
Hi I need help just obtaining a simple string that contains the 3 character base currency of the current symbol. Like for GBPJPY I want the string to be "GBP" for AUDUSD I want "AUD" -- I can think of a long way to do this, but there must be an easy way. Any help is appreciated. Thanks.
Hi, I use 4hr timeframe. what i need is yesterday daily high/low/close and day before yesterday daily high/low/close? Especially by running 4hr timeframe how to get day before yesterday daily high/low/close? Please give me suggetion to get!
Hi, I'm new at programing, and i'm trying to develop my own indicator. I have created a signal that shows an arrow above or below the candle that match my conditions, and now i'm trying to create another arrow signal to be showed 3 bars after the last signal. I need to create a condition like this
EA is running, log shows this message, what is the problem?But no open orders…… log shows: 2013.08.27 04:50:05 '6112692': instant order sell 0.04 USDCAD at 1.05045 sl: 1.05234 tp: 1.04982 2013.08.27 04:50:06 '6112692': request was accepted by server 2013.08.27 04:50:06 '6112692': requote 1.05037 /
i have a code that showing me a symbol alert with colors, as i'm trying to add an alerts code to it, its just flooding me with alert! please can someone help me with that please and add alerts without flooding?.. big thanks for the helpers
[Deleted]
Hi, Have anyone install MT4 mobile on HTC One? Due to the nature design on the phone, there's no physical button on the phone. With such limitation i can't insert more than one account into the app, is there any workaround? Regards, blur19755
Just wanted to pass this along. This is the absolute easiest C++ Programming Tutorial I have ever come across. You would have to remove your brain to not understand the language after listening to this guy. Short bite sized chunks to build upon one by one. Plus its free. https://www.youtube...
This is just a generic question. I am using the same algorithm on two different MT4 platforms at the same time, and they produce two different results. One platform executes the algorithm as coded, while the other platform does not execute the algorithm correctly and results in a margin call. Is...
[Deleted]
i have three expert advisers intalled megadroid and alligator and myorderline. can they be used at the same time on different currency pairs>
[Deleted]
the Expert Advisor will do automated tradings ? once it is setup