[Deleted]
Hello, I have a real simple program "testcmeter" that basically should use icustom to return a value from a custom indicator called "CCFp" (both are attached). Before I build the program further I want to make sure it's giving me the right values. When I run the EA ("testcmeter") in the strategy...
[Deleted]
Been working on this EA for the last 3-4 months. Finally have everything working like intended. Backtest took about an hour on both FXDD and CitiFX pro; same settings were used on both backtest with the exception where C= 3 on citiFX and C = 5 on FXDD. changing it back to C = 5 on Citifx reduces...
[Deleted]
Two items I would appreciate your valued comments on. .. ONE Reading some site docs and require your observation on this source code found at https://book.mql4.com/samples/expert In code snippets (1) and (2), > is used do you agree? (1) // Order value...
Hi guys, I use the following loop in order to cycle my orders and close all orders in the same symbol and magic number. for(cnt=0;cnt<OrdersTotal();cnt++) { if (OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES)){ if (OrderSymbol()==Symbol() && OrderMagicNumber() ==...
Hi Everyone, Does anyone know of an indicator that determines if the market is ranging or trending? Thanks and Regards!
Hello everyone, does this picture look to good to be true? Obviously it is. Oh, how I wish it was true! Not that I have deliberately faked anything, but even the most optimistic person would realise that this cannot represent real results in the real world. Anyway, here is the thing. I wrote an EA...
I've worked through alot with MetaTrader, but this one I really don't get. The Tester iterates a function several times - it's not that the function fails - but then it just freezes with the Stop button remaining active. 1. int MyFunction { 2. for{i=1;i<=5;i++) { 3. if(!MyArray[i]) {do something}...
please help transfer the code to mt4 code...Tq so much...ma((h+ref(l,1))/2,3); ma((h+ref(h,1))/2,3); Var1:=((h+l+c)/3)*2-l; ma(Var1,3) ;
Could you kinldy explain the below situation? I write the following: Fast_Ema = iMA(NULL,NULL,9,0,MODE_EMA,PRICE_CLOSE,1) ; Slow_Ema = iMA(NULL,NULL,18,0,MODE_EMA,PRICE_CLOSE,1) ; In my expert I write the entry condition as follow: ... && Fast_Ema>Slow_Ema && ... ; There are some circumstances when
I am absolutety new to MQL. I need an expert advisor which would automatically trade whenever it is activated on EUR/USD chart......The criteria are - Account balance - $200 Lot size - 0.01 Stop loss - $1 Take profit - $0.3 This means - buy / sell EUR / USD pair and close the position when either...
Hello, this is my tickdata indicator: What can this indicator do? It can show you tradeing signals with calculation the income tickdata. How does it calculate the signals? The indicator looks in wich direction the income tickdata move more above or down and generate arrow signals. Wich settings have...
I am having difficulty trying to display the difference in price between the High and Close (for an up bar) and the Close - Low (for a down bar). I can do the calculation of price difference but how do I display that difference at 1 pip above the upbar and 1 pip below the downbar for every bar?...
any1 kindly help me please, i tried to call a script after other script drag and dropped... i kind a confused how to explain this in english... i hope one can understand what i mean :) files: script 1script 2what i did now: drag and drop script 1 (to get value A on chart)drag and drop script 2 (to...
Hello everyone, I'm quite new to MQL4 and haven't yet found a possibility to know if a certain bar is the first of the day (what can easily be done visually in the chart with "Show period separators"). So, what I'd like to have is some function like bool IsFirstBar(int bar_index) { But what would...
Does anyone know what happens to running programs when a computer goes into sleep mode ? I was wondering what would happen to metatrader and an EA would they continue running and the EA continue to trade or would they pause operations untill the computer is wakened up again, and does the internet...
Dear Coders, Should you kindly help me code the EA with trailing stop, take profit, stop loss, lot size from this indicator. I am much greatful for your kind support. Thanks and best regards, Lam
I am wanting to take a 10 EMA and apply it to the Average True Range with a period of 1 (not to be confused with ATR of period 10). Assuming the ATR indicator is the only additional window attached, how can I code the value of the 10 EMA of the ATR (in the ATR indicator window) utilizing the "First
New article Connection of Expert Advisor with ICQ in MQL5 is published at mql5.com: This article describes the method of information exchange between the Expert Advisor and ICQ users, several examples are presented. The provided material will be interesting for those, who wish to receive trading...
[Deleted]
Was there any who can tell me about metatrader history, its creator and its development up to the MetaTrader 5, .. please help me, ..
I'm trying to Gage the type of performance I should shoot for. Just a simple Yes or No answer here would do. Have any programmer here managed to create an EA with the follow results or better? If your answer is Yes, can you specify the PF, MD and Average #Trades per year. Thanks Guys. Average: 2%...
[Deleted]
I have been studying the MQL4 platform and the available EAs, and I have a question: Are there any automated EAs that work for reals and do not drain the deposit? If anyone knows about them, please share your experience and information
[Deleted]
Hi, I'm new to mql4 coding, and have a problem with output values of indicators when coding my EA, for example stochastics or CCI. I noticed that there is a remarkable difference between the values of an indicator seen on the chart after a backtest and the value the program "read" and use. For...
[Deleted]
Hi, I have a startegy when I enter Long when: Close[1] > SMA 20 // ENTER LONG I would like to exit when price close below SMA 20 and below first Close[1] - 10 pips : Close[1] < SMA 20 && Low of the first Close[1] - 10*Points (this one I enter long) My problem is to recall the candle of reference ....
[Deleted]
hi guys, I'm looking for a one-click buy/sell possibility in MT 4 since it's not implemented like in other trading programs. I found the "oneclicker" but that doesn't allow more than one currency pair at the same time - so one has to click through until the wanted pair is reached. Does anybody know...
HI, I need an EA coded for MT4, I have been working on strategy for some time now and am ready to go, however I do not want to trade fx for this one, only commodities. Fairly simple long/short strategy with TP and SL and %automatic rebook, which from what I gather is alot less complicated than the...
New article The Magic of Filtration is published: Most of the automated trading systems developers use some form of trading signals filtration. In this article, we explore the creation and implementation of bandpass and discrete filters for Expert Advisors, to improve the characteristics of the...
im new to mql4.And i started to create an EA based on some customer indicators. What i am looking for is a sloution for below scenario. I use X pips goal per day.lets take it is as 10.and i trade it on in london session(that wrks fine in the code).the issue is the pip goal for a day.lets say the...
[Deleted]
Hi, Hereunder is the code of an EA that don't want to run correctly :( it should work like this : MALx => long EMA (200); x => period MAMx => medium EMA (80) MACx => short EMA (30) Order 1 => buying order and Order 2 => selling order I would like to do a buying order when : Long Ema is going up...
[Deleted]
As I usually am trading and/or testing multiple strategies at one time, I am attempting to write a simple indicator that will display the strategy name in the top right corner of the chart. l Have been thus far successful with the attached code however; I have to hard code the strategy name within...

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.