MQL4 and MetaTrader 4 - page 703

[Deleted]
  iBarShift issue  (5)
Hello ! string time = "2014.11.10 22:10"; iBarShift(Symbol(),Period(),StrToTime(time),true) does not find the bar. But I can see the bar on the chart. The bar before the searched one ("2014.11.10 22:09") and the bar after it ("2014.11.10 22:11") is found without any problems.  And...
[Deleted]
hi guys i have 10 opened charts and i'm using the code below to autoflip them. #import "user32.dll"   int GetParent(int hWnd);   int SendMessageA(int hWnd, int Msg, int wParam, int lParam);#import#define WM_MDINEXT   548extern int SlideShowSeconds = 5;void start(){   while (!IsStopped()) {      int...
[Deleted]
  Script DeInit  (1)
Is there a DeInit type of handler for scripts?  I have a script that is in a loop until a condition is met.  It creates a text object to say "Script Running".  When the condition is met I can delete that objects.  HOWEVER, when I exit the script manually, the text object remains.  DeInit doesn't...
My own personal views on backtesting in mt4 from strategy tester, historical data and optimization for expert advisors. When the average joe, who is savy with programming in various languages, comes to meta editor with the assumption that they should be able to use historical data to test their...
Hello, Just a quick question Is there a way to attach a screenshot to an email . Basically make the WindowScreenShot() function and the SendMail() function work together ? cheers, -J
TOPIC, please help if you can, godbless   
Hello, A couple of years ago I asked this same question (Not here) about renaming Chart Windows in MT4 and was told that it was not able to be done,. Just recently I was given an Indicator and a Template from a trading group that I am with, which does just that. The instruction that came with the...
[Deleted]
I want to buy a mt4 server api...how can I buy MT4 710 build api..?then I want to test my API  how can I test..?
  iCustom with REI  (4)
Hallo, i tried to get the values of the REI by using iCustom(). But i dont get anything but Zero. double val=iCustom(NULL,0,"RangeExpansionIndex",1,1,0);   What is wrong and can anyone help me? Best Regards Alex 
Hi, My EA always needs to check the last close trade but whenever mt4 is closed and restarted it does not read the last trade. Any ideas how I can code my EA to check the last trades result even when the terminal is restarted? double profit = 0 ; datetime lastCloseTime = 0 ; int cnt =
[Deleted]
Hi guys, I would like to know if it is possible to detect chart scroll. Whenever somebody scrolls right/left I would like to redraw my indicator. Any ideas how to do it? Thank you for reply!
I'm looking into developing an EA to trade the DAX or GER30, but when I attempt to run one of my more basic strategies on the DAX in the strategy tester, I find that I can't get it to download any Metaquotes data. I believe its using only the data provided by the broker FXCM. So can anyone confirm...
Hi, I can't figure out how to get the indicator to consider all the candles as opposed to only the ones which have come since i have opened the chart.    I've got pretty simple code for example's sake, just working with the close prices:  Any help really appreciated. Thanks void OnTick()  {//---...
Hello, I was wondering what's the difference between these 2 commands. Thanks for the help
where can i  find the souce code of  iVolume function ?
consegui baixar um indicador no MT4. mas nao consigo abrir o mesmo. qual o procedimento?
[Deleted]
 It really isamazing the kitchen that I got from Stilhaus Kitchens. Stilhaus Kitchens Reviews
[Deleted]
I wrote this to check if the close price of the last 150 bars were above the moving averege of the last 150 bars. bool ma_buy_2() { int i = 1; int n = 1; double MA_Array[]; double Candle_Array[]; for(i=1; i<150; i++) MA_Array[i] = iMA(Symbol(), Period(), 200, 0, 0, 0, i); for(n=1; n<150; n++)...
[Deleted]
  Build 752  (3)
Disappointing the latest version of the terminal, the terminal closes constantly for no reason whatsoever!!!
For currency trading in MT4, we use magic numbers to identify individual trade. For the e-mini S&P trading, can we still use magic number? 
When trying to use the function TesterWithdrawal ( https://www.mql5.com/en/docs/common/testerwithdrawal ) in mql4 I receive the error: "CExpertExecutor::TesterWithdrawal is not implemented yet" I found of this funciont in MQL4 Reference: MQL4 Reference / Common Functions / TesterWithdrawal...
In an Expert Advisor code, I would like to know on which bar of a chart the user clicked. From the example and documentation of OnChartEvent() function, a left click of mouse can be captured as a position (x, y). Is there a way to get the bar time/number on which the user left clicked?
I would like to use these functions, however there is no help i.e. descriptions which probably means that these functions are not implemented.I remember that i saw some help in MQL5 regarding this, but now i cannot even find that.Anybody knows more?
Dear Metaquotes i use this  code to test arraybsearch i feel the result is incorrect int OnInit()   { //---    ArrayResize(array,10);    array[0]=64;    array[1]=128;    array[2]=52;    array[3]=78;    array[4]=30;    array[5]=21;    array[6]=88;    array[7]=977;    array[8]=2110;    array[9]=887;...
The Search did not provide me with any result regarding the subject... The latest version of MT4 for Windows Mobile targets Win. Mob ver. 6.5, not higher. Today's devices using 7.5-8 (!!!) Is there any hope for correct version of MT4 for featured Win. Mob. devices of 21 Century? (I'm not Android...
Hi, i have made an observation. Actually i am doing this observation for 2-3 years on same broker. I thought maybe i am wrong and evaluate things wrong but i am now read to clarify this. I would like to hear opinions from community please.  Problem: There is price difference between...
[Deleted]
real headach here Built in indicator like stochastic can be displayed like belowfor(x=0;x<6;x++)    {      if((iStochastic(NULL,TF[x],PercentK,PercentD,Slowing,MODE_SMA,0,MODE_MAIN,0)) >           (iStochastic(NULL,TF[x],PercentK,PercentD,Slowing,MODE_SMA,0,MODE_SIGNAL...
Hi all, I try to code an EA that handle with d'alembert progression (for all that don´t know progression d'alembert: http://www.bettingexpert.com/casino/roulette/strategy/d%E2%80%99alembert-system ) The plan is to start with 0.01 lots and SL 13 pips / TP 14 pips. Each time a trade close with a loss,...
[Deleted]
Hi, If I have 2 mt4 terminal instances running on 2 different computer with 2 different locations, is that a normal behavior that if I submit an order at a computer, it will be 'discovered' on the second computer 30-40 seconds later? Is there anything extra from metatrader (or the broker) involved...
  Historical Data Solutions  (13   1 2)
With the new builds for MT4, it appears as though the importing of historical data to the History Center is no longer allowed thereby restricting back tests to the use of inadequate data. What are various solutions to dealing with the problem of inadequate historical data in MT4