MQL4 and MetaTrader 4 - page 535

Hi Guys, I'm new in mt4 code, i have the issue on the loop. I'm using MODE_HISTORY on the OrderSelect() to find the close order. My EA will run 2 order at 1 time. each time the order is closed. It will check the condition of the closed order and open the new order. Sometime, the EA will have 2
HOW TO HIDE OR TO SKIP OR TO SHIFT SATURDAY AND SUNDAY DATES FROM HORIZENTAL SCALE OF METATRADER 4 !?
hello how can i make simple robot in metatrader4 with c++ ? is it possible? thanks
Hi I am looking for an EA that can open two opposing trades at the same time. I am assuming this would be on two separate accounts as most brokers do now allow two two trades on the same currency.
Hi Everyone! I am brand new to FOREX and MQL4. I had some limited C/C++ previously and when I realized that there is a possibility to program Expert Advisors I became very excited. So I started learning it from different materials on the net and applied for some udemy tutorials as well. I am...
Hi. In these years in the market, I could observe that price patterns is the key and best behavior on market prices future. The history always repeat itself. Past and future are an illusion, all is a continuum line of time.  But all know that a heuristic calculus is a little heavy. So, why not use...
Hello, I have a .csv file with some data, if i try to import the data to my MT4 the History Center can read the data, but it dont import all data (see attach file). For exaple ther is some data missing: 20:45 20:20 20:15 20:10 but as you can see, this data are exist in the .csv file. Could anyone
Hi Guys, My coding below basically to check reliability/validity of Hammer/ShootingStar (period H1) on period M1 chart . - swing up/down on the last 30min before it closed. My problem is with this line ----> while(TimeCurrent() >= MinSec(1,0) && TimeCurrent() <= MinSec(5,0)) The condition is true
Anyone have any insight on getting the close price of the last order? I tried: if(OrderSelect(OrdersHistoryTotal(),SELECT_BY_POS,MODE_HISTORY)==true)     {    double LastOrderClosePrice = OrderClosePrice();     }
Hello all, I have an EA which shifts the chart around using the ChartNavigate function. It's been working for months, but since downloading the update today it doesn't work properly. I can demonstrate the problem with the following code, an EA (turn off the auto scroll before putting it on a chart):...
Hi guys,  I looked around and found some information but I still am confused and not sure 100%. Most of the posts are a few years old... Does MetaTrader 4 support the use of SSL to send SMTP Emails?  What about TLS?   Thank you in advance 
Hi everyone, I am using iCustom into indicator to retrieve values, and use them as signals emitter into my EA (better visual than put all code in Expert). I am using M1 Period Chart, and I want to obtain other period values ( Day, Week, Month, ...). So here, I try to retrieve "Daily MMA20" on a "M1...
hello what is Time Zone in metatrader4 history center ? is this UTC ? and is this fixed for broker or can change with brokers country time? thanks so much
Hey, I'm want the MT4 terminal to feed price data into an external program through an EA, the external program will then carry out calculations and feed buy/sell instructions back into the terminal. Which would be a better language for the external program, c++ , c# or java? I'm asking the question...
Hi, in the full code attached and segment below I don't understand why it takes a long time to load when placed onto the 5m and 1m chart but is okay on the larger charts?  Reference says that it might be something to do with too many physical memory locations? But I'm not sure?    for(int i=limit;...
Hi guys, I hope someone can help. I have downloaded some trial quality data 1 month to check quality. Data was in txt got that converted to csv in Excel. But when importing into Mt4 I got some bars which are not in Excel file My mt4 view of 1m EurUsd 2016/07/01- 2016/08/01   I know It doesn't look...
Hello, I just started learning MQL language and I have a question, right now I have build a EA which is checking if all my different conditions to take a trade are met. When this happens then the order should be executed once. Right now if all conditions are met it openens a trade at that moment
I am trying to understand the meaning of zero value in back testing. When I run a back test I get a number of positive results a number of negative results and a large segment of 0 results. I wish somebody could explain why this is happening and what is the meaning of these 0 results. To make clear...
Now I'm using an indicator (MQL4) that count bars (timeframe 5 minutes) from the Top or Low within a range of x bars (in the example 215) with this formula: int lowbar = iLowest(Symbol(), PERIOD_M5, MODE_LOW,215,1); int highbar = iHighest(Symbol(), PERIOD_M5, MODE_HIGH,215,1); datetime...
Hi Traders,     Now I feel the execution speed of OrderModify is quite slow.   When I see the timestamp on "Journal" of MT4, after sending order modify to confirming of the order modified, there is about 600ms in average. Opening order is much shorter, about 150 ms.  Deleting order also takes longer...
Hello i would like to know how i can ajust a martingale program to return to lotsize 0.01 after 2 consecutive wins. Normaly a martingale starts over after 1 win.. I have tried this way but not sure if this is correct . for ( int x=counter- 1 ;x>= 0 ;x--) (I change the 0 to 1 to get consecutive
Hello, The PeriodConverter is working well against all data downloaded via History Center (F2).  In turn, when applying the Period Converter on top of a graph, it will create the offline charts with the starting and ending dates matching the underlying data amount/quantity. However, is there a way...
Hello everyone, I have the following function that gives me a allert when when you come to form the double up and double min:   void DoppioMinMax(int DistanzaFrecciaRib=5, int DistanzaFrecciaRia=5, ){  int dpmindmax =0;  int i, countDmax=0, countdpmin=0;   for (i = Bars-10; i >= 0; i--)     {...
hello ican see any signal bar to my mt4
Hello, Working on a very simple array data export to CSV. All is working well, except that the bar indicator [barInd] counting is in reverse to what I would prefer it to be. So the question - would it be possible to reverse the numbering mechanism? Instead of getting: barInd | Date | Open
  help me please [solved]  (30   1 2 3)
I'm new in mql4 and this code opens multiple orders, how can i avoid it? it should just open 1 order until it closes, how can i do this? Thanks void OnTick () { double up= iIchimoku ( NULL , 5 , 9 , 26 , 52 , 3 , 0 ); double down= iIchimoku ( NULL , 5 , 9 , 26 , 52 , 4 , 0 ); if (
Hi everyone, I'm brand new with MQL4, I'm tryng to apply a moving average to another moving average. I'm able to call my two custom averages into MT4 e to plot them. But I want to apply the second average (yellow/blue) to the first one average (red); instead all I can do is to apply them to price
Hello .. in fact, I have noticed that no trades could be happen with the following code example:       if(Close[0] < PreDefPriceBuy)          BuyExecute(); while replacing the < with the <= would allow trading normally       if(Close[0] <= PreDefPriceBuy)          BuyExecute();  .....
Hey Guys, I found this nice EA manager on the internet. .............  <Deleted>
[Deleted]
im a big fan of lumia. despite having much less apps from android, I still find its durability, elegance, camera, and overall experience greater than any android phone I've ever used. The thing is, I'm also a trader and I find the lack of MT4 app in Windows Phone app store quite annoying. I dont...