MQL4 and MetaTrader 4 - page 1014

[Deleted]
Hi everyone, why in the name of god do a=NormalizeDouble(Point,Digits); Alert(a); returns 0 ??? It should return Point value for that instrument i.e. EURAUD = 0.00001 etc. Yeah I know I can use DoubleToStr .. actually that DOES returns the right value but I can't work with string, right? What I'm...
[Deleted]
Hello,I wrote a Program that creates Screenshots (by the WindowScreenShot function) whenever there is a new Order. When I run it, it'll create them in the Folder: terminal_dir\experts\filesBut when I test the Program there is nothing to be saved. Not in the: "terminal_dir\tester\files"- Folder, nor...
Hi, If you push F8 and go to the Common tab, you can check the box to Scale fix One to One. This means that your chart will no longer automatically scale to the best fit of your monitor, but simply show the movement in an objective way. Now, if you want to relate the number of pips (vertical...
I want to know the date/shift of the last history bar. Is there any way to do this?
Hi Everyone, How to add more symbol or chart in MT4. In my MT4 there only 13 symbol or chart with different currency. I want to add more different symbol to my MT4. Where can i get the symbol or chart?
Hello guys, how can I check if terminale.exe runnig or not ? I tested by ShellExecuteA but :-( Thank's
[Deleted]
Hello guys, is there someone that has the well known Bollinger Bands indicator that can accept double number as the Standard Deviation variable instead of int? This indicator should be applied to any oscillator (e.g. RSI) instead of Close price. Thank you in advance
[Deleted]
Sorry if this has been answered before - i cant find anything. Is there any way navigate to a specific data/time on a chart - either through EA or script I know i can use the fast navigation bar but i wanted to do it from a script/ea that takes its navigation instructions from elsewhere (that bit is...
[Deleted]
i dont wish to run 24 hours daily, how to set it to run only few hours daily ?
[Deleted]
======================= Zigzag_Pointer_alert EA ======================= To anyone out there who is good at mt4 coding. Could you please write an EA using this strategy. I can't prove that it's profitable but I have been analyzing the GBPUSD M5, M15, and H1 charts and the indicators seem logical for...
Hello, Sorry for my bad english, I'm Frenchy -:) Newbie, I try to use ObjectSetText. I managed to display correctly a ObjetSetText when it is a comment Exemple : ObjectCreate("Texte", OBJ_LABEL, 0, 0, 0);ObjectSetText("Texte", "Hello", 8, "Times New Roman", White);ObjectSet("Texte",...
Hello, Sorry for my bad English, if you can give me a little advice on my code. I think it can be used also to other newbie. I created a EA that works correctly (no error) , however, I would like to be inserted on conditions. I joined the conditions of two moving averages , a MACD and stochastic
MetaTrader 4 Client Terminal build 432 Fixed "Name" and "Address" fields verification in the demo account registration dialog. A name has been recognized as invalid when using non-Latin characters.Added MetaQuotes ID verification in the Notifications dialog.Fixed translation of the interface into...
[Deleted]
I noticed this happens after I run a lot of simulations in Strategy Tester. When I attach my EA to the LIVE window, nothing happens. I added an 'Alert()' function in both 'init()' and 'start()' functions to see if they are even called, and nothing is happening. I look at the experts tab and the...
hi I have a script that writes informations to mysql database, and after closing connection to DB MT4 crashes. Does anyone has any tip that might help here? Crash log in attachment. regards oromek
Hi folks, I have been searching about this for a while, please forgive me for the offtopic since english is not my mother tongue. What is the "trader's lingo" for "Closing half position once the profits cover the initial risk"? Some people call it position halving, others call it breakeven but I'm...
Daily Pivot modify a pop alert sound rules : 1 when candle body are closed above R1 line, appears "buy" popup alert sound. 2 when candle body are closed below S1 line, appears "Sell" popup alert sound. excluded : R2,R3, S2, S3, DP plz help me :)
Hello there, I've got a simple question . I'm opening 2 order both with the same stop loss but with a different take profit each . After order 1 takes profit I would like to change the stop loss of order 2, how can I "pass" the message that order 1 has taken profit ? Thank you
Hi There, I need to remove the price data that the indicator is displaying (separate window) and show plus and minus values that will be above or below a zero line. I have looked at functions MathRound and NormalizeDouble, but I am still confused. I spent all day yesterday trying to solve this...
[Deleted]
if(MathAbs(psprd) >= FF* stddev && MathAbs(sprd)<= FF* stddev) { for(i=0; i<pairs; i++){ if(sprd< 0) units = MathRound (base_units * coef[i]); if(sprd> 0) units = MathRound(-base_units * coef[i]); if(OrdersTotal() != 0 && units * GlobalVariableGet(GLOBALNAME+Symbol()+Period()+"_"+symb[i])< 0) {
  Renko bars  (11   1 2)
Hello, Can MetaTrader ad renko bars ? trading renko bars with an ea gives not enough data and charts are not always correct.
Life gets a LOT more interesting when you start saving values to a file. 1) take care of EA working on more than one chart. 2)File maintenance. In issue one - New file for each new ticket identified by ticket number or Maintan one file with each line holding ticket data. Many files - have to find
Hi all, is there a way to preset with own values the size of contracts in the combobox of the order window ?? Tks.
Although our major efforts are focused on improving and enhancing the functionality of MetaTrader 5 for Android at the moment, we do not forget about the users of the fourth version of the popular trading platform. MetaTrader 4 Android has received many important features: optimized web traffic...
[Deleted]
#include <stderror.mqh> #include <stdlib.mqh> extern double TakeProfit = 90 ; extern double Lots = 1 ; extern double TrailingStop = 55 ; extern double MagicNumber = 23457 ; extern int StopLoss = 190 ; extern bool WaitForBarClose = false; extern double MacdCurrent= 48 ; extern double MacdPrevious =
[Deleted]
for(N=3000-144-1;N>=0;N--){      A[N]=iCustom(NULL,0,"zCog",17,11,13,0,N);      B[N]=iCustom(NULL,0,"zma",3,0,N);      }            int M;   for(N=3000-144-1;N>=0;N--){      if(A[N+1]<A[N]&&B[N+1]<B[N]){M=A[N];GG[N]=A[N];G[N]=EMPTY_VALUE;R[N]=EMPTY_VALUE;Z[N]=0;}else...
Hello, I am back with another question about Booleans. How do I use boolean to hide buffer 2 (ExtMapBuffer2). I have tried different ways and I am stumped. #property indicator_separate_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_color2 Limeextern bool...
Hi coding experts. I would like to show previous repainted arrows to maximize/find a good system Thanks in advance Here's the code EDIT: Decompiled code removed
Dear programmers, I have programmed the fractal indicator for trade. Everything is as I expected but there is only one problem. When the algorithm is true it opens order normally and puts take profit after TakeProfit hits because of situation is still true it opens new order. I dont want this, I...
Hi, How come trendline for stoploss isn't drawn in demo trade mode? I don't have this problem during backtest where all stoploss even on the same bar will be drawn. No trendline showing during demo mode (suppose for those yellow trades): No problem in backtest: