MQL4 and MetaTrader 4 - page 709

To post a new topic, please log in or register
Hello, This is my first post. I am programming a custom EA that uses ADX Cross indicator which prints in the chart arrows to signal buys and sells. Like the following: I added another buffer to the Indicator in order to be able to read the signal, which was one of three: BUY, SELL or NOTHING. I run...
Hi, does anyone know of a script or other method that can place and/or move a limit order continuously between a live moving bid/ask with stop 10pips away and take profit 5pips with options to change,sl or tp distance or limit distance from bid/ask. Effectively, the idea of a market order but via a...
hi everyone. i really and desperately need your help anyone!! my broker is fx pro, based in cyprus. thier server time is GMT + 2. they have told me i cannot change it, but they also said that the mql4 community may be able to help in getting a custom indicator or something. can anyone help me please...
EA will not be OP when setting lots smaller than 0.05 original settings extern double Lots = 0.10;extern double StopLoss = 100;extern double TakeProfit = 10.00;extern double TrailingStop = 5.00; Values ​​lot changed, but EA is not the OP extern double Lots = 0.01;extern double StopLoss = 100;extern...
It does not work in new version mt4 client of FXCM though It was working perfectly before. http://download.fxcorporate.com/FXCM-MT4Install.exe //+------------------------------------------------------------------+//|                                           OneKeyBuyMorePairs.mq4...
Is there a function that can tell me which chart an order is on? If I shutdown then restart MT4... my EA thinks the order is on all my charts
Something i don't understand is when do you load indicators to a chart, is there a reason for it? Is it to make the expert advisor less harder working than to load the indicators from the indicators folder? And is there a difference for loading indicators in the way the expert advisor is written?...
It doesn't want to buy. Expert Advisors/Allow Trading are enabled, smiley on the top, seems ok. Please help, thanks
  Ask not working (12   1 2)
Hello everyone, I'm learning MQL4 (already know programming) and I'm trying some logic, loops and price levels. I'm trying to check the high of the previous candle and display an alert at that level. Example: previous_candle = (symbol,0,1) if (Ask = previous_candle) alert(hello world) Not working....
Is there a way to paint candles in an indicator instead of just straight lines so we could get high, low, open, closes of the indicator value?
Sometimes my EA ignores my advices and opens an order, allthough the conditions I had made are not fullfilled. Could it be that the system has too much to do ? I have 15 different currencies in my window and the same EA running 15 times . How much currencies can MT4 handle at the same time ? I...
I have following codes when i execute it on the chart it stars to placing one pending order continuesly what should i add to it for place only one single order /-------------------------------------------------------------------- // simpleopen.mq4 // The code should be used for educational purpose...
Hello. I am new to MQL4. I have several questions. I can you say as it indicates which price is the line? As he said when opening a new wing in order to create a moment of opening the new wing? thanks
if(condition==true) { //Opposite as the OP_BUY Stop Loss scenario. RefreshRates(); while( OrderClose(t,OrderLots(),Ask,Slippage, Green)!=true){Sleep(500);} } This works fine with the backtester but with live trading I get no result not even a log entry. The EA button is...
Does anyone know how I can code an EA to draw lines on a chart? Thank you!
I have been given FTP details to download an xml feed (Trading Central feed) onto MT4. How is the procedure to add this information onto the MT4 platform?
fftremblay
Hi everyone, I have an issue with ibarshift. I have the following code int init() { int time = Time[0]; } int start() { price = High[iHighest(Symbol(), 0, MODE_HIGH, fPeriod(), 0)]; } fPeriod(){ if(Time[0] == time) return(0); if(Time[0] != time) return(iBarShift(Symbol(), 0, time, true)); }...
hi i have had some indicators after subscribing to a monthly abonnement to the most known trader in my country ad all arabic world, and also beterthan many in the us, i made a comparaison, i live in new york, brooklyn . as yo see it works for all of them . it is easy to make a sonor ALert for MACD...
Hi, I want to understand how a simple indicator like a 2 MA cross works and draws arrows in the main chart because I want to make a simple indicator myself. The indicator I want to make must do some very simple calculations with the values of every bar and it's previous one and based on the outcome...
Hi Guys, I was mind blowing after finding a simple yet genius indicator posted on Forex Factory forum. This indicator opens an independent floating dialogue window within the chart window, using dll, for fast Orders management. I storngly reccomnad you try using i for your trading, but the main...
Since I am new to MQL4. and I've tried the below translation but failed. AA:=MA(C,10); BB:=MA(C,50); CC:=MA(AA-BB,10); ABC:(2*REF(CC,1)+3*REF(AA,1)+4*REF(BB,1))/7,COLORRED; PARTLINE(ABC>CLOSE,ABC),COLORBLUE; I am most appreciated someone can help me to translate this to MQL4. Thanks in advance.
I compiled and tested an expert (EURUSD). The problem is that, even after attaching it to the chart, enabling live trading (smiley face is on the chart), the expert does not make any trades. MT4 options are consistent with expert settings, too. I am working with an ALPARI demo account. Any...
Hi, Please tell me what time zone I'm looking at on the Meta Trader charts? Can it be changed to my time zone? and Please tell me who runs this page, is it users of meta trader? meta trader company/developers? or both? Thanks, Larry............
Hi, I have calculated my lotposition and if the result is f.e. 0.047 Lot, I want to round it of to 0.04. This systematic should work on a micro- and a minilot account.
double NormalizeLots(double lots, string pair=""){ if (pair == "") pair = Symbol(); double lotStep = MarketInfo(pair, MODE_LOTSTEP), minLot = MarketInfo(pair, MODE_MINLOT); lots = MathRound(lots/lotStep) * lotStep; if (lots < minLot) lots = 0; // or minLot...
Hi, Please tell me what time zone I'm looking at on the Meta Trader charts? Can it be changed to my time zone? and Please tell me who runs this page, is it users of meta trader? meta trader company/developers? or both? Thanks, Larry............
I have an expert that I am running in tester that takes data and saves it to a text file. The EA simply takes various variables and saves them as string variables in a text file. It does this through the use of the FileAppend function. Attached is the code. What I have noted is that when the...
Hi When I try and remove a profile it just keeps coming back this is annoying because I have too many there and only want 3 so I can scroll thru them quickly. The same is true for saved templates I remove them but they just keep coming back. Thanks
Hi, I am using an idicator that draws line of dots on main window of the chart. What changes need to be done to indicator so that there is only the current line of dots and remove the previous lines of dots ? Please see attached file of the indicator.
  robot problem (3)
Hi good people. i have an ea that works on meta trader. now my problem is that when i installed it i refused to work and i say that the spread is to wide for meta robot to trade. i do know of the the added figures that have been added on to the currency. now can any one tell me as to how i eliminate...