MQL4 and MetaTrader 4 - page 193

Hello, everyone, I have met a problem when coding EA and I was wondering whether you could be kind enough to enlighten me. The internet connection to the server here is sometimes lost and reestablished automatically. The following is my understanding of EA working when internet is lost and...
I have coded an ea that trades at the close of the current candle. However my system is traded on the daily chart. The spreads are much higher at the open of a new bar. Therefore I would like to perform all my trading actions before the candle closes. Any
Guys, I am calling upon your expertise on how to solve the following issue, while executing scalping strategy I have been having problem with the Sell Stop or the Buy Stop order being triggered by the MT4 way late after the price has moved, I am talking about 20 to 30 pips after, this is messing
I cannot associate thecolor to the level of percentage, in either direction retracement. Someone cancorrect the command string? Thank you. //+------------------------------------------------------------------+//| AG Multi Color Fib.mq4 |//|...
Hello, I need help for my code The trailing stop does not move(it's fixed when it is active), it should move once the price go to the take profit here is my code for that void Trailing_SL() { for ( int i = 0 ; i < OrdersTotal (); i++) { bool res = OrderSelect
Hi All, I am new in MQL4 and I am trying to understand the strategy testing of MT4. When I try to run my EA, the Open/Close values does not match what is on the chart and it is way off: 2021.07.19 00:09:02.182 2020.07.16 00:00:00 DoyEA AUDCHF ,Daily: Executed: 2020.07.16 00:00:00 Prev Close:0.66169
[Deleted]
Thanks for any help on this. I just want to draw an VLine (vertical line) at each ma cross on my charts. How can I access back-data for an iMA? (I can code it going forward, that's simple, but going backwards?) Thank you very much for any help!
I know this is going to seem a bizarre request to many of you but is there a way to move the chart over by 30 minutes.  By this I mean where currently a 1hr bar shows the activity from 8:00 - 9:00, 9:00 - 10:00, etc, is it possible to have the hourly bars showing the activity from 7:30 - 8:30, 8:30...
  MT4 on M1 Mac?  (1)
Hey everyone, Anyone here using an M1 Mac with MT4? I currently have an intel 16" Macbook Pro, and MT4 works just fine using the ready-made package. Interested in buying an M1 Mac but would just like to hear some input first from other people. So, if you are using MT4 with an M1 Mac, does it work
  Lomb Periodogram  (11   1 2)
Here's something interesting that I saw on the Wave59 website. Modified Lomb Periodogram. The red oscillator reveals the relationship to the dominant market cycle. Wave59’s proprietary version is intelligent enough to know when it's confused. The green histogram indicates the level of error so you...
hello, I have a different account trading in  different brokers. It's difficult de manage it. So, is it possible to open many account trading in only one MT4 multiterminal with  differents brokers? If it's possible, can you help me. thank you
I need mql4 file of CSM indicator as shown in picture I mean different timeframe values showing
Hi there, Is there anyway to round 0.001 to 0.01? Eg : 0.012 to 0.02. I tried round (); Unfortunately it only round up 5 and above. Thanks in advance
  MT4 + DLL  (3)
Hi, What programming language is the best choice for creating a DLL file for MT4? According to this: https://stackoverflow.com/questions/3921541/programming-language-for-creating-dll-c-or-c-sharp C would be the best choice to avoid compatibility issues that could happen with C++. Is this true for
Hi, I've built an EA and wanted to backtest it in a Strategy tester. When using historical data from the broker, on EURUSD, everything works fine. But when I switch to any other pair, strategy tester just stops at x%, around 10-15% depending on a pair, and does not want to go any further.. Does
Hi All, Please help I have 1 Minute (M1) historical data going back to 2006 and I was able to use the MT4 PeriodConverter script to succesfuly convert M1 to M5, M15 and M30 using the steps below, however when i try to do the same for H1 (using 60 multiplier) and D1 (using 1440 multiplier), the
Hi, Can someone help me with a simple matrix operation? Here, I have built a matrix of all open orders. I have sorted them from the most loss-making to the most profitable. Now, I take the most losing order and check if the profitable orders are able to compensate it with a small profit. It seems
Hello! My MT4 does an auto shutdown immediately after opening the app. I've uninstalled the program a few times but nothing seems to work. Any suggestions
I wonder there is a difference between below code. because I want to make backtest speed faster. if (a> 0 ) Print ( "OK" ); if (a!= 0 ) Print ( "OK" ); If you know some other ideas to make backtest faster even in everytick mode with icustom. Please tell me. Thank you
[Deleted]
Hello all Quick question, what are the steps to become a freelancer on here - if any? Do you have to change your account type/status or can you just bid for jobs? Cheers
Hi guys, I want to try and make some sort of system to track the performance of all of my live accounts, basically doing what MyFXBook does with its auto update feature. Can someone point me in the direction of where to start with this? ie. Methods of exporting live data with links and then I will
  Grid System  (4)
Hi guys, I'm looking for someone to point me in the right direction for developing a grid system as I cannot seem to find the info I am looking for... Basically I want the system to open a buy and sell position every 1R (X pips), with 0 stop loss and 1R Take Profit. I have managed to write the code
Hi i have an indicator i want to use in my ea through iCustom but can't get it to compile due to "OnCalculate not found in custom indicator" error.   Here is the code. //+------------------------------------------------------------------+//|...
  Custom EMA  (5)
Hi, I try to create multiple EMAs which is parallel to H1 Ema 20 with 10 pips interval by editing the custom moving average as follow (highlighted ) and it doesnt create parallel lines but overlap on existing ema 20 line. The completed file is attached. Please help
Hi, somebody knows if is it possible to get in some way the CQG feed (historical and live) for mt4? I read something about the api...
Has anybody here used MT4Bridge? Looks very promising enough. Anybody care to share honest feedback? MT4BridgebyZagTrader.pdf
Hey guys, Im having an issue which Im sure the answer will be straight forward. Im basically building an EA in MT4 which is built on basic indicators, for my Stop loss i am refering back to these indicator values, position type. However I want to know how I can refer back to an indicators value
  Can't add custom indicators  (32   1 2 3 4)
PLEASE I JUST GOT A NEW SET OF CUSTOM INDICATORS BUT THEY ARE NOT ON THE LIST OF CUSTOM INDICATORS EVEN AFTER APPLYING THEM CORRECTLY IN THE EXPERTS-INDICATORS FOLDER. PLEASE I NEED HELP TO GET THESE INDICATORS ON MY CHARTS. SEEMS THERE IS SOME CHANGES ON THE MT4 PLATFORM THAT AFFECTS THIS
i'm trying to open a url in a web browser by a EA i tried to search an a found this topic  https://forum.mql4.com/14282 i think it is close from that i want but the code is not work because it is not tested and it made to open file not a url    I hope to find help here   thanks  
Please can someone tell me how can i message seller ? <...> i cannot contact him through the message pop up, it is not showing in the friends list when i add his name I paid £49 for the money manegment app, it is suppose to make placing order easy and quick, but it will not work as it keeps showing