MQL4 and MetaTrader 4 - page 332

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...
  TimeTradeServer analogue for MT4  (79   1 2 3 4 5 ... 7 8)
Interested in solving this function on MT4 TimeTradeServer
  Reverse Trade HELP  (11   1 2)
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 &&
I'm trying to automatically scale the price range for an opened chart, in such a way that the price shown are withing a certain range. But the documentation is so limited that the only thing I can find is about how to get the Max/Min prices, but not how to set it. So I don't even have a good
I am at my wits end trying to figure this out. I want to generate a buy or sell signal based on the close price of the last Heiken ashi bar. If the most recent bar close is higher than the previous bar, I want to generate a comment that says "buy", and a "sell" comment for the inverse. I am using
[Deleted]
Hi, I want to do coding in the indicator to perform Y-axis rescaling, would like to know whether any code or function in MQL4 to preform rescaling the Y-axis (Price) ? Not using "F8" --> "scale fix", I want to do it automatic in the indicator. Thanks for your responses.
Hello, Does anyone know what the "chart update interval" is on MT4 by default, and if there is a way to view/modify this setting? On other software that I've used, "chart update interval" is basically the length of time between updates on the chart. Some traders who focus on a single market like it
My requirement is to calculate value across indicator of multiple symbols and get back result in whole, but looks like something got wrong that I can never guarentee all of the symbols outside of the current chart window is right. Brief code is as follows: void onStart() { int output =
I have a indicator that I need to push notifications. I have gotten it to work. However all it does is it says "BUY NOW" I need to it tell me which symbol is it referring to. the Terminal alert works but I cant get the push to do the same. Line 185 Please help
[Deleted]
Hi guys, I realise this question has been covered before, many times it seems.... but please, forgive me, I simply cannot find anything that works for me. I'm beginning to pull my hair out with this. I must be missing something very basic.... I have a CSV file, with a single column of data, say 12...