Download MetaTrader 5

MQL4 and MetaTrader 4 - page 554

To post a new topic, please log in or register
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...
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 *...
  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...
#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 =...
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:
Hello everybody, I would like that my ea just start after 6am GMT (3am local time). How could I do this? I did with the code below in init() function, but I guess that there are something easier. int init() { int secondsNow = TimeLocal(); for(int i=1;i<=86400;i++) if(TimeDay(secondsNow+i)...
I am importing data from MT4 to travez of DDE to an Excel spreadsheet. I do real time data on all pairs of divisaspero when I import data from the oil (CL-OCT12) the return I get error Symbol Bid CL-OCT12 # VALUE! someone please tell me how to solve this problem.
Hi all! This is kinda' a tricky question so read carefully! Can anyone provide instruction as to allow seconds to lapse until seconds reach a value of ten (10). Once seconds reach a value of ten, value ten (10) substitutes and FREEZES into vector "array j" element 0. (this means that once the value...
Sometimes my orders are closed for a price, which was never reached. The EA is programmed like this: if( loss > 150.0) { close Order; } Could it be, that the visual picture shows not the correct price or is it a problem with the brooker ?
Dear Community, is it possible to draw someletters instead of the Wingdings symbols in the indicator? Like on the following screenshot: Thank you very much!
Currently with the indicators I use, moving averages, bollinger bands in particular, there really are only 4 line styles...dashed...dotted and then a variation of longer dashes and dots. I would like to find a way to enhance these. For instance, why do the dots have to be so tiny? Why can't there be...
hi i want an indicator like zigzag by this property: i want indicator that show wave by width channel. i mean : for example in down trend, when one low break after (minimum)X candle, the wave show by indicator. one indicator i found in this link but it is not what i want .
hello my friend. i cant speake english.please excusme me.im not familiar with mql4 and programing.but for complete my trading system i strongly need the basic of calculation of this indicator.i attach indicator.i want know what basic of calculation of this indicator.what is fish0 and fish 1 and what...
What is the problem here (last bar do not draw): #property indicator_chart_window#property indicator_buffers 1#property indicator_color1  Red#property indicator_width1  1//---- input parametersextern int PERIOD  =12;//---- indicator bufferdouble Buffer[];int init()  {   SetIndexBuffer(0,Buffer);...
Hi Forum, I use the Ichimoku indicator and I wanted to see if the the price is above, in or below the cloud in a higher timeframe. I trade the M5 and wanted to know how the M15 looks like without switching the timeframe. Green = last bar is above the could Yellow = last bar is in the cloud (or part...
Hi there, From what I have read on this forum regarding Double Precision Math operations the concensus seems to be that one must use the NormalizeDouble function to produce expected results when using double precision numbers. However, I am still experiencing some strange problems when using double...
Wondering if somebody has done this already (save some time).. I have a SMA on my chart, I want a histogram in a separate window showing the distance between the price and the SMA. Also I want the histogram bar to be RED if the last bar was taller, GREEN if shorter. Thanks in advance. Mo
We know that, in order to access such order details; the order should be selected first by indexing the opened positions. i.e. for ( int i = 0; i <= OrdersTotal() - 1; i ++ )    {    // --- Select & Gather Order Info ...      } Now, the gathered OrderOpenPrice() at i = k should be stored somehow in...
1...547548549550551552553554555556557558559560561...1244