MQL4 and MetaTrader 4 - page 142

To post a new topic, please log in or register
Hi Guys,  I'm in the process of learning how to convert my MT4 EAs into MT5 EAs. I'm working on a simple BB EA that buys on the lower band and closes at the middle band / aka: BASE_LINE. The EA successfully opens positions but does not close them out at the middle BB. Can you guys please point me in...
Hi  I am trying to run a strategy test over the last 3 years: Period1 Hour (H1) 2018.02.27 14:00 - 2018.06.26 23:00 (2015.06.27 - 2018.06.27) Though as you can see the strategy tester is only giving me 4 month's results. The broker chart shows live data from furthest back 1st Dec 2006. I have...
Hi,Is it possible to create an EA that will control all running EAs with features such as : - stop trading all EAs until tomorrow if PNL for the day is above/below xxx % of equity.  Thanks
I want to limit the number or trades/orders in MT4 using my EA in MQL4. I want the limit on each pair not on all Pairs, like: If the condition / logic match then 5 trades will be executed on Each currency where the EA is attached. This is the code i tried, but it limits the trades on all pairs where...
How would I deactivate specific strategy in code without affecting other strategies. I have about 7 different strategies on 1 ea and it’s taking enormous computing  resources with just 3 open charts. What do you all recommend. As I already have true/ false of strategy but calculations probably...
For example if I want to give the EMA a custom value instead of iCLose or the default values so I can see into the future, how can I do this? Do I have to reverse engineer MetaQuotes source or code a brand new complicated array indicator just for that?  How would you go about it for  a simple task?...
Can anyone help me? I got this indicator from my broker and have it set up properly (I know this because it runs on my other, slower laptop) but will not load on my main laptop. I keep getting the error Cannot load 'fxlabsnet.dll' [126] I have selected "Allow dll imports" in the options and have...
I found a picture of interesting indicators, unfortunately, can't find them, if anyone got them or one of them stored on his computer.
This code example is taken straight from the MQL4 manual/tutorial.   //--------------------------------------------------------------------extern double Level=1.3200;                     // Preset level string Text[101];                               // Array...
Hello, I want to write that from 11 o'clock, if the price go higher 20 pips from the open of candle of that time buy and if it goes 20 pips below of the opening of that time sell, what would be that to specify this specific tim to my EA ? thank youu
Hi.  I would like help to make EA or as Indicator that can close pending orders when OLDER THAN x amount of HOURS old.  I have seen a ea that can close on time but that would close all pending orders and not the older ones only. Thanks for any help.
this program doesnt buy and sell on the chart and I dont know why, can you tell me the reason ?
hello, I have written this simple program but when I run it on the chart it does not sell or buy
Function call: Fun_New_Bar(); User defined function: //--------------------------------------------------------------------void Fun_New_Bar()                              // Funct. detecting ..  {                                             // .. a new bar   static datetime...
Hi There are indicators that show vertical lines at times of expected economic report, some sends an external http request to forex factory in order to get the time. How can I get the actual and forecast numbers show on the chart as soon as it is released? Thanks
Hello! I need a quick help with EMA calculation. I seem to be very close, however its incorrect around the 5th decimal place in EURUSD 1M. Any ideas? What's with this? Looks like something with the normalizing? Heres the EA that calculates the EA attached. Can you provide the correct way to have it...
Hi guys, I am a novist to MQL 4 but I have already coded some EA and testing. But I am not a professional or expert programmer so I need to an help. I would like to know how I can set the STOP LOSS for sell and buy market order using a fractal. I mena I would like to have  a STOPLOSS= fractals. I...
Hello, I have write this simple EA to buy and sell from the opening price but it errors me, can you solve it for me :( Thank you
Hi, Would like to program or pay someone to program me MT4 that will open trades and pending orders from signal from a web page. Everyday around 4 GMT this signal apears on a webpage: Example 1 – EUR/USD LONG (BUY Stop) @ 1.1730, SL@ 1.1695, TP1@ 1.1755, TP2@ 1.1780, TP3@ 1.1820. 2 – USD/JPY LONG...
  About Classes (2)
I want to make a graphical Panel using standard libraries, So I made a class for the whole panel then created an object out of it.. But I made the class on the same mq4 file.. I want to know what is more efficient, making a separate mqh file or making the class on the same mq4 file.. (resource...
Hey coders, I found a code about how to maximize a chart window by using SendMessage but I can't find something like WM_MDIMINIMIZE. I googled it but I didn't find a command to minimize a window. Can someone help me? This script is working fine to maximize a chart and I figured out that...
Hello I'm beginner.  When to use that input attribute? ( I will check at shot ) Thank you.
I want to know how to close the orders of same currency pair. For example, There are three open orders. 1. EU buy order with TP/SL 2.GU sell order with TP/SL 3. EU sell order with TP/SL 4. UJ sell order with TP/SL Once the #1 reach to TP,  how can I close #3 also at the same time? #3 does not still...
I am making a simple script, looking for pivots. My code runs just just fine untill a loop shows up. //+------------------------------------------------------------------+//| Script program start...
Hi I have MetaEditor version 5 build 1601. Is there a keyboard shortcut to fold a function body? How can I create one? Thanks
I'm trying to make the indicator send a signal when it arrives on the 8 alternating candle, does anyone know where the error is in the code. Then I would like to place when I get to the 8 candle alternating a graphic sign below or a square like in the photo to be able to analyze past graphics, I am...
Hi guys! I've developed my own Trading System, but I don't understand this: in the result tab under the Strategy Tester, there are some orders where the columns "Balance" and "Profit"  haven't data. I post here an image. What I'm wrong? Thank you
Hello everyone, I am new to MT4, just started to trade with it for 1 month. If i would like MT4 to send alert to me (by email, by alert sound, or by sms to my mobile) when my account balance reach a certain amount of profit or loss (says usd 100 profit or 80 loss), is it available to do so? If yes,...
Hi. I had this EA developed and can't get hold of the developer for help. The EA works great. All it does is opens a opposite directional position on a certain amount of pips on a specified currency. But when I close the position created by the EA and the original 1st position is still open, the EA...
Guten Tag  Ich habe zwei fragen und hoffe sie hier beantwortet zu bekommen. 1. Wenn ich einen Expert Advisor Backtesten lasse kann ich bei dem Datum nur zurück bis zum 01.03.2017 alles andere davor gibt mir die Nachricht "no history data avaible" mache ich hier etwas falsch ? 2. Wie macht ihr das...