MQL4 and MetaTrader 4 - page 66

Hello; I wrote a routine that will activate a trailing stoploss. It works as it should. I have the MT4 platform forward activities to my phone under notifications (Tools -> Options -> Notifications) Problem I am having is that every tick the trailing stoploss gets adjusted my phone will beep (notice
I have developed the below code to try and sum all open stop losses, across multiple currencies in the portfolio and then express as a % of the Total Account Value (in USD base currency). I don't get an output that makes sense - can anyone help improve the code to give an accurate and stable result
Are there any quick commands for objects like lines, rectangles and more in meta trader 4
Hello. I tried to write the following code without using history file. But there is a problem. I couldn't figure out what price value data[][1] returns. I would be grateful if someone could tell me. Source code removed by moderator because it is only useful for scammers and not for proper EA code
[Deleted]
iam using the peroid converter script to get The H12 offline chart but the chart is missing one candle look at pictures below: look at the time , one should be at 00:00 and one should be at 12:00 , but they are both at 12:00 thanks for your help
Hi I created a trading stats window. When I hover the mouse pointer over a description it will popup a tiny window (almost like a button) that shows the name I gave to the object. ObjectCreate ( "Title" , OBJ_LABEL , 0 , 0 , 0 ); In my example it will popup the word Title. How can I prevent this
Hello Coders, Please I need your help. I recently started learning how to program EAs but I'm currently having a problem with my EA opening multiple orders per candle tick. I could have used the OrdersTotal function to stop this but that will ultimately limit the EA to only one order but I want to
Hi, I am getting the error " EX4 file must be compiled using # property strict directive" while uploading new version of EA to market for MT4. How can I fix the problem? Regards
Another one Slawa: No ability to allocate strings inside of DLL's. I need to pass string with fixed length, and use only that number of characters. Will you change it some day? Ruby
I am getting this message when trying to submit my program file for the market. I did not use the debug mode to compile the program. I attached the file and this is what happened
I have a public endpoint i want to hit with my EA the endpoint is here:- https://t6t1yeuvil.execute-api.us-east-1.amazonaws.com/prod/FRED and if you hit it with the browser it returns {"current rate":"5.0"} however, using the EA it returns this:- {"current rate":""} like i say, i can use the
I have a problem about debug. Could you help me? return value of 'OrderSelect' should be checked MA.1.mq4 111 7return value of 'OrderClose' should be checked MA.1.mq4 131 16return value of 'OrderModify' should be checked MA.1.mq4 141 22return value of 'OrderClose' should...
Hello Cummunity, the last days i have been wondering what ECN Brokers are and why people use them. What i found and read gave me this picture: ECN Brokers don't charge you a high spread but they charge you a commission depending on the lotsize you trade - approx. 6 Dollars/Std. Lot They handle your...
Hi guys, I am trying to develop an EA based on few indicator But When I attached to a chart got this massage "Critical Error While Running Expert, Array Out Of Range" Please help me to fix this error thank you in advance. Here is my code
Good evening all, I am making my first steps with mql4 and I wanted to get an annualized standard deviation on returns (as a percentage). My trial with isStdDevOnArray() gives me a result close to my expectation but not exactly as expected. Could someone explain to me why I don't get the same
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