Here is the deinit(). Could this be the problem? int deinit() { ObjectsDeleteAll(0, 23); for(int a = ObjectsTotal(); a >= 0; a--) { string name = ObjectName(a); if(ObjectType(name) == OBJ_TREND && (StringFind(name,"DP_Line") >= 0 || StringFind(name,"SW_Line") >= 0))
I had to go to my laptop in order to post this. I tried to send an email to info@metaquotes.net, but it is not a good email address. I don't know where else to turn, so I am asking if the people here can help. Here is the email I tried to send to Metaquotes. Dear Metaquotes.net, I am a trader who
I'm trying to read the price value of an angled line one bar right of its anchor point using the ObjectGetValueByShift() function - and it's giving me garbage! Can't figure out why. Here is my code from the indicator I'm working on
It's time to appeal to smarter programmers than myself. I have been working on this ADR (Average Daily Range) indicator, which draws lines at the upper and lower levels of the daily range. I've been running it on 5-minute charts and although it paints the lines just fine when first dropped on the
Hi Folks, I use the Surfshark VPN and I'm trying to get MT4 to send emails to my Gmail account, but Surfshark seems to interfere and stops MT4 from connecting (error message is: Mail: login to smtp.gmail.com:465 failed). I have added the MT4 app to the "whitelist" in Surfshark and it has made no
How do I create a moving average of the ATR inside an EA? I know the Moving Average indicator in MT4 allow you to choose "Previous indicator" for the applied price, but there is no selection for that in the list of enumerated "applied prices"
Hi Folks, Some of the functions I have used for years are no longer working in the MT4 platform! For example, I have used this function for years to delete pending orders, and it has stopped working: void ClosePendingOrders(int type = 7, string symbol = "X") { // type = 7 - Close All Pending
Is there any way to find an object's name if you only have it's price value? Specifically, I want to be able to determine if a Horizontal Line exists at a given price, knowing only the price value; and get the name of such a line if one exists. I've racked my brain trying to figure out how to do
I have a single demo from Oanda running on MT4, but would like to add more. It used to be that while installing MT4 you could choose a different Installation Folder and Program Name during the installation process. However, the current installation file for MT4 no longer shows the screen that allows
Friends, I am trying to modify one of my EAs in MQL4 to draw and move horizontal lines , but it won't draw the lines. This is the code I'm using. Can you tell me what is wrong? string LT = "LineTest" ; if ( ObjectFind (LT)) { ObjectMove (LT, 1 , 0 , Ask + ( 20 * Point ));