Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1194

To post a new topic, please log in or register
Hello Traders I'd like to change the color of a custom indicator ( MACD) like this : if the current MACD >Previous MACD : the color is green if the current MACD < Previous MACD : the color is red if the current signal> Previous signal : the color is green if the current MACD < Previous signal : the...
How can I find the highest or lowest value after a specified time. Please help.......
Gidday I am not a coder by any stretch of the imagination but you have to start somewhere. Could someone please look over the code and point out where I have gone wrong. extern double Lots = 0.1; extern double MaximumRisk = 0.05; extern double DecreaseFactor = 0; extern string i3="DeltaStop";...
When I try to Print the OrderOpenTime, it is displaying a 10 digit number which is not at all related to date. How canI convert this to real Date and time. Please help...thanks in advance. if(OrderSelect(OrderSymbol(), SELECT_BY_POS)==true) Print("open time for the order ",OrderOpenTime());...
New MetaTrader 4 Client Terminal Build 207: Fixed considering of leap days when setting data in inputs and in Expert Advisor'ssource codes.MQL4: Fixed error names in stderror.hMQL4: Added optimization when working with strings.MQL4: Fixed processing of literals for date D' and color С' when using...
Sending Trading Signals in a Universal Expert Advisor The article describes different ways of sending trading signals from a signal programunit of a universal Expert Advisor into the positions and orders controlling unit.It dwells on serial and parallel interfaces....
A new article by dmitriy, Interaction between MT 4 and Matlab via CSV Files, has been translated and published. Abstract: "Engineering system Matlab's computational power is known to be considerablysuperior to that of any programming language including MQL. Wide range of mathematicalfunctions...
i made this EA for modify TP when all position will make a certain profit, but it looks like there is a delay from the system to the EA so on a fast marketthe TP changes all the time because of a wrong data it receive from the market.
On the Automated Trading Championship 2007 website, article "List of Symbols Is Reduced" has been published. Unfortunately, the list of symbols will be reduced from 23to 12 on technical grounds. Now, this list is absolutely the same as that of theAutomated Trading Championship 2006. The full text of...
dear elite technical coders is it possible to make an EA that at a set time runs the MT4 optimimizer and updatesthe EA parameters with optimized new ones? yes?  no? also if it is possible pointers would be greatly appreciated. i am a new programmer but i am quicklylearning. thanks!
I started a contest Demo and I get this message in Journal. 2007.07.16 14:58:41 '449118': trading attempt in the investor mode I used the Demo password. Account number: xxxxxxxx Server address: demo.metaquotes.net:443 Master password: xxxxxxx Demo password: xxxxxx Please advise corrective action....
Is it possible to display the value of a variable as a label inside graph. Please help. Thank you in advance.
I'm not able to store values in a variable received via iCustom (of same data type). Is this not supported?
Can someone help me here please? I have some flags set in my EA which need to becleared every time an order is closed. But I don't know how to catch the signalwhen an order is closed by system, not my EA. Anyone had the same experience? Thanks, Tiger
Does anyone have a report template or other method to report total time that orderswere open? In Statement, DetailedStatement and StrategyTesterReport, it would beuseful to scan a report that has a column that shows the total time that orderswere open. Thanking yoiu in advance, Wackena
Can anyone point me in the right direction? I have been successfully hedging currenciesfor a while now, but because most of the action happens in the middle of the night(I live in Australia) I am not able to close out positions when overall profitreaches a certain level. I tried to find an EA in...
I reinstalled MetaTrader and i don`t have all pairs available like they were before,GBP/USD is missing ,I can only open it when I press profiles and then it`s blank,nothing is on the chart,what shall I do?Thanks
  Crash Report (1)
I was moving a trendline, and my code may have tried to delete it while I was manually moving it There has been a critical errorTime : 2007.07.13 12:05Program : Client TerminalVersion : 4.00 (build: 206, 06 Jun 2007)Owner : MetaQuotes Software Corp. (MetaTrader)OS :...
Hi, I am adding some labels to my charts using a custom indicator, and the items areprovided timestamped for GMT. However I am in GMT+1, and would like to handle theconversion on the fly as the labels are added. However to do that I need to accessthe client terminals local GMT offset - and add to...
Hi all, I have this EMA: double MA=iMA(NULL,0,2,-3,MODE_EMA,PRICE_TYPICAL,0); If I set a negative value in MA_Shift (-3 in my case), in the EA my MA value is0. Why? Could you help me about this? Thanks.
Good day? HOW DO I DECLARE THE SYNTAX AND WRITE THE CODE : If LOW and HIGH of 3 BARS >13EMA Thanx.
Hi, Any one please show me how to call a custom indicator form an expert. I try to writean expert that call a trigger indicator (post in this website), however it doesnot work. i make a function and coppy than pase trigger indicator code in thereso i can called this function from my expert but it...
Theoretical Basis of Building Cluster Indicators for FOREX Cluster indicators are sets of indicators that divide currency pairs into separatecurrencies. Indicators allow to trace the relative currency fluctuation, determinethe potential of formating new currency trends, receive trade signals and...
Tricolor Indicators and Some Opportunities for Maximal Simplification of WritingIndicators In this article the author dwells on some means of increasing indicators' informationalvalue for visual trading. The author analyzes the realization of tricolor indicators,indicators, for...
Greetings, I have just begun writing my first EA, but I need some help from the gurus andveterans of MQL4. I have experience writing code in C++ so I'm pretty comfortablewriting in MQL4. But for some reason I can't figure this one out. I'm writing a simple program to update the stoploss of my...
How can retrieve the details of an opened position, like open price, time, t/p priceetc. to different variables. Anyone please help, Thank you in advance.
  EA not open positions (11   1 2)
Hello I have a question regarding the Automated Trading Championships Data feed. Where will the data feed be comingfrom and where can I acquire the history data for optimizing EAs. The reason I ask is because the data that canbe downloaded from the Metaquotes Teminal is very different from the...
Is there a way I can message box or some sort of pop up that has a label/text boxinput for a script. I working on some troubleshooting alerts/messages where the user can input morethan just a yes, no or cancel.
Is it possible to trade multiple currencies using the same EA? Can this only bedone by using a separate chart for each currency?
1...118711881189119011911192119311941195119611971198119912001201...1245