MQL4 and MetaTrader 4 - page 237

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? I
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...
Hi friends, I've coded to write some variables in different lines in a .CSV file. The file consists of 5 lines. Now I'd like to add some new variable to the end of the second line in my file. I'd like to know if it is possible to add some new variable to the end of the existing line in a file or not...
I'm looking for an ATR dashboard indicator that provides the ATR by hour (HATR) that has output buffers that can be read by another EA.  I want to isolate and output the ATR for each individual hour of a day by having it look back a certain number of days. Ideally, the indi would have at least the...
Hi. I recently downloaded this indicator from the elite section and find it really interesting. So now I want to get a bit better understanding of this indicator. It is pretty self explaining but it would be useful to know whats going on when the upper or lower dynamic zone are trending. I.E the...
Hi, Here is my problem. I would like to know how much will cost one lot (100 000 units) for a specific currency pair. For example  I have an account in JPY and I want to know how much will cost 1 lot for EURUSD in JPY. Therefore I need to conver JPY to EUR (base currency). Is there a formula...