MQL4 and MetaTrader 4 - page 360

To post a new topic, please log in or register
Works fine getting the 4 values. I would also like to know when the bar switches color, How do I determine that?
Hi I coded a function in a script ( with #property strict ) and it compiles and works perfectly! Now I pasted just this function in my EA which compiles with no error before the pasting(!) it is 'strict' as well and there is so far no call of this function in that EA and now I get a lot errors:...
Eine Anleitung zur Handelsplattform MetaTrader auf deutsch finden Sie unter http://www.meta-trader.de/MetaTrader-Benutzerhandbuch.doc.pdf Benutzerhandbuch MetaTrader Auch Hilfe bei der Entwicklung des eigenen Handelssystem findet man über diese Seite.
Hi everyone, I am looking to have all my indicators in a different window, instead of having them in the same window where my charts are located. How can I do it?
Hello people, I need help with the making of a simple program with MetaEditor. The program is simple: it should make an order (for exaxt time) and also move the stop lose line along with the price of the current product. For example i want to make an order to buy 10000 euroes (EUR/BGN) at 19:00 (now...
can anyone please help me? I want the Tenken Sen value in this function:  int signal()   {     int signal=2; // i need here the codes using iCustom----- Then something like     if(Tanken Sen<30) signal=0;     if(Tanken Sen>70) signal=1;   return(signal);   } Thanks
Hi, does anybody know how IsTesting() and IsOptimization() are connected: 1) Not connected: if IsOptimization()==true =>  IsTesting() == false ? 2) Connected: if IsOptimization()==true =>  IsTesting() == true (too) ? Which one is correct? Thanks Gooly
Dear, I want to get accurate CCI value on dateandtime. Example what was the CCI value in EURUSD '2014.09.16 23:19:53'. i write the code below:   int iBarBegin   = iBarShift(NULL, 0, '2014.09.16 23:19:53', true); double data = iCCI(NULL,PERIOD_M15,per2,PRICE_CLOSE,iBarBegin) ;   above iBarShift...
Hi all,   This is the simple program i write, but it will give more than one alert in one time.   can some one help on that, how to make it give only one alert each time.   Thank you      datetime  TimeCurrent();  datetime b= D'13:59:00';  datetime a= D'13:59:30';   int abc =1;   int bcd =2; int...
trying to figure out how the Heiken Ashi histogram actually works? any help appreciated.
MetaTrader 4 platform update is to be released on Friday, July 4, 2014. It contains the following changes: Terminal: Preparatory works for Cloud Hosting implementation. Many traders want to arrange a reliable round-the-clock operation of the client terminal containing an active trading robot or...
thanks to Starry,his project https://www.mql5.com/en/code/9991 is great. i wrote a simple python script like this: import zmqimport timecxt = zmq.Context()s = cxt.socket(zmq.PUB)s.bind("tcp://127.0.0.1:1900")while True:   s.send("CMD:Once")   print "send once"   time.sleep(1) it works when...
Hi , can somebody please tell me the expanded version of the function , that is how it is calculated: MarketInfo(Symbol(),MODE_MARGINREQUIRED) So that i can rebuild it myself and check it.
Hi, If I run a backtest and the expert opens a trade I can see it's start arrow on the chart. If the expert closes the trade I can see the start and close arows with a line between them. In case of the live trading I can't see these arrows and I don't know why. Today I saw the screen of my friend...
Whats the simplest way of using an extern string "Yes" or "No" to activate or deactivate a void function?
Now, first off, I regard myself as being marginally higher than a novice in MQL4. So that means my knowledge stretches as far as to say that I appreciate the fact that the speed in which the back-test runs is based upon a few variables. I.e. efficiency in the written code, hardware and data (and in...
i use barycentre, this is indicator's belkhayate but when i try to us it  , he dont want to draw but the name of indicator is visible i just change win 7 32 to win 7 64.... and i wonder if the problem is because the program is installed in programme files ??? Mt4 build 670... ok my problem is realy...
APeng
Hi everyone, another question about backtest speed. But maybe slightly different. (I read https://forum.mql4.com/54831 and other posts...) As the CPU is only used for a few percent (I7, lot of RAM and so on) I copied the MT4 instance and let two tests run at the same time. The sum of the estimatet...
//+------------------------------------------------------------------+//| Check History to see if trade hit stop                           |//+------------------------------------------------------------------+bool CheckHistory(){ for(int b=OrdersHistoryTotal()-1; b>=0; b--)   {    if(...
//+------------------------------------------------------------------+//| Order Entry function - Buy or Sell (pending orders) |//+------------------------------------------------------------------+void OrderEntry(int direction){ // Padding for Stop & Entry --------- ATR_Pad =...
Hi I was wondering is it possible to display the rsi of the current candle plus the current spread. So basically I can see what the rsi value would be after the price as moved the value of the spread. Thanks Antony
Hi, I'm using Oanda with MT4 and I noticed there are little to NO bullish / bearish engulfing candles on the charts of any time frame. My engulfing code would not find any so I wanted to know why (well it did find a lone and rare engulfing on daily chart only) I reviewed the charts manually and...
Client Terminal Build and Version (32 or 64 bit) 32 build 701 Problem description CopyRates simple 2nd variation (by datetime,count) does not work Sequence of action Just a simple CopyRates string sym="GBPUSD"; datetime checkt=D'2014.09.22 04:00:00'; MqlRates rates[2]; int cpy=CopyRates(sym...
int handlestring testfile = "test.csv";void readfile(){         handle=FileOpen(testfile,FILE_CSV|FILE_READ,",");   if(handle<0)   {      if(GetLastError()==4103)   Print("No file named " + testfile);      else      {         Print("Error while opening file" + testfile);         return;      }   }...
kum01049
  Mq4 Protection methods.. (34   1 2 3 4)
Hi, Can anybody share the common methods to protect the our indi...give some sample MQ4 plz..
Please can someone explain why I get the following warning from this code? (I know it's only a warning but why?) int CheckTrades(){ int num_orders; for(int i=0;i<OrdersTotal();i++) {   if(OrderSelect(i, SELECT_BY_POS,MODE_TRADES)== True)         {...
HI everyone, I'm trying to develop a system on the daily or 4HR timeframe which enters on a reversal of price i.e. basically looking for the start of a new short-term (or long-term :>) trend. I've been testing a combination of RSI, RSI divergence, stochastic and stochastic divergence signals but...
How can I stack up multiple comments lines? At the moment they all just overlap when they're updated, but I want 3 separate comment lines in the top left hand corner working simultaneously?          if(D1_Bias=="None")...
Hello, I am using window 8 64-bit system unfortunately I cannot run metatrader 4 on my system. It keep crushing or hanging even I cannot place an order or resize window size etc. One more thing symbols have very small font size. Resolution does not fit on my system. Please kindly let me know how can...