I have this object on chart if ( ObjectFind ( 0 , "hh" ) < 0 ) { ObjectCreate ( 0 , "hh" + IntegerToString ( 3 ), OBJ_ARROW , 0 , 0 , 0 , 0 , 0 ); // Create an arrow ObjectSetInteger ( 0 , "hh" + IntegerToString ( 3 ), OBJPROP_ARROWCODE , 238 ); // Set the arrow code
Please I am trying to replicate a feature, where if price is going up, the distance of the high to the open, is added from the low, bringing the low line upwards, but it should not be greater than the low of the day. If it should get to the low of the day, it would remain unchanged and send a
Hi, This read file works, but what is problem because I can't write in another application, like C# (file is already open in another process). this is my code: string sym= "DarkPoint_test.txt" ; void OnTick () { if (CountTrades()== 0 ) { //--- open the file // ResetLastError();
Hello everyone I have some issue with DDE excel spreadsheet . I can't to use the data from table to any calculation. For example, I would like to calculate pip value for USDCHF. So, I use this formula: 10/value of USDCHF. But the result is #VALUE. Is there any solution? Thank you
[Deleted]
Is there a way to use Buy/Sell Stop Limit order type in MetaTrader 4? The broker i use doesnt have MT5, which has that order type
(14 1 2)
Is there a way to use Buy/Sell Stop Limit order type in MetaTrader 4? The broker i use doesnt have MT5, which has that order type. So maybe a script or EA or something like that will do the job on MT4? if you find a way to do it, let me know. thanks.
[Deleted]
Hello, I am trying to write a code which closes orders by rule. However, I could not get a success. The need is close order, first close-> max value, second close--> min value, than we have new reduced orders list and the same rule for remaining list: first close-> max value, second
Hi, I'm trying to test and optimize EA's, is there a way to make testing EA's on historical data automatic? What I want is a script (or anything else) that will run my test repeatedly with different parameters . For exaplme that I would specify a list of parameteres and run the testing during the
hi im trying to code a multi symbol expert and i'm almost done but i have a problem on converting points to place trades but when i try combining 5 digit currency and 3 digits currency. the 3 digit currency always place the stoploss at the wrong place. but when i trade them on separate backtest they
HELP ! I just installed the MT4 Trade Manager I my surface pro and the resolution renders it unusable. I adjust the screen resolution and everything changes but the trade manager. The fonts size is good but the box is too small so it is all scrunched up and unreadable. Normally you can just click on
PLZ help MQL4 I am writing an expert to buy & sell in direction of open of 22:31 open price of yesterday , this is what i want to write: if time passes 22:30 ,pick 22:31 candle open price & use it as a constant up to tomorrow 22:30, Can anyone help
Hey guys! This is my first post here as I am new to MQL. I have been trying to create a simple strategy, which trades based on indicators gathered from the "semafor123Triangles" custom indicator . Long story short, as you can see in my code, semafor indicator has 7 "spots" which give values. These
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 to all, I'm glad to represent my development TickScalper EA according to ideas described here and here. Especially for this EA I've created some new tick indicators. This new EA has big number of different settings devided on 5 groups: - Main - Timing - Sets for tick or fast MAs - Sets for slow...
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
Dear all, hope you are fine, I need to draw rectangle objets but only with borders, no background (check attached samples). Could you give me some code sample? Thank you

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.