In order to maximize trading opportunity, i entered into multi pair EA coding community. The problem in it so far is dealing with chart that are not opened in the chart window, refreshing the chart to get latest tick and most importantly getting the EA to read accurate tick data when OnTick() is
Hello. I'm learning coding in MQL4. I'm having trouble getting a string from my C++ dll file. I tested in MQL5 works without a problem. Can somebody help me? C++ code: PROJECT1_API void fnReplaceString(wchar_t* text){ wchar_t replaceText[] = L"987654321"; memcpy(text, replaceText
Can somebody help me to make this Macd detect divergence between oscilator and price, and draw arrows on detection? #include <MovingAverages.mqh>#property indicator_separate_window#property indicator_buffers 4input int InpFastEMA = 12;input int InpSlowEMA = 26;input int InpSignalSMA = 9;input int
hi guys i use this indicator <Deleted> for icustom, but print zero (0) for me help me for solve this problem thnaks my code : //+------------------------------------------------------------------+//| zigzad customm.mq4 |//|
I had a chart with many trend lines I had drawn. I deleted that chart by mistake. I tried to 'undelete' the chart, but it's not even on the list of deleted charts so I can't recover it. I have a backup of the entire \\Application Data\MetaQuotes\Terminal\ folder and I thought I could restore the
Hi All, In MQL4 language, if we use OrderClose() function to close just a part of the lots of the entire position, the EA will close the actual position ticket(number), and create another position ticket(number) with the remaining lots. OrderClose(OrderTicket(),(OrderLots()/2),Bid,3,Pink); I need to...
I have the below method, but it returns an invalid pointer, wham am I doing wrong? RunningOrder _runningOrders[];RunningOrder* RunningOrdersHelper::LowestBuyOrder() { RunningOrder *result = NULL; for(int i = 0; i < ArraySize(_runningOrders); i++) { RunningOrder current =
Hi senior forum members, I am learning how to use class to declare a group of functions to be methods of a class - which help the EA to be more semantic and more OOP-ish Enclosed is the original EA which draw Support & Resistance lines and display some market characteristics base on the last closing
Hi I can't find anything about DRAW_BARSHIGH DRAW_BARSLOW DRAW_BARSOPEN DRAW_BARSCLOSE in the documentation or any where else. are they for drawing custom candles? Anyone can give me some info
Hi all! I made an indicator which scans 28 forex pairs in 5 timeframes for a pre-defined setup. In this example I just scan for a candle's close above the previous candle's high. My question is now if my code is an elegant and efficient way to do it. I don't think so because the indicator is
Hi everyone, I am running several EA's from the MQL VPS. Many low value trades go through each day. I wanted to track the performance of each EA but I cannot sort the Trade History on MT4 by EA Identity (magic number). Is there somewhere else I can see the trades sorted/filtered by EA? The only way
A timer within a EA that loads all watch symbols and supposed to weeds out the ones I dont want: Sorts the List and displays the data list.Sort(sortVar); posY++; list.displayData(var,posY,sortVar); the timer void:...
I've written a few EAs which access various chart objects - eg a text label "BUY" generated by an indicator. BUT, it seems that when migrated to MQL VPS my EA can't access the objects, and looks like the indicator is not even uploaded to the server. I tested this by placing a simple text label on a
Swing Failure of RSI is well-recognised trading pattern. Just Google it: https://www.google.com/search?q=rsi+swing+failure I'm asking if somebody has coded an indicator, which automatically recognizes it - any maybe draws on chart or places orders
hello good day.. spent 20 minutes writing the codes and explanation.. mistakenly reloaded this page and everything was gone.. i tried to covert it my coding got the buffers but all colors became blue
Hey guys, First post here, but lurk alot. Recently got into learning programming and mql4, so i apologise if this has been answered multiple times before...but i couldn't find anything that fit So i have a custom indicator that draws horizontal lines on my chart of x periods, and i'm trying to
hi Guys, when you have a few min spare, could you take a look at the code and see what im doing wrong please. #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Yellow #property indicator_color2 DodgerBlue #property indicator_color3 Red #property
Hello; I understand that MT4 platform allows for automatic execution of a script at startup using the command "start terminal.exe <script subdirectory\script name>" (without the double quotes. In my case the actual command is: start terminal.exe config\start.ini config is the subdirectory where the
Hi, I am new to the metaquote language and have problems with programing a trailingstop that works. Can anybody help me with the code. Mine is changing the stop correctly when themarket moves up but it also changes it when it moves down even if it shouldn't,this in the case of a Long position....
Hello friends... I'm looking for a way to save the entire MQL4's help page as a pdf just like MQL5's help page. How can I do it
Working with Mt4, but message in Terminal window reading WARNING Offset overflow 2179: period1. I have some settings in the EA to work with, but what is the root cause of this message
So it works fine with FXCM but not with Pepperstone. On Pepperstone only works with stop and limit orders but once the orders are hit the trade gets closed automatically for whatever reason... Is it possible that some EA work with some brokers and with other not ? <ex4 file deleted >
[Deleted]
Hi. I'm sort of new to forex. I have a question. Let's say I open a position; any position. There's an initial spread cost (ex. a spread of 3). Next, let's say I'm at a profit of +0.12; and now I decided I want to close myposition. Here's my question. Will my profit be +0.12 - the opening spread...
Interested in solving this function on MT4 TimeTradeServer
Hey, The script is a simple EA that checks if a manuel trade (MagicalNumber == 0) closed with no profit. Ex: When a SELL TRADE has been closed with no profit, so I would like to open straight away (market price) a OP_BUY So I've added both way ("OP_BUYSTOP" && "OP_BUY") and only "OP_BUYSTOP seems to
I am writing a basket trading ea, and so I am replacing the whole chart window with a custom user interface. To do this, I have written an initialization function that removes all the stuff that the chart shows by default, so that I can start with a black screen. This works well, but I have not...
Hi guys, Im developer, but taking the first steps of learn programming on MT4. Really basic questions: Is the code C#? or what? What kind of IDE is used here? or is through Metatrader itself? Any guide or good "book" to check out? Totally lost here, where should i start? Thnks in advance
Hallo experts, few days ago my EA sent a pending (buy stop) order for EURUSD, see the blue line in the attached account history, that should have been triggered one or two periods later, the chart shows the price going up quite a bit immediately after, but it never was executed Neither seems it to
Hello i am new in MQL4 coding. I really want to create my own ea at MQL4. But there are some problems i have faced. How to generate array with (7,9,4) dimensions/with 7 rows. each these rows contains rows and 4 columns/? Each elements must be random from uniform distribution
Hi folks, this is my first post i hope the way i do it is ok. pls see my code at first: if ( iStochastic ( NULL , PERIOD_CURRENT , 5 , 3 , 3 , MODE_SMA , 1 , MODE_MAIN, i) > 20 && iStochastic ( NULL , PERIOD_CURRENT , 5 , 3 , 3 , MODE_SMA , 1 , MODE_MAIN, i) < 80 &&

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.