MQL4 and MetaTrader 4 - page 845

[Deleted]
  PROBLEM CODE  (32   1 2 3 4)
I want to download historical OHLC, fractals and zigzag indicator, using this script, but when I opened the csv, I have not any information. Can anyone tell me the error there? //+------------------------------------------------------------------+ //|
Hello, I'm trying to code a repeating (looping) function. I'm not looking for the entire program (EA), just the function that will do the following: Buy at price A Place stop at A-50 If stopped out buy again at A+50 Place new stop at A If stopped out buy again at A+100 Place new stop at A-50 Keep...
  MT4 Java API  (71   1 2 3 4 5 ... 7 8)
I would like to bring to your attention the MT4 Java API I have developed
[Deleted]
I am facing issues with MT4 since last night as it crashes after start. The error is" MT4 has stopped working" windows is trying to find solution to the problem and nothing happens thereafter. Any fix for the issue. Thanks Praveen G
  How do I encrypt a mql4 file?  (21   1 2 3)
Where to start?
[Deleted]
By the Pepperstone's MT4 I see unusual behavior related to primitive function of MT4 that I summarize by an example Eg. lot size = 2.3 - OrderLots(): it returns only the integer part of real lot size. -> In this case OrderLots() returns 2 - If I use OrderClose(OrderTicket(), OrderLots(), 0.0, 3.0)...
[Deleted]
Hi everyone, I wrote code as belows for my EA, compilation is Ok but no result appears after back-test in MT4 for long period. So I think I got problem with the code. Can anyone help me to resolve this problem? Thanks so much! The code is very simple with 3 terms for trade! extern double...
[Deleted]
Hi guys, I am new to the programming side of this so I thought I would much around with EAs that are already written. In this particular case, I'm having difficulty with my trailing stop function. I have attached the whole EA as I'm not sure if it's the function or the function call that is the...
[Deleted]
Hi Im trying to place a pending order and Im getting the error 4107 = "Invalid Price". How far should the pending order price be from the actual price? Thanks
[Deleted]
I have been looking for a while now and I can't seem to find one. I would really like to test a EA/ROBOT out that uses this method. Any help locating one would be appreciated as I have manually gone through the EA's and I don't see one and I think I might be missing it or overlooking it. Thanks...
MODE_SWAPTYPE: 0 - in points; 1 - in the symbol base currency; 2 - by interest; 3 - in the margin currency. How do I calculate the profit based on MODE_SWAPTYPE in MQL4? Does anyone know where can I find a method with parameters and return values in profit? Thanks.
[Deleted]
Hi,I want to subtract a decimal point number lets say as an example 0.256 from an integer lets say 831 and then square the result,like so: x= (a-b)^2;but the compiler gives me the error, "'^' - bitwise operators are to be applied to integer values only"
How to get the commission fee in mq4 before sendorder? e.g. double COMMISSION_PER_LOT = MarketInfo(Symbol(), ? ); Thanks, Anton
[Deleted]
I know the MT4 client has the option to enable static bid alerts > or < than a specific value, but is there a value that can be changed for a dynamic change in bid percentage? For example, if the closest bid is 2% below previous bid an alert is played. I tried AutoAlerts and while is somewhat...
[Deleted]
Hi.. I got an error message "unknown ticket XXXXXX for orderclose function", could some body help me ?...Due to that the expert advisor cannot close the order... Please help me and my code as below: .........int            MagicNumber = 34567;int            TicketNumber;.........void OpenBuy() {...
1) If i set a backtest to run from january 1 2012 to december 30 2012, and let's say if i have any indicator that collects data from the past 200-300 candles, does the strategy tester let the indicator to use data from 2011 if we currently are at january 1 2012 and dont have 200 candles formed...
I have a Ea which I can run in our Demo account and it buys and sells with NO issues. when I try to run it in the Stategy Tester, The chart shows " Waiting for Update", next message, "MetaTrader has stopped working". I have checked : 1/Mt4 "IS not in Program files", So NOT UAC issue. 2/ The .ex4 and...
[Deleted]
Hello Everyone, I run backtest of EA1 quite a long time ago. Now I have new version of this EA, name still EA1. When I run backtest of that new EA1, somehow MT4 still uses the old EA1 information. I try to delete the EA1, then recopy but still MT4 "remember" the old code and run it!!! Could you...
[Deleted]
Hi, if i watch the Eur/Usd chart i have currently the value 1,35070. I have marked "Show the grid" but the values are 1,34948 the next vertical value is 1,35003 I know i can scroll the values, but what i want is the grid with 1,35 next 1,3525 next 1,3550 next 1,3575 next 1,36 To reach the values...
[Deleted]
When loading an EA in MT4, the journal brings and error: "TestGenerator: Unmatched data error (volume limit 363 at 2013.11.13 04:00 esceeded) I cannot identify what error this is. Do I have some error in MQL code? Thank you
[Deleted]
Hello Everyone, I have a set of 3 indicators with function as follow: 1. Signal indicator which will give buy/sell/TP/Sl point. 2. Filter indicator base on a lot of IF to give the confirmation of when to trade. 3. Trading EA will take the signal from the 2 indicator above and trade when signal +...
[Deleted]
Hi, I just experienced this on 13 Nov 2013 23:50 (UTC+2) with my local broker. Is there anyone had same problem? Please help. Order No 4154814: Closing Price @1282.41 while my Stop Loss @1281.15. There are 126 pips gap and make me loss extra USD 1,512 (126 x 12 Lot). Order No 4157657: At the same...
  compiling error  (2)
please any body help me, about my problem I m trying to compile the EA but the error massage is comes "using of decompiled source code is prohibited " so please help to overcome this problem
  Ticks per minute  (1)
Good Day.. Is there a consistent figure here that shows how many ticks occur in a minute. Thanks...
hi! i am in the process of writing an indicator which will be displayed in a separate window. the functionality is complete and now i am just sorting out the aesthetics. in the corresponding region of the Data Window each of the indicator lines has an appropriate name, however, the "group" of lines...
Hello, I just installed MT4 in windows 8 and found that script not working, please help me. Thank you.
Hi again, I know that 'old' EA do always NormalizeDouble() their prices (entry, stops, targets) they send to the server. Is this still necessary or have newer versions of the server sided mt4 learnt how to deal with more decimals than Digits? Thanks in advance, gooly
Hi I read that the Tickdata of Dukascopy should have pure GMT-time so any time offset has to be zero. Fine,that's what I thought, as soon as I watch the H1-chart of the weekends the DST is switched. In Europe: last Sunday in October (here Oct. 30, 2011) and last Sunday in March (here Mar. 25,...
[Deleted]
hi everyone i am new to custom indicator scripting, so i made a custom indicator that shows the difference in price on a graph in a separated window and i also plan to do add another one that shows the average price difference in the same window The first graph (price difference) i drew was okay,...