Download MetaTrader 5

MQL4 and MetaTrader 4 - page 430

To post a new topic, please log in or register
hi guys. Let say I have two files: file1 and file2. In file1, I have a value call int a. Is it possible for me to access the int a when i'm working with file2? I'm still new to coding so any help would be appreciated.
I was wondering what the change in the buffers is when you scroll back and load older data. I am guessing the pre existing indexes are unchanged and the new data is added to the back. However what is the maximum size the buffer can get? Is an event created? Does the event cause the start() function...
hi, I wanted to close all trades after 50 minutes after the first trade? i have this script but i need to close all trade, not one, and to close all trade but from the first! example: first trade start at 15.00h (lot 0.01), second trade start at 15.20 (lot 0.02), at 15.50h close all !!!??? int...
Hi guys, to be honest I don't even know if this is can be coded or not so some help would be appreciated... literally I have always thought that mt4's built-in function of switching to the previously opened chart using Ctrl-F6 and Ctrl-tab really needs another function to switch to the previous and...
I've written an EA that seems to be working as anticipated when I backtest or run in Visual Mode. When I first started trading on live data, I was plagued by "Order Off Quotes" errors. After much reading on the forums, I modified my code and was able to get this issue resolved. However, it is still...
I want my ea to wait for three bars after the close of the last trade before opening another one. How do I do this? I can't seem to get access to the close time of the last closed trade. anybody?
I can't fathom this one.. string EUR[7] = {"EURUSD","EURGPB","EURAUD","EURNZD","EURCAD","EURCHF","EURJPY"};int start()  {   for(int j=0;j<7;j++)   Print(EUR[j],"  ",iClose(EUR[j],0,0));   return(0);  } the result of the print function is: If I ask it to print the result directly i.e...
HI All .. Thanks for your assistance in the past... Now I am really stumped I get only one error on compilation and this is it. int start() "unexpected function" This line is automatically placed by the wizard . I have double checked it and the "int deint()" coding before it. Any help would be...
Hello everybody! I'm looking for a best option to program my strategies and indicators. The Metatrader editor it's so poor if you compare with other languages (or others IDE's). Is there any way to debug our code..or at least, program our codes more easily? I found a Eclipse pulguin in internet, but...
please anybody help me to fix this problem as i am trying to compile in mql4 to .ex4 error name 556 variable not defined
Here are two screenshots taken on my HTC One: Half the screen is blanked out. Pls forward this to whoever is in charge and get it fixed. It renders the charts completely useless.
Hi everyone. Can you please teach me how you open and execute a file to code? I'm kind of a rookie. I only learnt some basic programming, but up until now i have no idea how to open a file to actually code something. Can somebody help me? Any help would be appriciated
Hi! I wrote new article, this time it's "Evolving Expert Advisers using Genetic Programming Platform". I tried to send it for reviewing but got no response for a long time. Do you know if new articles are still accepted?
ok for some reason i cant figure out how to check the closed trades price. I mean suppose you trade all day with dozens of closed trades and right now you ve got 2 open trades. And you decide to close the 1 of the 2. How will you check the last one order when there are dozens of other trades in...
Hi All, I seem to have a loop problem in Start(), possibly with return(0) statement(s) placement. (Hopefully the iBarShift function works correctly !) I want to display, in the same window, 4 TFs (say M1, M5, M15 and M30) of CSS display with 8 major currencies. What I seem to get is only the first...
Hi! So how do I do that?
Hi all. I ve searched a lot but i havent found anything in this forum or web that could help enough to answer my question. I try to post/export live trading orders (instant and pending) from MT4 account to my web hosting/MySQL (or through any other solution available). From what i ve understood...
New article Extending MQL5 Standard Library and reusing code has been published at mql5.com: MQL5 Standard Library makes your life as a developer easier. Nevertheless, it does not implement all the needs of all developers in the world, so if you feel that you need some more custom stuff you can take...
When I run a backtest with the strategy tester (Ctrl+R) and test is finished, I click the "Open Chart" button. The chart is opened with all entries and exits, that's ok, BUT if I finish another backtest afterwards and click again "Open Chart" button, it will not open another chart for the last...
Hi, when i use indicator on the chart all is fine, but when I use it from iCustom then is use the default for him period of time, is this anyhwo possible to change it? i mean how can I manipulate inside the indicator which time period is used for arrays like Buy[] or Sel[]. To be honest, value are...
I can't seem to sell any of the items I am buying. If I run the following two lines I end up with a buy for 8 lots, then a short for 8 lots. I want to buy 8 then sell 8. Any help would be appreciated. OrderSend (Symbol(),OP_BUY,8.0,Ask,0,0,0,"A real buy", 0, Blue);...
Hi I have installed the MT4 app on my Galaxy S using a demo trading account and received an ID which works very well. However, when I added a live account to the phone, I cannot get notifications using the same Metaqoutes ID (The demo account continues to report incoming notifications correctly) I...
I am wrting some code to move my stop loss to breakeven after certain number ofx pips profits has been secured. BUT.. how can I turn my code off when and if I decide to start a trailing stoploss from the MT4 menu manually. Is there a function that recognises that a MT4menu fired trailing stop is...
My MT4 backtester stops the backtest after 1 year data backtest,no matter what i try it doesnt do more than that. This is the last line of the journal so its not an error or something: 2013.09.06 15:20:17 2010.08.25 18:05 SANCTUS RAPAX TYPE B3.03 EURUSD,M5: close #21244 buy 0.01 EURUSD at 1...
Hi,I'm trying to code what i think should be an extremely simple EA. I just want a push notification sent to my android device when the 5sma crosses the 34sma,no trades entered just an alert. Here's what ive got //Inputs //Declaration double _MA_Fast; double _MA_Slow; bool _Compare; int start(){...
Hello!I am getting Order Modify Error 1 and here is the explanation in OrderModify "help" file:"If unchanged values are passed as the function parameters, the error 1 (ERR_NO_RESULT) will be generated."Can you explain what it means in English,thank you.
Tradeing Trader
Hello, how can i codeing to send images to a website without using FTP? in the mql5.com website you can send your pictures from your charts, i dont know wich technik they use to send tha pictures, but it work without ftp
Hi to all I need EA with daily 25-30 pips and maximum 8-12% drowdown . eurusd or gbpusd or ... Is there really no ?
Hello, I wrote the custom indicator below that writes the chart data to a file for my other charting software to use. I have tested it and it seems to work. Now, I'm thinking of making it create files for all symbols instead of just the current chart. Any ideas on how to accomplish that? If I...
I am aware that MT4 automatically keeps data in charts from past minutes, hours, days,etc Also, I am aware that there are some indicator scripts that allow data collection from future information. I want to create a script that would return past information in the form of candlesticks charts. In...