Hi all, I am downloading historical data from MT4 History Center to use in an Excel-based backtest program. I am able to download about 1000 bars in each timeframe. At the same time, however, I see something like the following at the top of History Center: "Databases: 1003 / 2795 records". To me
I'm trying to test my EA with a MA line. If it crosses to the upside it's a buy and if it crosses to the downside it's a sell. I'm testing if this works before going on by letting it comment buy or sell. It's not working so far. extern int Price = 0 ; //Apply to
[Deleted]
Hi, i got access to a trading account by investor PW. I checked the trades that were made and found suspicious trades in XAUUSD, see screenshot. Trades had been opened but there were no price at the moment of openeing (marked yellow). Any ideas how this is done?Other trades seems to be ok
Hi gang, I'm trying to build an indicator for the first time in MT4 and myself and my programmer friend are stumped why the histogram is not working the way we want in this indicator. We've been examining other indicators that use the histogram to create a cloud between two dynamic variables, and
Good morning to everyone, how can I run an ex4 file (I don't have the mq4 file to compile it) on MT4 in windows 10? The software does not recognise the file, but when I try to buy it on the market it says that it needs Metatrader 4 for Windows in order to run. Thanks
Hello everyone, Going through the first steps of MQL4 programing and starting from something simple (code attached). Compiling shows 0 errors and no warnings. When I run it on the backtester (during 1 full month) it only places a single BUY order which it closes immediately after opening. I've tried
I've been testing many different trend based indicators, and some in combo too. I find <Deleted>(both of which don't repaint) fine so far. I trade two crypto pairs which trend quite a lot, so don't mind as little as a few signals a month. I'm not interested in catching the top or bottom of a trend -
#property copyright " N.Huy "#property link ""//+------------------------------------------------------------------+extern double Initial_Equity = 3000 ;extern double Profit_Rate = 5 ;//+------------------------------------------------------------------+double Profit_Equity...
void OrderEntry( int direction) { if (direction== 1 ) if ( OrderSend ( Symbol (),OP_BUY,GetLongContracts(),Ask,SLIPPAGE,GetStopLossLongPrice(), 0 , NULL ,MagicNumber, 0 ,Green) < 0 ) { Print ( "Order Send failed, error # " , GetLastError ()); RefreshRates (); } if
I want to read value of previous down and up leg of zigzag . here is indicator //+------------------------------------------------------------------+ //| MultiZigZag | //+------------------------------------------------------------------+ /* 31
Hello, My custom indicator uses price action and other indicator info from higher timeframes which I use to determine various parameters to assess the confidence level of the trade setup. While this works fine in real time, the higher time frame parameters don't seem to refresh when running the
int OnInit () { TF = Period (); drawLabel(); return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { if ( ObjectFind ( "LabelDebug" ) != - 1 ) { ObjectDelete ( "LabelDebug" );} } int TF; void drawLabel() { string name = "LabelDebug" ; string text = "TF: " + TF; if
Hi everyone, i want to check when RSI cross some level (let say 20) for the first time after it came down from level 50, the second cross to same level i dont want it just the first one, and this is my attempt: bool FirstTouchLevel20() { int Lvl20TouchCount = 0 ; for ( int i = 1 ; i <= 100 ;
Hi, I wish to have my EA start automatically when the MT4 terminal launches> I have tried to implement this : https://www.metatrader4.com/en/trading-platform/help/service/start_conf_file but it seems to be completely ignored, MT4 starts exactly the same with or without the .ini file ? this is my
Good day... Can someone share with me a code of an MT4 where I can programm the closing of a trade , after X candles after the trade is opened. Or.. where can I find this guide. Thank you very much
Please I am building an ea that uses martingale, I want to know a loss trade loss in pips whether the trade is closed before hitting SL or it close hitting SL all I want is to get the loss in pips which the next trade TP will be that loss trade pips. So even if next trade loss or any amount of trade
Recently, PUSH notifications in MT4, not stable work or does not work at all. Pings are not stable, with extended intervals or not at all. I try it from different computers and IP addresses. Maybe someone knows what, why this could be? Someone, somewhere, is banning something or is MQL5 having
anyone facing the same issue when installing MT4 on Cloud computer? Keep prompting insert proxy server login... need help urget appreciate your help and comment thank you
#property copyright "" #property link "" #property indicator_chart_window extern int Pips = 50; extern bool Alerts = true; extern bool PushNotification = false; double point; datetime alerttime; //+------------------------------------------------------------------+ //| Custom indicator...
Attached is EMA Crossover indicator, can somebody help me in changing the indicator from buy sell "arrows signals" to "horizontal lines" on the chart. Also previous horizontal line should be deleted on the formation of new. Thank you
Hello Everyone I'm working on a project right now using data from four custom indicators on 9 timeframes in mql4. Currently I make use of the iCustom function to get data from necessary buffers and bar indexes. As you can imagine, I have over 60 iCustom calls and its slowing down processing
Hi all I've been racking my brain on this all afternoon and can't work out where I'm going wrong... My goal is to find the high/low between now and a previous trade. I know the general gist of it is (1) find current datetime and past reference datetime (2) find the hours between the two datetimes...
I have an old MT4 account and there is an amount in it and I cannot withdraw the amount because I am not familiar with the broker. Is there a way to find out the broker or withdraw the amount
How do I get a region, lets say daily TF to display the same value for my index buffer, without having to use time[] array. I used iTime() to get the values of the various time to calculate for, but the index buffer is having different values for each candle and not the time frame regions. Thanks
Hi all, I guess what I really need to plan my next project is a generalized list of what custom indicators CAN'T do. vs what EA's CAN'T do. Or at least some main feature differences that might guide me in deciding EA vs Indicator. Please advise Thanks
I am new to coding: how do I code something like this: stochastic833 signal line is going up , trigger: rsi7 crosses below 40
I am trying to draw a trend line in a separate indicator window , but the lines are being drawn in the main window instead of indicator window What am i doing wrong ? here is my code : #property indicator_separate_window #property indicator_minimum 1 #property indicator_maximum 2 int OnInit () {
Hi Team, Weird thing just happened (21:25:48 2022.03.24) I clicked on the X to close out three of my open XAUUSD Long trades and instead of closing them out, MT4 / IG opened three short trades on AUDJPY. I was not on the AUD JPY screen, and i did not have any trades open on the AUDJPY. Every time
please i am finding it difficult to run mt4 on my desktop can someone help me
input datetime InpDateTime = TimeLocal (); I would like the input panel to always show the current date as the default value when prompting for a date. However, when I write the above, I get an error. What can I do
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.