MQL4 and MetaTrader 4 - page 104

To post a new topic, please log in or register
I have created a simple script that writes indicator values to a text file.  I want to set that up to run on a one minute frequency.  Any suggestions on the best way to handle that?
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:...
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)....
Hi, does anyone know how to get an Open Price for specific bar everyday? for example, i want to get the Open Price from the bar that open at 23.00 everyday can anybody help me? since i'm still very new to this mql4 thanks before.
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,...
I am a newbie learning how to develop an Expert Advisor but i keep getting these two errors when i debug. I really need help. Please find attach the Script.
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,
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?
  Level Advanced Trading (35   1 2 3 4)
We have level trading here https://www.mql5.com/en/forum/general (links to 2 threads) and I tried to implement something. It may be interesting for the people who are drawing support/resistance lunes and confirm/validate it by price movement in very classical way (twice crossing of possible...
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...
How can i calculate the lot maximum size based on the limits of the free margin?
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...
  rad = ((oppl/hypl)*(M_PI/180));
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...
Maybe you add profit/loss in pips? Below example.
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...
Hello, everyone, I have met a problem when coding EA and I was wondering whether you could be kind enough to enlighten me. The internet connection to the server here is sometimes lost and reestablished automatically. The following is my understanding of EA working when internet is lost and...