When you attach an EA to a chart or start a backtest/optimization, then the list of external variables for that EA gets printed to the terminal experts tab or strategy tester journal tab (respectively) under the entry title of "inputs". Does anyone know if it is possible to retrieve this list using...
New article Create Your Own Trading Robot in 6 Steps! is published at mql5.com: If you don't know how trade classes are constructed, and are scared of the words "Object Oriented Programming", then this article is for you. In fact, you do not need to know the details to write your own module of...
New article How to Develop an Expert Advisor using UML Tools is published at mql5.com: This article discusses creation of Expert Advisors using the UML graphical language, which is used for visual modeling of object-oriented software systems. The main advantage of this approach is the visualization...
[Deleted]
Hi everyone, I am using below codes to delete all the objects created by EA. However, when I remove the EA, there are still some objects remain on the chart All my object names are created with something like string name="EA" + XKDLJFLSIJ; int init(){ RemoveEADrawings();}int...
[Deleted]
Hi everyone, If I don't have a separate window from any indicator, am I able to create a new window from EA to show info/debug msg void iDraw(string name, string text, int x, int y, color c, string font, int size, int corner, int angle=0, bool back=false){ ObjectDelete(name);...
Could anyone please tell me,what is indicator name ? I forget the name and cannot find mq4 file. I remember that it draw on main title,not seperate window. Please kindly help. Thank You very much.
[Deleted]
if I use: Variable=iCustom() indicating the name of script and the buffer # from within the script the returned variable is: the position in decimal value of the height of the indicator right? Or does it return a different value?
[Deleted]
If I have built in self destructive traps for unauthorized usage of my EA, can i still atend championship ? EA is only empying unauthorised users account and then mashing up itself, no harm to computer(in championships version). Traps are integrated in EA code, so can i attend championship ? Do they...
Hi guys, i need some help what im trying to do is store the (last profit taken price level) and use as a condition for entry. A continuation of trend in the same direction. Thanks for your help. //+------------------------------------------------------------------+ //|...
Recent MT4 (and MT5) client installers don't run on Windows 2000, the setup is terminated without any error message. The client terminal application itself still works flawlessly if the installation is made under a more recent 32bit Windows version - copying the installed program from an XP box does...
Hello boys, So my setup is as follows: one chart (with its own EA) is opening the primary order, while a second EA runs on another chart (same symbol) - for hedging and other purposes. The bit below is part of the secondary (hedging) chart and EA, and tries to close the primary order in the hedging
[Deleted]
Hi i've a ordermodify cmd that always execute even when the if statement is false. please would any experts here tell me why is this so ? if (OrdersTotal() >0 ) {OrderSelect (ticket, SELECT_BY_TICKET);double currsl = OrderStopLoss ();if ((currsl - pivotlow) != 0) { //if pivot low is NOT the same...
hi, i created an EA and made it run in 2 different metatrader platforms, one in hotforex, and another in ironfx. The below code works in ironfx and doesn't work in hotforex whereas both platforms are 5 decimal. double SL = Ask - BuyStoploss7*PipValue*Point; if (BuyStoploss7 == 0) SL =...
[Deleted]
I was fascinated by the topic of replacing the trader's brain with a computer, and suddenly I remembered a long-awaited piece of software designed to replace the trader's grey matter. I was pleasantly surprised that the project is not dead and has made some steps forward. I was pleasantly surprised
[Deleted]
I want to create an Object (Trendline and Text), that moves with the Bars, so that Time1 = Time[]. But I want the Object to be always at the same Y-Coordinate in the Window. So that Price1 = 20 or so. Is that possible? I thought ObjectMove would be a solution, but it seems as it changes both
Hello forum, So I am looking to incorporate the following logic into my EA: 1)Record time of opening Order A 2)keep it and work with it....... until 3)new Order B is opened. I did 1) via selecting the order in MODE_TRADES and recording the time etc., but wih 2) I got stuck - I thought a static...
[Deleted]
Hi all I want to put envelope from chart window into INDICATOR WINDOW but i don't know how to do it. can someone show me how to do it. very much appreciated
Hello everybody. I am new in MQL4. I want to have different colours under certain conditions e.g. If CLOSE is higher than the HIGH 4 bars ago the bar/candle to be Green and if the CLOSE is lower than the LOW 4 bars ago to be red. Can anyone show me how to do this?
Hi, I struggle with programming, (Somewhat dyslexic -- can't remember code.), so I have to resort to cut and paste methods. I'm trying to put together an EA alert system so that I don't have to watch Forex charts for hours. The script should be fairly simple as it does not need to open orders, set...
I understand Time[] and iTime uses, however to refer to a particular time or time range does one simply use datetime ? https://docs.mql4.com/dateandtime/Hour Is that all there is to it ? Please advise Thanks
[Deleted]
Hi there. We are a new brokers in the market, We need MT4/MT5 mobile application which can be customized with our company name; logo...etc, Kindly share the source from where I can get these customized application created & which all mobile will support these appls, Awaiting for your curable /...
hello please i have this expert i need every button to do its task the key is in this code ////////////....................////////////logic of x1 buttonif(WindowSize[0]-XY[0]>5 && WindowSize[0]-XY[0]<540 && XY[1]<29) ///adddddddd{click=0;continue;}//logic of x3 buttonif(WindowSize[0]-XY[0]>5 &&...
[Deleted]
If so, what do I need to do to receive a copy? Thanks, Chris. Automated Trading Solutions Ltd
//+------------------------------------------------------------------+ //| NewCrossAverage.mq4 | //| doshur | //| www.doshur.com |...
[Deleted]
Does the MetaTrader4 app work on 4gs with IBFX broker? I've tried and just get invalid account. Thank you.
[Deleted]
Is there any answer to the question, why if I use iHigh, iTime, iHighest or any of that function and choose a lower Timeframe in the function as it is in the chart, the result will be 0 for about 16hours(if I use 1M in the function). This Problem also only occurs in the Backtester. I've been reading...
Hello.. I work with the distance between price and a moving average ... But, there are more ways to work correctly with ma 's ?? Thanks, for your contributions
Hello, I have a quite strange problem. I have indicator, which plots one line with constant slope per bar. If I include this indicator into expert indicator line plots strange way during testing period. Before testing period it looks ok. If I reexecute indicator on expert it plots OK. What is...
[Deleted]
Dear Sir , Sorry , I'm very newbie in forex , I hope someone helps me . I 'll open a trading position , its lotsize 3 % of FreeMargin . The algorithm is like this
Hi, I am programming an indicator table which shows my the gradient of the macd. Here I have a few problems: for(x=0;x<9;x++) { double MACD_gradient = ( iMACD ( Symbol (),period[x],FastMACD,SlowMACD,SignalMACD, PRICE_CLOSE ,MODE_MAIN,Bar_last+ 1 )- iMACD ( Symbol
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.