MQL4 and MetaTrader 4 - page 756

  EventKillTimer  (3)
Can someone give an example where EventKillTimer used ? Say if my trades have been filled, how do i stop the EvenSetTimer
Hi all, I have a global close function called when total open orders (equity) is > $100 This function is called on EURUSD chart. The function below isn't closing orders like USDJPY... in fact JPY's pair. Please help how to avoid the error message 4107 (Invalid price param): /*   Global Equity...
[Deleted]
  help me fix this indi  (16   1 2)
I found this indi which looks very promising on backtest, but as soon as i put it in live, well..you can see for yourself. However when I ran through the code it didnt make use of anything that really repaints, merely RSI, ADX ATR and momentum. I'm quote confused as to why the indi messes up in live...
I have a demo version build 625 from IG and have spent the last few days trying to get an EA to work. Does anyone know how to help me get an EA up and running. The Experts can be dragged onto the charts but do not seem to place trades. When running strategy tester the EA's don't work and I don't...
I have subsribed to one of the signal providers here. The issue is this trader had many open trades. And the moment I subscribed it 'synchronized' with his/her account opening trades at my account at a very very bad moment. How to avoid situations like this in the future? So only new signlas will be
New article MQL5 Cookbook: Development of a Multi-Symbol Indicator to Analyze Price Divergence has been published at mql5.com: In this article, we will consider the development of a multi-symbol indicator to analyze price divergence in a specified period of time. The core topics have been already...
[Deleted]
Hello, PrintFormat No more than 2 decimal. With this script : //+------------------------------------------------------------------+//|                                              TestPrintFormat.mq4 |//|                                         Copyright 2014, Pierre8r...
[Deleted]
Until today my EA worked fine. I am coding on it and compile it many times a day. Suddenly the G Data Internet Security gave a warning . MetaEditor contains a Virus. The G Data software blocks the MetaEditor. About the same time suddenly the ex4 of the EA gives an error: global initalization...
My EA runs fine when it is running on its own but if I try to run the same EA on a different Symbol at the same time on the same profile then the second one doesn't run very well or at all or there are lots of errors. This happens even if I use Symbol() and different magic numbers for the two
Hi guys, I wanted to post a couple of pictures, one for the report and one for the graph of an EA that allegedly can return spectacular profits. The rule is quite obvious, if it's too good to be true, it usually isn't true, but I wanted to hear more opinions about the theoretical possibility to...
  Membrain NeuralNet  (17   1 2)
Hi All, I wrote a wrapper for membrain... http://www.membrain-nn.de/main_en.htm here the files for those how like to experiment with it. I haven't fully tested it yet. So any feedback is welcome Greetings, Russell -- fixed typo
Hi I have tried without any success to have the same demo account on my desktop, tablet and mobile. The desktop is running Win7 and the tablet and mobile are Android. On the desktop when I try to open an account it doesn't give me the option to choose GBP as the currency so, that messes things up...
[Deleted]
Does anyone know where the Fibonacci Level file is located? The one that has default levels like 38.2. I added custom levels. I had to reinstall system. Is there a file that can put the system back in the state. I had it before I had to reinstall everything.
[Deleted]
  problem with rectangle label  (15   1 2)
I'm using rectangle label as background and have a button above, when I click the button the parameter return rectangle label not the button. I set z_order of button to 10 but I still can't click the button. Please help. Thanks
I add the indicator through its right process i.e Program Files>>>Meta Trader>>Experts>>Indicator (Paste).. But it is not showing in Custom Indicator.. Need Help Please
[Deleted]
Hi, need for my strategy to count entry price Close from yestrday specific time . examples Yestrday Close price on 15 min chart at 22:15 bar . I was traing lot of code but still nothing passed for me . Thanks for each idea.
I have two softwares I'm using and the charts for GBPUSD look completely different on the 1 hour time zone? Can anyone tell me how I can change the time on MT4 so it's working with my local time ? Thanks
Updated MetaTrader 4 terminal is available for testing on MetaQuotes-Demo trade server. The official build and news are to be released after conducting the tests and implementing all fixes. The preliminary build contains the following updates: Terminal: Completely revised built-in search. The new...
I have the following simple custom indicator based on the class CAppDialog. It creates a instance of MyAppDialog derived from CAppDialog. MyAppDialog in turn creates a instance of MyWndContainer derived from CWndContainer. MyWndContainer then creates an instance of a CLabel. If I now add this...
[Deleted]
Hi, As a test of the DRAW_FILLING functionality with MT4 build 625, I wrote the following simple code: #property indicator_separate_window #property indicator_buffers 2 #property indicator_plots 1 // Plot 1 #property indicator_label1 "Candle spread" #property indicator_type1 DRAW_FILLING #property...
  working code  (1)
this one is work for me #define READURL_BUFFER_SIZE   1000#import  "Wininet.dll"   int InternetOpenW(string, int, string, string, int););    int InternetOpenUrlW(int, string, string, int, int, int);   int InternetReadFile(int, uchar & arr[], int, int & arr[]);   int...
Hi all, I was wondering if anyone could help me update an indicator to work with MT4 Build 625. It is showing up in meta editor as only having one error, I'm sure it will be a pinch for someone with the programming skills. Unfortunately that is not me. I know there are no slaves here but in...
[Deleted]
Hi does anyone have idea where to find metsquotes I'd for use in push notification?
I can't retrieved a Global Variable in an EA. First I am setting a Global Variable with ascript. Then I am attempting to read the Global Variable in an EA. Here is the code and errors.What is wrong? script... int start(){   int testVar;   GlobalVariableSet(testVar, 12345);     // set the global...
I am endeavoring to have a button redraw, for about one second, to give the appearance of the button being pressed and immediately unpressed, on a single click. The below code does not delay the change of STATE by one second between true and false. I have also tried a loop delay, instead of...
[Deleted]
Hi, when I compile this code I get 2 erros 1.'tanh' - left parenthesis expected 2.'tanh' - semicolon expected MT4 metaeditor build 471 Please help.
Hi After some months away of MQL4 programming, today I have compiled a code which was working perfectly before (9 months), but now I got a compiling error. This is the code line: switch(Orders[index,1]) Orders is defined like this: double Orders[100,12]; The error is this one:...
  What the hell is mt4 doing?  (13   1 2)
It is weekend! NO Ticks, NO Backtesting - but the mt4 (b628) requires 25% on each kernel's cpu time?? It behaves like a virus - may be that's the reason why it was detected as malware? Or Metaquotes has a partnership with an energy company?
[Deleted]
  Isssue with conditional test  (17   1 2)
Hi all, Rudimentary issue for a rudimentary programmer.. Trying to take buy and sell signals off series of bbands forming in a zigzag fashion. Buy logical: bband breaks down, bband breaks up, bband breaks down, final take a buy at the 2 bband break to the upside. (switch order for sell...
[Deleted]
void Process()   { . .       int      TotalSpread ; . .      for ( int x = HistoricalBars ; x >= 0 ; x-- )         { . .            TotalSpread = 0 ; . .               for ( int y = 0 ; y < NumberOfPairs ; y++...