MQL4 and MetaTrader 4 - page 6

Dears, Here I encounter a problem when I want to call the color out of my custom indicator. For example, I have a trendline in changing color. Green means uptrend and Red meand downtrend. When the color changes from red to green, place buy and vice versa. The question is how to call the color or...
Hello, Normally, Stop Loss execute in broker server and it send a data of Stop Loss value to broker. This has a disadvantage of too many operation and also Stop Hunting from most of the Forex brokers. To avoid this, i heard there is a concept called Virtual Stop loss which act same as normal but it
Who knows which technical index of mt4 is better and whether the bollinger band works well
  Comparing prices  (3)
Hello, I would like to warn the community about comparing prices. Code like: Close[n] < Close[n+2] is not reliable and gives invisible differences for the logic from what you can tell, when using Digits to limit the number of displayed digits. I just found this out by going a bit crazy on code that
I want the value of S1Buffer, which is calculated in the 15-minute time frame, to show the same value for lower time frames, such as the OpenBuffer, CloseBuffer, and COBuffer buffers, which work the same way. Can anyone help
Hi everyone, I'm trying to write mql4 code that.... as soon as the last open trade in chronological order closes due to reaching TP, all the other open trades and all pending orders also close. Obviously I'm not an expert, however I tried different solutions but I was stuck. Can anyone give me
Hello, I made the code, which close old trade after X time from Order Open Price. My code : void StopOrderSL( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) { OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() != Symbol () ||
Hi, im having this problem, i developed a custom indicator and added a licence to it which includes the account number and expired date, i use to compile it and works fine, but suddenly im getting this error sayin that my account is not registered which it is cuz i have not modified anything on the
//+------------------------------------------------------------------+ //| qjol sol for wininet.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com |
  Change chart line width  (19   1 2)
Hello traders How would i change the width of chart line? There is setting for color in chart properties but I'd like to have the line thicker. Thanks
Hi guys, was wondering if anyone knows how to do this, just bought an EA and the author advised this, not sure how though
I'm using MT4 4.00 build 509, but this bug has been around for quite some time. The attached program draws Daily cycle lines using DRAW_HISTOGRAM to draw vertical DOT lines. The desired line style is DOT, which works when zoomed out, but if one zooms in to the 2 closest zoom levels (5th or 6th),...
Greetings, I would like to inquire about displaying dots in a histogram. When the Shape style of an indicator is set to DRAW_HISTOGRAM and the line style is set to STYLE_DOT, changing the chart scale to 4 or 5 causes the line width to become STYLE_SOLID, even when the width is set to 1. Is there a
Trying to upload my productto the market place and I keep seeing this at the Upload screen. "Your product's category is Experts, correct program type for it is Expert Advisor" Problem is there is no way to pick this option. As MQl4 has changed since then. And the how to page was made in 2012. And
Hello, I am creating a trading robot in MT4, part of it works with resistance and support zones: iHigh ( _Symbol , PERIOD_M1 , 0 ); //Example The problem is that by using such a small time period, the broker simply does not have enough historical data, is there any way to solve this problem
Is there any way to add a default comment for every trade, i have a EA but the comments are adding the name of the EA? I would like to have the settings automatically hide that for every future trade the bot places
i need this script according to the following list: take buy,buy2,sell. at same time vice versa for sell,sell2,buy symbols need to be in input parameters gbpusd-buy,usdcad-buy,gbpcad-sell. take profit at input parameters thats it simple opening trades will in group and closing trades will also in
[Deleted]
Hi I want to make an EA that closes all orders and exits metatrader if certain criteria have been reached. I know how to close the orders, but I can't seem to find how the EA could close the whole metatrader program. Anyone knows? thx in advance
  Current Month Name mql5  (18   1 2)
How please write a formula so that I can display the name of the current month in the label
I'm wondering if it's possible to have a trace on the mobile chart of all the past closed trades. I'm not talking about desktop version, I'm talking about MT4 mobile APP. Thanks in advance
Dear all, I try to make the custom indicator about the cutting of MACD main & signal. Rule is (with the upTrend): 1. With M15 the MACD main line cut up the signal line -> sign1. 2. Sign1 = true -> with H1, check the MACD on the up or down trend (uptrend when mainH1 cut up signalH1 & oppsite). ->...
  Tools to analyze the trades  (102   1 2 3 4 5 ... 10 11)
First of all I am using this small script (attached) created by Beluck and fixed by Igorad. To use it be sure that you have "all history" in "account history" in your Metatrader (for the right calculation)
Several days trying to correct this fateful error, reading on the forum and following the recommendations of pre-publication checks on the Market at: https://www.mql5.com/en/articles/2555 . I have already implemented the following checks: 1.- Insufficient funds 2.- Invalid volumes 3.- Takeprofit
While interacting with sellers of signals and trading applications, we have decided to launch the affiliate program. It allows all sellers to interest MQL5.community members in promoting their products and signals. Thus, both sellers and promoters will benefit from the program. Sellers will receive...
Socialization of MQL5.com continues, and we keep upgrading the Profile. Today we've launched a new function - attracting visitors to the site. In addition to it, we've introduced a new rating. Now, you can easily find the number of users that you have attracted, in the Achievements of your Profile....
Hi :) Please could someone be so kind as to attach mobile push notifications to this MT4 indicator? Indicator is in attachment. Thank you
Hi, I'm not good at understanding the programming language for the Mac OS and Windows NT plus Wine 64 so I need help with this issue. 1. Download & Install the MT4 Mac OS from my broker (FBS) and they couldn't find a way to place the file (indicator and expert file) into MLQ4, Data Folder. I was
#property strict int OnInit () { MqlDateTime _Time; TimeToStruct ( TimeCurrent (),_Time); Print ( "_Time.day_of_year = " +_Time.day_of_year); Print ( "TimeDayOfYear(TimeCurrent()) = " +TimeDayOfYear( TimeCurrent ())); return ( INIT_SUCCEEDED ); } It's should same value ? I also tested with the
  Wrong RSI on my EA project  (16   1 2)
Hello Everybody, I try to create an EA based on RSI calculation. I am using the following fonction : void CalculateRSIValues() { int totalBars = MathMin (BarsToCalculate, iBars ( _Symbol , _Period )); Print ( "BarsToCalculateMathMin:RSI " , BarsToCalculate); Print ( "Taille de
Dear, Anyone can support, I can not find the problem. It keep reporting error 5002 void ReadTextFileAndExecuteSignals() { //--- correct way of working in the "file sandbox" ResetLastError (); int filehandle= FileOpen ( "D://GBPUSD.txt" , FILE_TXT ); if (filehandle!= INVALID_HANDLE ) {