Download MetaTrader 5

MQL4 and MetaTrader 4 - page 450

To post a new topic, please log in or register
How could I modify the following code to export the data directly to matlab?, If someone comes up with another solution I would be very grateful #property copyright "Copyright © 2008, Muhammad Hamizi Jaminan."#property link      "http://www.fxsentral.com"#property indicator_chart_window/*Filename:...
I've pasted the code below of what I think should do the job, but am not convinced I've written it properly (Just looking for someone to tell me if I am doing this wrong). Basically I am wanting the OP_BUY / OP_SELL to close the order at a pre-defined price target which is based off of...
Hello people, I created my first EA,But now i got the following error. 2013.09.26 15:14:29 Wtrader1 Signal Provider V5 EURJPY,M1: terminated by timeout 2013.09.26 15:14:26 Wtrader1 Signal Provider V5 EURJPY,M1: shutdown by timeout How can i fix this? Ps: i can't share the code during private...
hi guys, i have a problem with my math multiplication.    double inputA = 1021.00000;   int mode = MathMod(inputA,2);   Print(mode);//--------------------------> print result is 1, which is expected.HOWEVER,   double inputB = 1.02100000*1000;   int mode = MathMod(inputB,2);...
Hi, I'm using the following code as a time filter. It works well in my EA but not in the Strategy Tester. I know this has been covered elsewhere in the forum but I'm still at a loss. Any assistance would be appreciated. Thx Neil...
I'm very puzzled. I programmed this awesome expert advisor that produces the resultson this image. Details can be viewed on the attached file ... I've been testing this on almost every currency pair that MT4 has. I'm using thesoftware as provided by InterbankFX. My strategy is similar to scalping,...
I couldn't drag & drop or copy & paste the RSI onto the chart so the only place it would work was under value charts. Example: https://www.mql5.com/en/charts/807904/eurusd-m5-oanda-division1 I would like the RSI to be on the value chart and to look like this https://www.mql5...
hi guys, i have problem with getting a double value from a local file by using FileReadDouble. i have stored the "test.csv" in the "MT4_installation_folder\tester\files", the content is simply just "100.11". i have tried to rename the file to different exension such as "txt" and "dat", but no...
I'm drawing objects on my chart and using the UninitializeReason case REASON_REMOVE. If I close the MetaTrader platform, the objects are deleted - even though the expert or indicator was left attached to the chart. Is this a bug or is this normal behaviour? One would think this wouldn't happen....
During calculation of risk I need to know the point value in deposit currency. So since MODE_POINT value is in quote currency I need to convert quote currency to deposit currency. If I want to do this for any possible deposit currency, what would be the best way? Do I need to write a custom function...
Hi all, When optimizing to find the best settings a usually go for a combination of the best profit factor, lowest draw down and largest profit. However this can lead to confusion as many many results have good combinations and I end up with too many to choose from. What I am looking to do is narrow...
Hi! I made a simple internal trailing stop that doesnt work... I don't want to officially include a stoploss in the order cause they don't allow stoploss below 200points... Here's my unworking script: //Trailing Stop int TrailingStop() {double Trailing; for (int C = 0; C < Total; C ++)...
I am using 3x variations of my EA across 15+ pairs. On version_2 of my EA, I am getting an error of 4051 (as I have recently placed all my prints back in - don't know why I greyed them out in the first place :P) I'm guessing it's because of the number of lots that are currently open can not be...
Dear,,, Whu Sony Xperia Z Ultra can not support for MT4? its quite weird..
SPAM edited please ignore
vertical trendline is eating up, tail and head part of candles when the line is applied to the specific candle. I cannot see either where is the end of tail nor the end of head. Any idea how to cope this better way?
Tradeing Trader
Hello, can i check if a file is already open before i use FileOpen() function? I need that because i think i get often error messages at moment when i have my EA on more then one charts and when from every chart the EA try to open and write into the same file.
Where can I find the bug report items for Build 509? SetIndexDrawBegin used along with SetIndexStyle does not seem to limit the indi line displayed beyond the max no of bars specified, e.g., SetIndexDrawBegin (i, maxBars) where maxBars= 20 and i is 0 to 7 for currency buffers. Strangely...
There are Fibo. Pivot lines. But it shows from left to right of full length of window. (1) What I want is these lines to be displayed only from today to the rightest. How can I change this? (2) I want to color between R1 and R2, S1 and S2. Rectangle in Color. How can I do this? Thanks in advance ~...
From now, previous 4H's High price and low price to be shown in 1H continuously.previous day High price and low price to be shown in 4H continuously.previous week high price and low price to be shown in D1 continuously.previous month high price and low price to be shown in W1 continuously. These...
Hello I am getting invalid lots amount for OrderSend function. on a Demo account but not on a back test. Could someone please have a look at the code and point me in the right direction as to where I might have gone wrong. extern double TakeProfit = 40.0; extern double Lots = 0.3; extern double...
Pls i need an advice on best possible reason why trade are not copying to my mt4 trading platform, i trade on a mini account(EURUSDm) i have subscribe to a signal provider on a real account, connected successfully but cant copy trade this error message i get ( Signal - symbol EURUSD not found) I...
Hello to everybody. I have a question . how an EA knows if there is an opened position? I have searched for this issue in the site but I didn't find nothing about it. I'm developing an EA that works only with market orders because I want be sure that the trade will be take place. But sometimes, for...
Hi, what is the best way for managing timezones eg to consistently get iOpen(Symbol(),PERIOD_D1,0) for GMT. I think this is a big design error in the MQL4 history/charting.. sending date information with variable timezones, and no way to query the timezone the broker is using? Is this why people...
Hi I am trying to write a custom indicator. The custom indicator draws a single line between highs of some candles and lows of other candles. However sometimes the line needs to join the low and the high of the same candle. As far as I can see, this cannot be done using a buffer as that appears to...
Hi, Im currently using this formula to get the lot size: ThisLot = NormalizeDouble(( (MarketInfo(Symbol(), MODE_TICKVALUE)  * ( (TakeProfit + SPREAD())*Ponto(Symbol()) ) ) / MathAbs(EPTotalBuyProfit) ),lotDigits) ; Function Ponto() double Ponto(string symbol) {        if (StringFind(symbol,"JPY")...
  Silver and Gold mystery (13   1 2)
Hi: I'm trying to set my EA up to accommodate more than currencies. Instruments like Gold, Silver, Oil, and some Indices like S&P500, etc. I started off with Gold and Silver but ran into trouble due to broker differences in Contract Sizes and Price Quote differences (2 digits after the point vs 3...