For a long time I have aimed to implement automatic emulation of ticks from Expert Advisor/indicator (i.e. to enable it to "tick" itself), without using self-written DLL or scripts. Purely sporting interest, so to speak :) Although, maybe it will be very useful for someone, if his aim is not to
Martingle Strategy. EA places a buy Order, then when price falls below the spicified amount of pips below first order it places another buy order. I'm having problems printing the second test line, which is where the second buy order would execute from. e.g. Print(" ----- SECOND TEST LINE -----...
MetaTrader 4 Client Terminal build 509 Terminal: Fixed the launch of the client terminal after LiveUpdate operation with enabled UAC. Terminal: Updated translation of the user interface into Portuguese.MQL4: Fixed a compilation error that in some cases led to errors in executing MQL4 applications....
MT4 is getting complicated for newbie Now You have to be a programmer People from other different languages Russian and English We have problems with mt4 If I want to download a custon indicator is not easy as before. Please can someone explain me how? Before: experts/indicator drop indicator...
metatrader opens mql5 language editor why?
int start(){...if ((Open[1]<Close[1]) && (hour ==TimeHour(TimeLocal()))) //Here, Open[1] and Close[1] refers to last bar closed{ OrderSend(Symbol(),tipoop2,Lotesvinc,tipoopprice,3,SL,TP,NULL,0,0,White); cnt=1; while (cnt==1) { if ((Open[1]>Close[1]) && (hour ==TimeHour(TimeLocal())-1))...
hello Guys.. i just realize that wininet not working if i compile it on metaeditor build 600 #import "Wininet.dll" int InternetOpenA(string, int, string, string, int); int InternetConnectA(int, string, int, string, string, int, int, int); int HttpOpenRequestA(int, string, string, int,...
[Deleted]
Hi, I'm beginner in mql4 programming. I'm trying to write a code to identify a color of a custom indicator, but til now, I didn't have success! I need to identify when last bar is purple or green. The indicator is attached below. If anyone can help me I would greatly appreciate it.
Hi, I created my own EA but I wanted to know if there was a way to code the EA, so it there are 2 losses in a row it will not trade to trade in the same direction again until an oppsite order is executed. For instance my EA gives a sell signal & it gets stopped out. The EA will Open the Sell signal...
For mt4 build 509, I implemented the following code so that I could print the bid, ask, and volume of each incoming tick on a backtest or in live trading. //+------------------------------------------------------------------+//| expert initialization function...
[Deleted]
Hi, Is this the correct location Data Folder MT4?
I have an EA which works fine in the previous version but now can't work under build 600. When I did a back testing, it shows "Custom indicators cannot be tested" (btw, there is calling cutomized indicator in the EA), and even I put 1mth data to test, only shows "1 tick events" Could anyone help me...
Just a curiosity question more than anything, since I deleted most of the return(0)s in the old build with no ill effects. The new 600 build debugger keeps telling me off if I accidentally copy and paste return(0); into the void OnTick section. My solution was to delete return(0).
I am looking at the LotsOptimized function in the sample EA "Moving Average.mq4", this is a EA which comes with every installation of MT4 and is obviously intended as a sample/template for people to learn how to write EAs... And I can not get it through my head how can this code be part of the...
when i need any code i can search code on old MetaEditor like below: But now in New MetaEditor i can't fine this search option. How can i search code like old editor into new MetaEditor?
I have a client saying that code working in Build 509 is now causing problems on Build 600 (MT4 freezes). I've heard of other people experiencing problems. How many indicators and EAs might this affect, dozens, thousands? What did MQL do to MT4 that causes this problem? If Build 600 breaks existing...
Hi im trying to program an EA tu trade on forex weekend gaps, but this week i tried to open orders and i wasnt able to send it? is not possible? im trying on armada and AAAfx
[Deleted]
Dear forum members, I would like a Meta Trader platform with pre-programmed RSI (Relative Strength Index) sound alerts built in and I pray to God that email alerts can be included. I tried reading the Meta Quotes help topics but I cannot get pass the “creating an expert advisor” button. Maybe I am...
Please I need with the below lines of mql4 codes. It fails to compile and returns the error "'\end_of_program' - unbalanced left parenthesis". //--- input parameters extern int WhenToStartTrailing=60; extern int PipsToTrail=10; double Rhigh ; double Rlow ;...
How can i fix this. Whith older version I was able to open number of terminals that i want to and login to another accounts. Pleas help. Its very important to me. Thx
Hi!, after the upgrade im having some troubles in my server, im opening the metatrader and getting erro not finding Ex4 because is tryin to find it on C:\Users\reivaj117\AppData\Roaming\MetaQuotes\Terminal . Is there any way to chane to the file where is metatrader is installed? inside metatrader?...
Which free SMTP mail server can be run on New build 600. is anyone have any idea.
Hello Guys, I am Back. Yes Back because I was 'Banned' from this Forum! I didn't get any warning about it though and it was my ignorance about the matter. I apologize for it and understood what I shouldn't had done. Anyway, I am opening this thread with the hope of the solution as this is the Core...
Build 600 - set file bug? Save set file, load set file in tester - gates set to true become false
(4)
As the title suggests. Has anyone else seen this? I can create a set-up (on a live trading bot), save the set-up as set file, go into the tester, load that same set file and I find random things have occurred (i.e. parameters have been altered). The one thing that seems regular is that true/false
how easy count difference (seconds) between two datetime types?
Hi still on the lot issue, ive tried a script here that i thought of but strategy testing it gives an error wrong lot size. I dont know wether history data doesnt support some functions or what. The script is for EURUSD only. What am i doing wrong or is it a strategy tester problem? extern int
[Deleted]
Value1 =1.3224 ; Value2 = 1.3424 ; IF MarketPosition == 0 and L > Value1 Then buy("매수",atlimit, Value1); if MarketPosition == 1 Then exitlong("청산",atlimit,Value2); metatrader 4 conversion
Hello, I have some EA's that work fine at other brokers but not at Oanda. Oanda uses bridging software to communicate with MT4. If I get stopped out the EA is supposed to place a new order. What happens, is that after being stopped out on Oanda's platform, the EA loses track of my position and...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.