MQL4 and MetaTrader 4 - page 2

Here is a step by step guide for buying, installing, testing and using a Metatrader 4 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
I want to add different color to text that is in same line, in a single ObjectSetString , For Example If the string is like this: This is Total Profit / Loss: $250 / -$20 Then I need to show like This is Total Profit / Loss: $250 / -$20 $250 => in Green color and -$20 => in Red color Is this
  News Trader EA  (1270   1 2 3 4 5 ... 126 127)
This is News Trader EA created by Igorad. Besides, we may use this EA to draw the lines with text on the chart when the news coming. Explanation of the settings and how to use this EA you may find in the next posts. ---------------------------------------------- Version 2. - Please find attached the
Hello, I am new here and new to MT4. I had several active charts with active EAs attached to them and their information windows were all visible. All of a sudden most of them disappeared but the EA name and the smiley face are still there, I can't for the life of me get them back. I even went as far
  Slow terminal  (3)
My mt4 terminal is so slow that it crashes, Sometimes i can close it with the task manager only. I uninstalled the program and reinstalled it, but it comes back as I deleted it. How can I speed up this very slow terminal? Or I can delete it completely, to reinstall it of course. Thanks for help
hello, i have created a Semi Automated EA that gives me signals. problem is that in the same time that my EA is Attached to 15Min charts in 8 different Currency Pairs, I need to keep changing the time Frames to Verify the signals. and every time that i Change the time frame, EA Automaticly Deinits
My grid ea uses count buy and sells and close all in profit It works perfectly on 1 pair When 2 or more pairs is loaded it gets confused Is it possible to count only for a specific pair? Please advise what must be added and where in the code below int Count_Buy(){ int OpenBuyOrders=0; for(int
string accounts[]; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit () { string url = " https://example.com " ; string
Hello, Different brokers have different Margin call and Stop out level percentage. How to get that using MQL4 code? I am trying something like this but not working double marginCallLevel = AccountInfoDouble (ACCOUNT_MARGIN_CALL_LEVEL); double stopOutLevel = AccountInfoDouble
Hi everyone! I hope you are fine. I have a dumb question. I have problems auto-calculating lotsizes for CFDS -only on some brokers-. On *some* cfds, the tick value defined by the broker is wrong, or at least I think it is. For example, for the symbol SP500 at GlobalPrime.... MarketInfo(Symbol(),...
Hello, I just started learning MQL4 and am doing some small experiments. My request is to draw the line as "Dot" but I couldn't manage to do it. Can you help me with this? //+------------------------------------------------------------------+ //|
I want to get candle price data with iHigh and iLow. When I backtest EA in TF H1 and try to read TFM5 price data, but I can not. double price = iHigh ( NULL , 5 , 0 ); If I run this code in TFH1, why I can not get data
i am facing problem in signing in from mt4 android since this morning. i wanna know if this is happening in any other part of the world or not
Dear experienced traders, It seems not possible for me... Can I test 2 EA together in same strategy tester in one terminal? Thank you in advance and best wishes, Sky
You may have already noticed that the most interesting things now happen mainly on the MQL5.community. MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred...
I am looking for following tool/script. 1. close all trade, close all short trade, close all long trade in a chart. 2. open long/short trade total lot size, total loss/profit, avg price point dca. is there any free script available? kindly let me know please
void OnTick()  {      double vol=0.01;      Print("AccountFreeMargin before:",DoubleToStr(AccountFreeMargin()));      Print("AccountFreeMarginCheck:",DoubleToStr(AccountFreeMarginCheck(Symbol(),OP_BUY,vol)));      OrderSend(Symbol(),OP_BUY,vol,Ask,0,0,0,"test",0,0...
Kaufman AMA ( adaptive moving average ) made specificaly for the new metatrader 4
Hello, What is the function equivalent to OrderCalcMargin from mql5, for mql4? Thank you
Hi guys I have a coding that could show high time frame value (like H1) on lower time frame (M5), the attached file is xx.mq4, but it is just made for IMA, I could like to chage it to make it work for the indicator "UltradeFX - Master Entry.ex4", but I don't know how to do that. I am not good at
[Deleted]
Hi, My expert advisor is based on such a strategy that it opens a new trade on every single bar.What should i do to my ea so that it opens a new trade only when the previous trade is closed according to the closing strategy..........Thanks alot in advance !
  mt4 script  (3)
Respect to everyone. There is an mq4 script, can I write new things in it and use it in the mt4 terminal? I'm new to this, can someone explain me how to do this script
Hi; I wrote an EA that draws buy/sell zones in the CCI window that are preset in menu options. It works as intended. Except I would like to get rid of the zone background color and display the zone in the actual color as preset in menu options. So 35 level in blue without the blue background and -35
Hi For a couple of days now, I noticed that the strategy tester is not showing the progress when doing the tests. Previously, above the progress bar it showed the current pass and the remaining ones. But now that information disappeared. I've restarted the PC a couple of times. To show the
Hi guys; I've been coding for years, and playing in stocks/forex a long while besides... fairly new to MQL4, however. I've made several EA's successfully and have a pit of a workflow going now for all my ideas, which is nice. However, I've run into an issue that I can't get to the bottom of; When I
Hi all, need some help here. I used ChatGPT to create an EA for me. It looks good but there are error 131 when I tried testing it with strategy Tester . Apprantely my OrderSend command is wrong. Can someone look through the codes and let me know what is missing? I am not a coder so if you can
hello guys, i have a code for detecting a break of key level, but when i run the code in strategy tester it never detects one and i cannot find what is wrong with the code.(it should check the last 8 hours for possible key levels and the code runs on the 15min timeframe, which is set from another
I was trying to build a browser dashboard that displaying EA processed info and these must be somehow stored somewhere. I'd wonder which is the best way to build, as I much afraid that I will only realize I'm so wrong when I almost 'done' all the jobs. My first attempt was FileWrite in MQL4 then