MQL4 and MetaTrader 4 - page 768

[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++...
string methodString= "MyMethod()";//execute methodString; ?????? How to execute a string as a method?
[Deleted]
If the price has moved up 100 pips without retracing at least 20 pips, then open a sell. If the price has moved down 100 pips without retracing at least 20 pips, then open a buy. Once a 20 pip retracement has occurred, the count to 100 starts over from there.
Can anyone see a problem with this snippet: I first try to determine which bar the trade opened on, then using the result of that I want to use iHighest to locate the highest bar since (and including) the trade opened. But I get a strange result...Let's assume the trade opened on bar 0 (the current
  Bull/Bear candle  (3)
Dear all, I did open this question several months ago but since then I couldnt find another answer but it is impossible to know that information. Please help me out to get rid of this idea at least. We have full bull candle. Then next candle open at Open Price. How do I know at the OPEN PRICE...
  ManualTrader  (2)
ManualTrader runs a continuous script to open Buy or Sell positions, place pending and straddle orders for instruments on multiple charts, maintain and close partial or full orders. Reverse orders, close half order, open OCO orders, delay orders for trading reports are also catered for. "Action...
[Deleted]
Hello I want to update the last bars (e.g. last 200) bars on my chart of a symbol. To do that I am trying to do updates on historical data files of the appropriate symbol. I found a script here and adjusted it which now looks like this: #include <WinUser32.mqh>#define OFFLINE_HEADER_SIZE 148 //...
Say TimeFrame is 1 Mn, is Time[0] the first tick received after 00' Or is Time[0] the first tick send by the broker after 00' What's the precision of Time[0] ?
[Deleted]
May I humbly ask a tough question ( is tough for me ) ? Is about writing a history file ( like FILE_BIN, FILEFLUSH, FILETELL, FILESEEK ;I don't really know what's these even after reading over and over and I never use those ) . Have you ever heard of a EA that can create an offline chart with live...
Hi I am Alex. Can someone teach me how to add alert to the following indicators:STOCHASTIC OSCILLATOR,MACD,MOVING AVERAGES. My e-Mail address is alex.edi4real@yahoo.com. Thanks
  slippage  (1)
Hi all, I there a way to get the slippage value from the Broker? Thank you in advance for any clarification. Luis Neves
Hi, I wrote EA's for different pairs. but i like to use only one chart. Currently i run GBPUSD chart and strategy running for EA on 30min tf. now i add code for USDJPY with 4hr startegy also. EA not opening buy/sell orders? i take values from following code by opening GBPUSD chart. why USDJPY orders...
Hello My name is Donald. This ea works fine one a single chart. i use it on the small chart like petrolbars (with a value of max 25 ) so mine highest lost will be about 500 euro. But what i would like is that this ea will work on several chart at the same time. i hope that someone would like to fix...
//+------------------------------------------------------------------+//|                                                      ProjectName |//|                                      Copyright 2012, CompanyName |//|                                       http://www.companyname.net...