Download MetaTrader 5

MQL4 and MetaTrader 4 - page 347

To post a new topic, please log in or register
How to convert server to local time frame?
Hi   I would like to add this indicator as a filter for trading - simply if trendline is blue then long positions, if red then short positions. I am used to using icustom to bring in the indicator values to my EA so that i can use them, but I am not sure how i would do it in this case. I have tried...
  1 HOUR CHART (1)
HI GUYS  can anybody help me, I'm trying to get price data for the 1 HOUR CHART since 2010. On my MT4 it doesn't go back so far. Any help would be appreciated
Hi all, can someone help me to do Winning & Lossing indicator? Like this:      Thanks in advance. 
 How to stop charts server data based on timings? 
when i do some test with mql4 by this script:   int i = 0; Print(i++ + i++);  // result is "1" i = 0;  Print(++i + ++i); // result is "4" not "3"    and i had do the same thing in JavaScript, "++i + ++i" => 3; is that a bug? 
Hello: In marketinfo(), MODE_TICKVALUE is defined as "Tick value in the deposit currency". This is correct for Forex. But I can see this is not correct for CFDs (indexes, for example). In indexes, it should say: "Tick value in the index currency". I suspect this is related with MODE_PROFITCALCMODE....
Hi, Since yesterday i don't see Custom Indicators on Navigator. What will be the probloms? before it was shown. Also when i tried on indicators menu, many indicators showing as grey colors and as hidden? Please support me to solve this issues? My indicator files were copied on...
When i use multiple MT4 instance (more than 2) or just after a while, MT4 starts to give me unreal results. Cheking the results i discovered it starting to skips trades.. I set spread to 10 pips fix. It happens both on 3 or 1 years of backtesting. On M5 charts. Both with tick, control points or...
<advertising removed>
Hi , New update with version build 670 we can't draw a trend line , We can't draw a channel ,  it is too slow , My  Lap works with windows 7 ultimate , Is all traders notice that or there is something wrong with my windows although the last version was worked nice  
  Help with array (10)
Hi Everyone, I try to work with array and write this simple code. I am not sure why it show the "array out of range" right away at the cutup[I]=High[I]. Could you please help me to correct it? Thank you so much, SCFX    int limit=rates_total-prev_calculated-1;   if(limit<=0) limit=1;   double...
has anybody tried out if this is working in new MT4?
  Return shift by...? (13   1 2)
Hello, guys. First of all, sorry for future stupid questions or parts of code may be, because I'm just learning MQL4. So I'm trying to make it work a code that could define which price of two prices was the last by price to visit. I.e. I have two rectangles and want the indi to calculate the edge...
Indicator added to chart, indicator buffers drawn correctly:   Now scroll back to the start of the chart, and keep scrolling back to add more bars. The indicator buffers seem to stay where they were before more bars were added, thus moving them into space.   Is this a documented issue, or am I just...
How do we change the logo/icon picture of an expert advisor in the about tab to our own custom logo? Can this be compiled/embedded in the ex4 file so that when we distribute the ex4 file, the logo will be included without the need to link/copy the original icon image file to the new computer?
I was doing a tra-il ing EA , when I tested on demo I notice that only the buy orders got it correctly ( I think ) , whereas the sell orders only moved stop loss ONCE . I still can't spot where's the problem though .    ** Edited the code **  
Hi, i am using FXCM MetaTrader 4 Version 4.00. Altough the software is installed at another partition of my hard drive, it keeps saving history data on the system partition at c:\users\%username%\local\virtualStore\MetaTrader 4 Terminal\history Is there a way to change or adjust the folder, so that...
I would like to say that the developers solve it  to become a "pips" column between columns of the terminal.  When I look at the terminal, I can see how many pips did.
when selecting "copyall"  for optimisation results .... the list copied to clipboard is only 128 odd count - varies from time to time. you need to go back and select each 128 odd rows - for as many that are there. Can it be fixed so 'copyall' copies all row?
When trying to run MT4 on a fresh reboot - if the internet connection is not present - then some trades fail in backtesting. Only after reconnection of the internet connection, do the trades perform as programmed. i.e. lots 0.1 will trade but both lots 0.24 and 2.24 will not. i.e. it seems that...
gilmt5
Progress is stopping at this. I tried all day.
All indicators have a "visualisation" setting, which should allow the trader to set which timeframes he wants an indicator to appear on, however I'm seeing all custom indicators being initialised on all timeframes regardless of the "visualisation" settings. Is this a bug or am I missing something?
The object property OBJPROP_ZORDER is used to set the click priority of the object, according to the docs. I have tried settings the Z-Order of a number of different objects to anywhere between 1 and 999999999 and it still has no effect on the click priority. Is this a known issue or am I missing...
  I'm tired (2)
why i'm tired ? ho, let me think.. maybe because people ask questions without providing deatails or maybe because people ask questions that can easily get answered using a quick Search (top right corner on every page) or google or maybe because people are lazy and don't wanna spend their time to...
I am using the function iBands in an EA to evaluate whether the 3 Bollinger Bands are rising. Herefore I look at the last closed bar and the one before last closed bar on a 1 hour chart. For the Middle Band, Upper Band and Lower Band I get correct values in the EA when I compare with the Data Window...
If Ihave an optimization result which gives a Maximum drawdown of 'x' during whichthe Risk Per trade was set at 'r' % of the account equity, then how do Icalculate the size of 'r' that will produce a value for 'x' of 10%?   I'm not sure it is even possible at this stage....not withoutmore...
Hi there, I receive this error: 5004 ERR_FILE_CANNOT_OPEN Cannot open file It happens when trying to open a csv file to read it. input string fileName="calendar_statement.csv";input string directoryName="Files";datetime newsItemDateTime;int...
Hi there, is it possible to use Strategy Tester based on actual historical spreads?  If this isn't built in to ST can it be coded in to an EA? Thanks, Brad
Hi. I have this small problem. I have created an EA that closes all open trades when it hits a certain profit or loss and it is working fine but when i opened 200 trades then activate it when it hits 2000 profit, it only closes by batch but not all using this code. for(int...