MQL4 and MetaTrader 4 - page 389

Hi, are there any plans to fix OBJ_EXPANSION so that the 3rd point of a Fib Expansion can go beyond the 2nd point? thanks
hello, "hIndicator_dialog_class_only.mq4" is an indicator which creates a dialog class  #property indicator_chart_window//+------------------------------------------------------------------+#include <Controls\Dialog.mqh>class hClass: public CAppDialog{   public:...
[Deleted]
Hi guys, I'm trying to develop my own expert advisor and I am still a beginner in all of this. I am making random orders in my EA and during the backtest, I set the spread to 0 and I also limit my orders to slippage 0. I am also setting both stop loss and take profit to the same amount (5 pips)....
If I use a Trailing stop and a stop loss shouldn't take the closer one?
I've imported three currency histories to MT4 that date from 2001.01.01 to present. Since then, my computer has slowed down and my demo account has been prone to problems the most recent of which being "history base not enough memory" messages. Is there a quick fix to this problem? For instance,...
Hello, I want to be able to draw Trendlines, Channels, Fibs, essentially any object on a chart for a specific symbol e.g a horizontal line level 1.1 on EURUSD and restrict it to only the chosen symbol. However, when I drag in another symbol on the same chart window, e.g. AUDNZD, I see the same...
Hi, I have the code below. It checks if price broke above a Donchian channel and then retraced for a number of bars. When I hard-code the integer into my dcVals array things work as expected. It only prints exactly when the channel was broken and 5 bars retraced. But when I use a variable, DC_BARS,...
rad = (((oppl+.0))/hypl)*((M_PI+.0)/180); (0.01698095) angle = MathArcsin(rad); (Im getting 0.01698176 instead of 0.97298353134226625915034235162797) But the MathArcsin is not giving the correct answer. Anyone experienced with MathArcsin in MQL4 or other trigonometric functions?
Im trading with several EAs for the last few months and just now over the weekend they have all dissapeared ? Does anyone know why this has happened ? As you can see in the screenshot all the happy faces have disappeared  My computer did some updates over the weekend and maybe that would have...
I have an EA that has been running for several years successfully but now if I attempt to adjust the properties of the EA it freezes the platform. The only way to unfreeze is to ctrl, alt, delete and close the application, then re-open MT4. But same thing happens immediately if I again attempt to...
Hi, I receive a quick message on my iPhone to advise an alert which disappears after a few seconds. My problem is that when I go to Chat and Messages the message is not recorded there. On MT4 v4, build 1170. Any advice will be gratefully accepted. Cheers, George5
I am very confused about the relation of the data downloaded within the History Center and the data used by the BackTester.   I am trying to BackTest a symbol, lets say EURJPY in M1 period. But it logs the next message: TestGenerator: no history data 'EURJPY1' from 2018.12.07 to 2019.01.01     I...
Hi, I have 4 expert advisor's I would like to make another ea and call my ea's under the MQL4 code. It is possible? If YES, then HOW TO? Rgds,
  History Center  (3)
Hello i tried to download the history EUR/USD 1Min but the download was from 2000 to 19/10/2019  why not up to today?
Hello I have a problem running a programming code .When I'm reviewing my programming code in strategy tester (Every tick) and real market , I see the difference in the result. I don't know ,why I have two exit points. please guide me Thanks //Orders Counting & Close...
Need advice in order to be able to solve an issue that is preventing me from using 10 times smaller code because I can't call a variable with String Concatenate. If you think my ideas are not the best please let me know what you would do instead, you think this is the best at all to use same ea on...
Hello Is there a way to get balance and equity of each closed order in history by ticket ? I want to add Balance and Equity for each history order to upload on website for easier data handling for charts, but i stuck on this step. I managed to get properly Balance and Equity by looping through all...
  General
How to add correlation to the MT4 Navigator?
Why cannot download it MT4 from Metaquotes website anymore?. I have to do that only from broker.
Is there any way to create an indicator that generates a notification on the mobile phone, every time arrows (a signal) appear from another external indicator? That is, I would like to receive notifications from an indicator without having access to its code to implement them...but I do not know if...
Hi guys how to put other tranparent color in mt4 indicator i need this because I have an indicator that overlays another I only know this transparent color codes transparent blue:  0,0,48  and transparent red: 48,0,0 , I would like other transparent color codes like transparent aqua and transparent...
Hi everyone, this is my first post in this forum, can someone help to code an indicator as below : Pump an sell alert if 3 black crows with lower low and the last candle closed above EMA 20. conversely if 3 white soldier with higher high and the last candle closed below EMA 20, then pump an buy...
I need help with a sound file problem. I have an indicator that uses the Playsound command to use alert2.wav. But when an alert is triggered it uses alert.wav instead and all other alerts use alert.wav also. If I untick Tools/Options/Events Enable then alert2.wav works but all other alerts do...
Hello, I have a H1 data which I want to convert it to D1. Do you know how to do it with the MT4 platform or some other tool or software? Thank you in advance. 
Hi everyone, I'm new to coding and have encountered a problem. I wrote this script and compiled it with no problems. void OnStart () { Comment ( iOpen ( "EURAUD" , PERIOD_W1 , 5 )); } I then open a new random chart, say AUDJPY . And then I drop the script on to the chart. But the number being
Realizing that using the old mql4 since 2014 init() deinit() start() can be problematic. It seems simple but now my code isnt working when I changed the function headers. 
Hi I have an expert that works with  candles in the past for two or three currency pairs. For example I want to know the open price for GBPJPY for the candle of 2019.01.01 11:02.  using the code below:(FirstPair and some_date are defined in the code): int      shift=iBarShift(FirstPair,PERIOD_M1...
Hi all, my broker's server gives me market data for limited time(9:00 to 23:00) in 15 minutes chart. Now I have data to fill the gaps(23:15 to 8:45) but when I load this data in history center through import, and if I open chart again and refresh it it'll only show the data I inserted but not the...
hello i searched every where how to deduct array elements from another but i didnt found such operate lets say i have this int x_Array[5] = {1, 2, 3, 4, 5};int y_Array[7] = {22, 2, 1, 5, 3, 65, 4};int z_array[];// i need to deduct x from y//so result will be z_array[2]={22, 65} thanx in advance for...