MQL4 and MetaTrader 4 - page 692

To post a new topic, please log in or register
hello I'm looking for a way to retrieve the price for s specific time or timeframe. For example, the price, M1, between 4pm and 4:20pm on january 4th ?   Anyway to do that ?   Thanks Nicolas 
Ever since build 432 of MT4 the connection between the dots is missing in the back test optimization graph? Is there a way to restore the connection?  Flag or setup configuration? I much prefer the dots connected and am forced to use build 432 for back testing!
Hello,  I would like to know how i can execute or call a script from my EA ? Thanks for your answer
Is it possible to write a successful EA? What does the code of such an EA look like? Are there common design patterns / sections / tools that successful EA's share? Do they all use the 'standard' indicators that come with MT4, or custom/proprietary EA? Do you need to a successful manual trader...
Hi guys could someone modify this expert in order to don't have error:130 anymore? Many thanks <DECOMPILED (stolen) CODE REMOVED>
I want to use Signal_Bars_Executive in a EA ... at 90% green or red it should give a buy or sell signal ... how can this be done? double s=iCustom(0,0,"Signal_Bars_Executive_v1",0,2,1),sig=iCustom(0,0,"Signal_Bars_Executive_v1",0,3,1);if(fib>90)  sign = 1;if(fib>90)  sign = -1;
Could someone please help me or point me in the right direction of how to receive subscribed signals to my MT4 account, am trying to sign up through the platform and have subscribed to a signal on here but can't link the 2 together? any help would be greatly appreciated?
#define __STRATEGY_MAGIC 1525183756//Inputs//Declarationdouble _Bollinger_Bands_up;double _Bid;bool _Compare;bool _Open_Position;double _Bollinger_Bands_lower_band;double _Bid_2;bool _Compare_2;bool _Open_Position_2;int start(){   //Level 1   _Bollinger_Bands_up = iBands(Symbol(),0,20,2,0,0,1,0);...
someone could help me how to put a sound alert indicator lines crossing Dinapoli. When cross the white line with the yellow
  only once;;;; (6)
hello im making a inside bar breakout stratagy.   it check for inside bar before 0th candle...(latest candle being formed);   but how do i make sure it run code only single time in each 0th candle formation??   here is my code::----- if(High[1]<=High[2] && Low[1]>=Low[2])double ub=High[2];double...
Hi I was wondering if you have some kind of program that can hide my EA from the broker i am with, im always worried that the broker will start messing with my trades once my EA starts getting profitable etc... Do you know even if the brokers can see your EA on the system and all the details about...
Hi, The cost of blowing an account 5 k or 10 k is quite a headache. But considering that most people make 50 k a year, we are looking at the equivalent to only 2 months of salary burnt. In my ADD way, 2 months of lost time is expectable, heck, it is a goal that has far been expired. Not going to go...
I am still a beginner in MQL4 and I want to only send one order every 15 minutes. To do this I was thinking of comparing the last closed order time with the current server time. Here is my present code, which sadly does not fullfill my plan: bool timeSpace;for(int...
Hi all, could you help me with this problem? int start()   {           Print(NormalizeDouble(0.09/2,2));  } In this case output is 0.05. I need to obtain 0.04. How can I solve? Thank you!
Can anyone write a new period converter indicator that is usable? All this ones either drain the computer or they are for monthly periods.
My orders not closing at 5 o'clock , why ?//+------------------------------------------------------------------+//|                                                     LETS TRY.mq4 |//|                                                          LETSTRY |//|                                        http...
Hi Slowa, I writing this post to request a simple MT4 platform upgrade. The update consists in the possibility to enlarge the input window that is opened when an expert advisor or custom indicator or script is load. (horizontally and vertically) I hope that you will take this short simple update...
Hi All Experts. I am .net developer looking to integrate MT4 Api(dll) in my application. can somebody provide me some link to begin coding with this. First i think, i will need the HostName & port number to make an object of MetaTraderApi.MetaTrader. Please here me where i can get HostName & port...
WTH, MetaEditor Compiler doesn't give an error or warning but in the experts tab it it says  invalid integer number as parameter 2 for iSeries function    and the Expert hasn't traded or even got a signal for Multi_MovingAverage. Also, there's no level price call for stochastic oscillator with...
  HA candles on MT4 (11   1 2)
Hi,  This is my first post, so sorry if I am asking something I shouldn't be or in the wrong place.. I have 0 programming knowledge but have found some one online that is helping me. I really do not trust programs (as one that knows nothing about programming should).   While trading off the advanced...
Dear all,   Here is my code:      double a[];    SetIndexBuffer(0,a);   SetIndexStyle(0,DRAW_HISTOGRAM);     int limit;   int counted_bars=IndicatorCounted();   if(counted_bars<0) return(-1);   if(counted_bars>0) counted_bars--;   limit=Bars-counted_bars;   for(int i=0; i<limit; i++)...
Greeting, Sometimes, I get a 'zero devide' error while running my EA. I've narrowed the possibility and found out that when I disable a routine called trend_watch( ), the 'zero devide' doesn't happen anymore. I looked into that routine thoroughly but couldn't see anything that might cause deviation...
Could anyone please explain the different between pairs that are followed by v? ie- GBP/JPY to GBP/JPYv? The explanation from my broker was not entirely clear! This was the response: "For those couples who have a name is a symbol "v" you can deals less than one minute. 00:01:28 Trading operations...
  Cycle Operator 'for' questions (159   1 2 3 4 5 ... 15 16)
Hello MQL4 community, First reference: https://book.mql4.com/operators/for According to the first reference, a format example of the 'for' operator is written as such:   for (Expression_1; Condition; Expression_2)         // Cycle operator header      One operator, cycle body                     //...
Hello, I'll try to code a breakout, what I call a breakout. If someone have already programmed this function and is willing to share it, he is  welcome. ^ ^  
Hi, does any body knows what is the error  code 4253 mean?
I have finished writing part of my EA and about to do simulation trading with it.  Question is, how do I tell the MetaTrader which currency I'm applying my EA to? and what time frame am I applying my EA to? and, how do apply my EA to multiple currency?   Thanks    
Hello, I wish to choose the color of a indicator in a EA. is it possible? How code it ? Thank you. //+------------------------------------------------------------------+//|                                                 CouleurIndic.mq4 |//|                        Copyright 2013, MetaQuotes...
for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL && OrderSymbol()==Symbol()) { if(OrderType()==OP_BUY) // long position is opened { // should it be closed? if(isCrossed == 2) { OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); //...
How can I alert the number of seconds that have passed since the EA was initialized?