MQL4 and MetaTrader 4 - page 906

To post a new topic, please log in or register
I am trying to develop an adaptive moving average indicator based on Perry Kaufman's method. So far, I have modelled the indicator in excel and I am now trying to code it in MQL4. I haven't gotten very far and could do with some help if anyone would be kind enough? Here is my code to date:...
Hi, If you are looking for an experienced MQL4 programmer to code anything for you, I am your guy. I will code anything from the simplest indicator to the most elaborate EA. If you are interested, please contact me via the forum, or at my email address: tutbalut@gmail.com Successful trading to us...
does anybody know how to code a rectangle (OBJ_RECTANGLE), so that it only shows the surrounding lines (of the rectangle) and not a rectangle completely filled with colour? thanks in advance
Hi, I understand how to calculate the OrderProfit in Forex markets. Could anybody explain how I could do the calculation in MQL in CFDs and Future markets? [ I want to simulate the OrderProfit() Method with different ClosePrices to estimate the win/loss...] Thanks in advance.
I want to use a inter timeframe indicator with iAD, part of code goes as: int start() { int limit; int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; //---- for(int i=0; i<limit; i++)...
Hello everyone! I ve downloaded this indicator. But then i ve dropped that on the chart - no lines appeared. That problem with this ?
hey everyone..... ordinarily a simple google will find what's needed..... not so here.... several indicators i've been lookin at are asking for "ICS"...... i can not find it anywhere...... in the heading it always says Presence ISC.mq4 ...... which i'm guessing must be a typo........ can...
pomata provate una formula this vedere ma mi da l'Una marea di ERRORI, io vorrei Semplicemente IL SISTEMA Che mi dia Segnale quando chiudere crossa la media mobile al rialzo SUA e viceversa ! La formula di base Essere dovrebbe : chiudere doppio = iclose ; closeprec doppio = iclose [1]; mov doppio =...
Hello Great forum. We have encountered an issue with the Mobile MT4 Platform. We are unable to install to our HTC HD2 running Windows Mobile 6.5. It tells us that it is not a Pocket Pc Application. Is there a specific technique i should be using to Install the Platform, is the .cab or .exe file more...
New article Adaptive Trading Systems and Their Use in the MetaTrader 5 Client Terminal is published at mql5.com: This article suggests a variant of an adaptive system that consists of many strategies, each of which performs its own "virtual" trade operations. Real trading is performed in accordance...
Hi all,   I'm trying to create a buy statement as if :  MA2=iMA(NULL,0,12,0,MODE_SMA,PRICE_OPEN,1);   iClose(NULL,0,0)>MA2    But every time I test it with strategy testing, it creates buy positions even if iClose lower than MA2.. How can I state that BUY ONLY if Bid > MA2 ?  Thanks 
Hello all. I have a very sticky issue for which I cannot find any solution and would very much appreciate any pointers or ideas. My EA is gernerating the error 4007 no memory for temp string. Has anyone else ever run against this? I build strings to add to a log, but truncate to 248 bytes before...
So far I have found the following characters used to form Symbol or Instrument names: #ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._abcdefghijklmnopqrstuvwxyz are there any others? Thanking you all in advance.
  Time[0] in the backtester (11   1 2)
Does anyone know if the backtester handles the Time array properly? i.e., if i run a backtest starting July 1st, will calls to Time[0] in the EA return July 1st, or whatever time it is now?
Hello felows, I need a help to start my first project. There is an indicator called FFcal that use forexfactory.com website. This shows Important news relative to currency of opened chart. If pair is EURUSD, it will shows all news from EUR and USA dollar. It trace a line with hours of anticipation...
Hello, I am writing indicator which scans different symbols and timeframes for candlesticks. Candlesticks formations are early trend changing signals. The idea is: 1) Scan array of symboks ("for" cycle) 2) Scan array of timeframes ("for" cycle) 3) Find symbols/timeframes which matches criteria...
I am a newbie (like so many others here) to both MQL and Forex. I am working on building an MA crossover EA, and am challenged to understand how one can get an EA to identify the crossing over of MA's with the same time period, while one is offset by an MA shift of 2 as compared to the other MA....
Wondering if anyone out there uses or has or knows how to add a crosss over alert to the RSI (Relative Strength Index) I want an audio alert to sound when the RSI crosses either up or down through the central 50 line Would appreciate hearing from anyone who can help me out Thanks - Leith
  MT4 Library. (1)
Hi, I have been trying to transfer E/As and indicators from the MT4 library to the navigator section of the platform with no luck. Sometimes they do appear on the platform, but then dont transfer to the charts. Very frusstrating. Any help appreciated.
Hi Guys Having trouble with this OrderModify error 1. The most basic error in the book and one I haven't been able to fix as yet. I downloaded an EA and have it compiled but can't get past this error: if(Bid - OrderOpenPrice() > Point*TurnSourLimit && Bid - OrderOpenPrice() < Point*TrailingStop) {...
I noticed that the values returned by iMA for an EA are different from the ones shown on the graph by the corresponding indicator. I have written a small EA to test this: int start()  {   double EMA;         EMA = iMA(NULL,0,10,0,1,PRICE_CLOSE,0);   Alert("EMA=",EMA);  } I have done backtests on...
hi 1.how do i connect ea to multiple time frame . for example i have set up in h1 and i need to look at macd in h4 2.if i connect ea to eur-usd and gbp-usd how do i switch between them how the code refair to the different graph ?
Dear Experts: I need a dll to read text so that I could use it for an autotrade program. Thank you for your help.
How to understand this codes? for(shift=Bars-ExtDepth; shift>=0; shift--) { val=Low[iLowest(NULL,0,MODE_LOW,ExtDepth,shift)]; if(val==lastlow) val=0.0; else { lastlow=val; if((Low[shift]-val)>(ExtDeviation*Point)) val=0.0; else...
Hi I am trying to learn mt4 by readfing the book here and at the same time looking at and modifying some of the custom inidcators I currently have. Can someone kiindly point me in the right direction for this problem: I have an indicator that defines price levels for the current day based on a...
Hi I'm looking for freelance to code email alerts. Requirements as follows: -Buy/Sell Trades alerts with details such as timestamp, price etc. -Close trades alert, together with details such as TP/SL -Hourly position/pnl/equity checks. Pls PM your qoutation. Thanks.
hi where i can find one indicator for triangle pattern ? thanks
  Forex scanner (1)
Hi MQL4 programmers, Does any body have any code that allows you to cycle through the available Forex pairs with your broker? So in its' simplest form to drop a EA or Indicator on to any chart which then goes and looks at all other chart pairs. thanks
//-------------------------------------------------------------------- // Tester_Invert.mq4 // To be used as an example in MQL4 book. #include <stdlib.mqh> #include <WinUser32.mqh> //-------------------------------------------------------------------- // Global variable...
Hi there, Does anyone know how to code an EA that returns the value of what the bid/ask price was X amount of bars back ? Thank you !