MQL4 and MetaTrader 4 - page 65

I've found a code here on the forums using webrequest to read messages on a telegram public channel. It works great but I am wanting to only print the last message posted. So I need a check added that will check the data from the webrequest and store the date/time in a variable maybe? Then the next
I'm writing an indicator with a switch-case statement and it's behaving in a way that I can't understand. I'm wondering if someone might have some insight? This switch-case runs a state machine. Once in the upwardTrend or downwardTrend state, it should only be able to go back to the noTrend state if
Apparently MQL4 has these structures defined, which come from MQL5 and find their usage in MQL5. MqlParam mql_param; Print ( sizeof ( MqlParam )); // Structure is fully functional in MQL4 double d_val = mql_param.double_value; long l_val = mql_param.integer_value;
Hi all, how can I set the minimum entry level if the stop level in the specs is zero? I would like to write something like this to avoid error 130: Entry_Long = Max(Entry_Long,Ask+MarketInfo( Symbol (),MODE_STOPLEVEL)) Thank you
  Corn min stop  (4)
Good morning, I have a problem in placing market orders with the following Corn CFD (Order error 130). Let's say for instance Ask price is 597.50 and i want to place a market order. Where is the minimum stop I can place? Thank you
[Deleted]
  MT4 Time filter  (5)
Hi, I've been trying to put together a time filter with multiple starts and finishes. the parameter starts and finishes once, but when i repeat the procedure there is no response. //String for the start trading time input string StartTradingTime= "08:00" ; //String fo the stop trading time input
Hello Guys, Since i manage some my acoounts at different broker, where my trading style is scalping i need to find a tools that can execute my position each of my account. Means i just set one position in that tools, and that tools will execute same order with all my account of different broker
Hi all, I'm trying to insert a BMP object but even if the object is created correctly and I have no errors in compiling, I don't see it in the chart ( but i see on object list ). I can't find the error, thanks to whoever can help me. The file is 24bit in bmp. #resource "\\Images\\test.bmp" void
Hi there, I am running an EA in MT4. Initially MT4 is using around 50mb RAM. After 2-3 weeks it gets to 150mb RAM and will continue to use more and more every week. I assume this is normal, my question is how to offload the RAM without closing MT4 and respectively without disturbing the work of the
Besides the 6 basic trade operations as detailed here https://docs.mql4.com/constants/trading, I've noticed that when selecting from the history pool, there are also: type 6 which is a 'balance' line and type 7 which is a 'credit' line. Questions: 1. Where is this documented? I simply can't find it...
... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit "
Hi; I get 0 errors, 0 warnings after compiling my EA. Yet in the coding line numbers it shows this symbol The code to the right of this symbol is: // set variables needed to calculate lotsize double MaxRisk2 = MaxRisk, LotSize2 = 0 , newBalance = StartUp; Does anyone have any idea what that symbol
does MT4 allow paper options trading, and graphical display of iron condor. Newbie here. Thanks Vin
[Deleted]
Hello there, I'm struggling with the SendNotification function. I've tried different codes following advice in the forum that it cannot pass more than one argument, but i still don't get the full notification. Here is my current code: Print("Error: "   + ErrorDescription(GetLastError()) + " closing...
Hello! Sorry for my English. I've been looking at the MQL4 .doc and I haven't found any command or command lines to be able to get/detect when a trade is closed. Would someone be so kind and help me. My idea is to incorporate this line/command lines as a void or similar and when an
Hi, I'm looking to receive either email and/or SMS notifications from two out of several EAs for MT4 that I'm using. However, neither first nor second EA has an option in Settings of EA to send any notifications. I'm referring to my desire to get notifications from only two EAs and not all that are
I opened an MT4 demo account, but for some reason, even though it was set to USD when I opened my account, my balance shows AUD. I've tried re-opening a demo account 3 times already, and it keeps on showing AUD instead of USD? What could be the reason for this? How do I fix this? Thanks
The following code generated an error even though no stop loss was set. int buy = OrderSend ( Symbol (), OP_BUYLIMIT, LOT, Open[ 0 ], SLIPPAGE, 0 , 0 , "buy" , 9999 , 0 , clrRed ); The error codes are as follows 2023.05 . 08 00 : 08 : 39.964 2022.07 . 28 12 : 45 : 00 fenix BTCUSDT,M15: OrderSend
I would be grateful if anyone is willing to give me the mql4 coding for the buystop and sellstop tools
where is the trade lib in mt4 in mt5 its visible but i cant see it in mt4
  Brainwashing: system development  (58   1 2 3 4 5 6)
Just to inform that Alex created the Brain washing EA. The second version already. Check in download area
I have written a simple trading pannel which will open trades based on button clicks but I just noticed that sometimes it would open trades automatically , even though I havent clicked any button. here is what the code looks like : void OnChartEvent ( const int id, const long & lparam, const double
  History Center  (3)
Hi, I want to backtest a EA strategy on I ndices, DE40 1min. I try to download 1min data, but there are no more data back than 1 week. Is there any place I can get this data? In worst case get free DAX data somewhere? I`m only interested in the trading happening in open hours of DAX anyway... Thnx
Hi and welcome I'm copying someone but all the time he opens some pairs it causes a drop in my account and always close on negative! Is there any way i can delete this pair so when he opens it it doesn't reflect on my account If i deleted this pair from the market watch on MT4, it can fix my problem
[Deleted]
Hello everyone, I have this indicator: //OBJ_LABEL prefix+"close" already created during OnInit //OBJ_LABEL prefix+"mkt_open" already created during OnInit //int mkt_time = 1 int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[]
I've been trying codes for two days and nothing is working. I want to make an indicator that draws a dashed line from the daily open price to maybe 15 bars past the current price just showing a line where the daily open is but I want the line to start at the actual open price. I came across a thread
Hi I need to open a .EX4 file but there's no app or program to open it. Additionally, I even checked on the mt4 but don't know how to open it there. Please help
  Moving Average Retest EA  (13   1 2)
Hi guys I'm developing a simple EA which is based on two Moving Averages (50 and 150). I made the code already for the MA break but now i need another condition, where the EA should only open a trade when the FMA gets retested. Does anyone have an idea how I can code this? I uploaded a picture when
  Unable to instal MT4.  (13   1 2)
Hello there. I have been unable to install MT4 on my HP laptop. There is no error message not even error code just text on install window "Sorry, something went wrong: Try again later!" Going trough posts I did not find any that would match my problem. Has anyone else been experiencing these sorta
I’d like some feedback on a problem I’m seeing with an EA with delayed execution trading on the MT4 VPS The EA has very simple entry rules: - The EA should place a “market order” at the open of the 17:00 (NY 10:00) 1 hour candle, if the RSI condition is met - The RSI indicator, length 15, condition