MQL4 and MetaTrader 4 - page 646

  import question  (5)
Hi, I just coded a library 'mylib.ex4' in build 840. and moved that library to build 509 and compiled an indi using that library. It compiles fine. The I move the indi to build 840 and attach the indi to a chart it says: cannot load external program 'mylib' What am I doing wrong ? I have included...
Hi, I want to make an EA tat is called/running once a day - but here in my test-code every hour. It writes a comment with the time (local) of the last run and the time it should run the next time: one hour later. BUT as you might see the OnTimer() seem to run every tick? Is that a bug or a feature?...
[Deleted]
Hello!I Own an indicator , but it only appears correctly in a separate window. When you insert the chart only the entries of "put" are visible.I would like to add it to the chart, without changing their prpriedades , and turns it into arrows. For he is like histogram.Can someone help me?Thanks!
Hello I'm having the following problem on all of my brokers with demo account (don't know about real account, right now I only use demo accounts): When I attach my EA to a Live-Trading-Chart, the following function returns 1 (what is correct and I can do orders with 1 Point Entry/SL difference)....
[Deleted]
  Help with Chart Events  (11   1 2)
Hi guys,  I need your help :). I want to combine two different chart events. For example if I press a key and the left mouse button at the same time, then another action should follow ( e.g an object is created). Does anyone have an idea how to realize this? Thanks for your help! 
[Deleted]
Hi, I'm very new to MQL4 and maybe my question has an obvious answer - but do I understand correctly that there is no way to access history of the account margin? If that's correct - how could I record AccountMargin()? Maybe printing it into a csv or writing a gui indicator? Thanks a lot in advance....
New article Statistical Verification of the Labouchere Money Management System has been published on mql5.com: In this article, we test the statistical properties of the Labouchere money management system. It is considered to be a less aggressive kind of Martingale, since bets are not doubled, but...
Hi, Whenever I open a chart using ChartOpen() in MT4 the last bar on the chart is on the left-most corner (meaning the entire chart is empty except for one bar on the left of the chart) . Then I have to scramble for page up / down to get it in the proper place. Have I missed anything after calling...
[Deleted]
In EA testing, the data can not be written to a CSV file?
I've been trying to get to the bottom of terminal hangs after removing multi-timeframe multi-symbol indicators. This issue can be replicated (on my terminal) by applying this very simple script. About 5 seconds after script execution, the terminal will hang for 1-2 minutes. I would appreciate it if
[Deleted]
Hi Guys,    I'm stumped on some code...can you help?    I've got two functions in an include file (GetA and GetB). I want to use these two functions to populate two arrays that will later be used in two custom indicator buffers. But for some reason, I can only get one array to populate. Please see...
hi all, I had planned a backtest this morning when found that the mt4 strategy tester returned no significant results. i couldn't understand this as my initial test was a direct duplicate of a test i did recently which yielded plenty of significant results. i decided to uptick ‘skip useless results‘...
Can anyone tell me if there's a working COT indicator for MT4 latest build? I tried almost everything with no success...
[Deleted]
Hi, I noticed that if an EA is tested in strategy tester when logged in on a demo account the result will differ if same EA is runned with same settings when logged in into a live account. If I strategy test my EA logged in to the demo account it generates twice as much profit as it does...
Hi, our ADX values that weobtained by entering Wildes formulas (about 15 formuals to get to the final adx values)are almost the same as Metatrader, but notquite. we are doing our own software and backtesting using the ADX (dm+ anddm-) on excell spreadsheets. we need Meta traders ADX excell...
Anybody success backtesting Renko charts? I Google it, and found only old solutions or can't find the necessary files.
[Deleted]
Hi mql4 community! As the subject says, I am an mql4 newbie and I would appreciate a lot if someone could point me in the right direction. This is what I want to accomplish: - An EA that opens position in EurUsd when one of many conditions is true and then closes this position after X amount of time...
  Chartopen error  (3)
Hi, I'm using an old mql4 editor (build 509) to compile and modify an existing indicator and would like to use ChartOpen(). All I need to do is just compile so I can copy the ex4 to the new MT4 (build 840) and use ChartOpen like it was intended. I added some code like this to just take the call in...
[Deleted]
In this EA, It opens order on each hourly bar & closes with it. It closes in 60 mins. if ( T11 ==0 && T1 == 0 && BuyTicket == 0 )         {       if ((OrderSelect(BuyTicket,SELECT_BY_TICKET)) == false)           {                            double OpenPrice = Ask;           StopLoss = low -...
I am looking for indicator value chart in mq5 extension and also FL2 indicator in the same extension. Anyone can help me with these. .??  Thanks 
[Deleted]
hi everybody please i need your help because i have no coding background and want to code simple indicator. i  am trying to code an indicator that draws two emas(55,100)on the main chart and also draws horizontal line at the point when they equal each other (ema1=ema2).the horizontal line should...
[Deleted]
Hellos all!   I am currently having trouble getting dashboards of any kinds to work in my mt4. The alignments are always off. For examples:   What should be:   What appears on my platform:             What should be:   What appears on my platform:           What should be:   What appears ony my...
Hello guy, could anybody help me? I am trying to write a function that checks every trade opened by the EA if the distance from each trade is more than "GridDistance". GridDistance usually about 20 pips. Right now I am counting if all the trades match the criteria and that I compare it to...
Hi, I just have recognized that a list of global variables (GlobalVariableSet(..)) disappear? At least as soon as I start the debugger the whole list is wiped out - before my code tries to request the variables or their values? Does anybody what I can do?? Thanks in advance! Gooly
Hi guys, Just come across an interesting problem/bug and not sure if it's been identified before or even if it's broker specific. Try using the following in some indicator code, have the indicator running at startup and note the values when you first run MT4 (make sure MT4 hasn't been running for at
what is the difference between virtual hosting and virtual private server? is it free?
Hi! If any body have information about adding custom indicators to Android installed MT4. Plz send details on prg.system2000@gmail.comThanks
[Deleted]
Hi My EA was logging into log file using Print() function without any problem. After the upgrade the text is logged but is not visible until I remove EA and close the terminal! Look like problem with buffer flushing? Please help WalterMK
//+------------------------------------------------------------------+//|                                                        MySMI.mq4 |//|                                                  Daniel Donnelly |//|                                             enjoysmath@gmail.com...