MQL4 and MetaTrader 4 - page 634

I'm using some code in an indicator to generate synthetic instruments for currency indexes, and storing the results in an offline chart. Once per minute, the code syncs data and writes new bars to the offline charts. The indicator then references the generated bars from the offline charts using...
Hello, Could anyone tell me how to recover password for a Mt4 demo account?
I want to save the data folder as EA, air traffic indicator on AppData in which store windows installed in place then how?
I was wondering if someone could help. I am using MetaTrader 4 for the first time and I am having some problems with some indicators I am trying to use. I have got the squeeze break indicator and the TTM trend indicator attached to my chart. However it will only apply these indicators onto the last...
hello, if i have to link Trader's choice of Time to trade with  OrderSend in EA  using the  following code:                TIME:   bool TradeTime=false;     if (Hour()>StartHour)&&(Hour()<EndHour))           || (Hour()==StartHour&&Minute()>=StartMinute)            ||...
Hey guys, Every time I lose connection to the server on my MT4 terminal my EA does not seem to resume trading upon re-establishing the connection? Any advice on how to get it to carry on trading when the terminal reconnects? Any help is appreciated! 
Can i add Hours of Trade to EA coding that allows me set anytime? Thank you
Hi, Could someone please show me how I can detect and only execute something at the open of a new bar please? I know how to do it in an EA but struggling with an indicator (it's the first indicator I've written!) Thanks in advance. 
Hi Is there a way to programmatically disable sound of Alert() function? Manually, one can go through Tools > Options > Events (tab) and therein click "Alert" once so that a "x" sign (in red) appears on it. Yet, I wish a solution to do so from within the code. Thanks in Advance  Vivek 
i have a problem, few days ago i update to windows 10 and now  m mt4 it doesn't open, can someone help me out please
[Deleted]
1.the fist: install mt buil 229 ( i don't try version another) 2.login and update  run good : meta editor, mt4..... everything ok :)  
I have been using the production Metatrader 4 from metatrader4.com for some back testing of EAs. (Not tied to a broker MT4). Therefore, I get regular updates of the latest release. I kind of like that. So this is not a complaint. I noticed that with the latest update Build 851, the first time an...
Hi. Please help me how I can open my platform on the last tool bar settings. I used to have that but something changed and now I the platform does not open on the last setting.
Hi. when I open MT4 platform the last setting of tool bars does not hold. Please advise me what has gone wrong.
Hi all, I am interested to hear thoughts regarding back-testing of trading ideas and "how much is enough". Suppose one has a trading idea and uses historical trading data to back-test it, how many trades or weeks of history are sufficient for the data/conclusions about the system to be meaningful?...
[Deleted]
Can you explain the difference between tick_volume and real_volume in struct MqlRates?
[Deleted]
Hi All, I am trying to Convert a Strength Indicator to Buffer out/Draw Out Result Of Multiple Pairs not just the main Symbol()...But, am having problem doing that.... I saw So many peoples using this and i think if we could convert it to Cluster Type it would be Cooler... #property...
This is the part of my coding in my EAs that is giving me some headaches. This will check if there is free margin to open the position, but seems is failing in some brokers that are using Stopoutmode==1. This is the only part of the coding that I didnt make it, seems that checking free margin was...
[Deleted]
I want draw different colors for different Situations. Example: if(MACD_Value == 100.0)   {   string Col = "Green";  Order_Close(Col); } if(MACD_Value == 0.0) { string Col = "Red"; Order_Close(Col); }      -------------------------------------------------------------------------- // Functions:...
Hi all, I noticed that even if I use fixed price points to draw a trendline, going to the lower timeframes could result in a mess. Here you can see a trendline I drew on the H4 chart. You can clearly see which points I used to draw it. The "problem-area" is marked with a yellow box: Now the same...
[Deleted]
  iCustom Question  (3)
Can anyone show me the correct way to input a value from a previous period via iCustom? For example, is the last value of the iCustom call , the shift from the current period? double BuffA = iCustom ( NULL , 0 , "Indicator" , 0 , 0 ); Should the call for a value of the previous candle / period be
Hi, all! I'm using Markets.com as Forex broker to test my EAs. I'm using iLowest() and iHighest() in my EA for the first time, this way: g_iMaxBar = iHighest(NULL, ANALYSIS_PERIOD, MODE_HIGH, 10, 1); g_iMinBar = iLowest(NULL, ANALYSIS_PERIOD, MODE_LOW , 10, 1); dMaxValue = iHigh(NULL
[Deleted]
I set my email alerts during the night to wake me up if a trade is setup. My alertsdo not work for some reason when my computer sits for several hours. They workfine when I am on my computer. I have turned off hibernate, standby, and screensavers. Does anyone have experience with this problem ? thx...
Hello All, I want to do a step by step check of the results of my EA. I want to output the variables somewhere i can later on refer to. Can some please guide me here? If i use the print function will it store in the journal files?   -Cheers!! 
Hi all ,  I am trying to create a trailing stop strategy with Heiken Ashi indicator , using it's High/Low value on previous bar (bar[1]) .  All i need is the instruction that will generate the High/Low value . Any suggestion will be highly appreciated . Thank you .   
Hi there, When I run the below code I get error code 1 i.e. ERR_NO_RESULT - No error returned, but the result is unknown.  Would appreciate any advice as to how to resolve that. Cheers, B. Ticket1=OrderSend(Symbol(),OP_BUYSTOP,LotSize,EntryLevel,3,SL,TP1,NULL,0...
How to add order comment that will show up on the ticket ?  (not for internal reference) 
int Total = OrdersTotal (); double BalanceUsed = AccountBalance(); double Balance; for ( int i = 0 ; i < Total; i++) { OrderSelect (i,SELECT_BY_POS, MODE_TRADES); if (OrderType() == OP_BUY || OrderType() == OP_SELL) { Balance = Balance - OrderProfit(); } } for
Hi Coders! Is is possible to get the XSIZE of a LABEL OBJECT? I tried this code: label_object_xsize = ObjectGetInteger(0,object_name,OBJPROP_XSIZE); But I got this error message: Unknown object property Thank you in advance. Relative