MQL4 and MetaTrader 4 - page 53

  Martingale with step  (12   1 2)
Hello guys, nice to meet you, sory for my bad english, i just started to code EA two weeks ago, and i need some help with my martingale strategy, i've been struggling for almost a week now. Short story, my code is execute an order when MA is cross, either up or down, and when order hit stop loss it
I have a mql4 code from a few years ago, and when I compile it through the metaeditor it doesn't run in the metatrader, and if I put the code in the metatrader so that it is compiled right there, it works. What can be done
  OrderSend delay  (5)
Hello, if I try to place many orders successively from one EA then I get a delay 2-4 seconds between each order. Why does it happen and how can I avoid this delay? Thank you
  Negative Indices  (6)
hi everyone, i have an indicator and there is a variable "r" in that code that starts from -1 . if you change it to zero, the first candle doesnt have amount. i want to know why is started "r" from -1 . i want to write this code to another language , can someone help me ? Thank you :)
So I have a great computer and great specs and never have issues with going over on my cpu or memory (even when the issues i am talking about arises) On the weekends like Friday afternoon, all of Saturday and most of Sunday if I have a lot of mt4’s up, they run super slow and freeze up. During the
why i cant to download mt4, can you help me
Hello I am using a VPS from a German zone. It can't install MT4 (installed from the official setup.exe). It freezes as shown in the picture and I've tried with several brokers but encountered the same problem. P.S. I tried installing it on my personal machine in Thailand and it worked normally
I coded a break even code. But when I run it, sometimes it shows order modify error 1. I just want to move stoploss to zero(0) but I tried to use = 1 to avoid order modify error1 Can you advice where the problem? extern int MoveToBreakEven= 2 ; //BE_Start Pips void BreakEven() { int exitTypePer
Hello, i want to write code to solve problem: Input the price and order buy or sell it. But it wrong because some case ( Most of buy). And i think add bid and ask price. So i write the code: First, this is code not add bid-ask price: //Val == 1 is sell, val==2 is buy //And sl is in input. if (val ==
Hi all, I created a dashboard for my expert advisor using graphical objects. I decided each object's position and size using OBJPROP_XDISTANCE, OBJPROP_YDISTANCE, OBJPROP_XSIZE, OBJPROP_YSIZE. Since monitors with different resolutions are not available, I wanted to understand if in some way the
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