I am trying to download MQL4 NOT MQL5. Every time I go to download MQL4 on my laptop it automatically downloads MQL5. How do I fix this issue
void TouchedSR() { InsideResistance= false ; InsideSupport= false ; for ( int i= 0 ; i<10; i++) { double HiCandle = iHigh ( NULL , TradingTimeframe, i); double LoCandle = iLow ( NULL , TradingTimeframe, i); //Test for being inside a zone. if (LoCandle <= HI_Res &&
Hello. I'm using the mql4 standard library and using CListView created a list. Can somebody please tell me how can I change the listview background? To avoid misunderstandings, I mean, it's white by default and I want to change its color totally. I don't mean to change the border color or the
Can anyone add an Alert when apper Classical and Hidden Divergences in this indicator please? Thank you very much
int OnInit() { static double A = 0.1; //Buy static double B = 0.2; //Sell int Ticket1 = 0; int Ticket2 = 0; return(INIT_SUCCEEDED); } void OnTick() { Ticket1 = OrderSend(Symbol(),OP_BUY,A,up,1,cp-20*Point*10,cp+15*Point*10); Ticket2 =
Hi, i'd like to retrieve the latest closed pair specific ( eurusd ) closetime. However , i am seeing all related iterations. How could i choose (retrieve) the recent one? Responds are appreciated... void OnStart () { //--- for ( int i = 0 ; i <= OrdersHistoryTotal() - 1 ; i++ ) { if (
Hi Everyone. I have recently built a Moving Average cross over EA. My issue is that it sometimes places the same order twice and I cannot find the reason why. I only experience this issue when live trading (1M Charts) and the problem doesn't show up on Strategy Tester . Please note that I am a new
Hey y'all. Been programming recently, and was frustrated at how limiting and silly array searches are in MT4. So, I wrote some new ones. One for searching a single dim array, and one for searching a 2 dimensional array. I think they're kinda neat - maybe you will too. Also, in the file are 2 array...
Hello All, I am trying to set up push notifications to go to my iPhone MT4 app. the notifications come through on my desktop but at the end of the notification it says "not sent to *******" MetaQuotes number. Also, if I send a test alert it does not go through to my phone at all. How do I fix this
Dear community, after i placed some alarms on several charts on mt4 i see that i cannot set more alarms. Is there a limit on mt4 to place alarms
MarginPercentage = (MT4_margin / MT4_equity * 100)
hi dear, can i send and receive data in ea in mql4 using webrequest ? (send and receive via json or ... ?) thanks
Good afternoon, I am programming an EA that needs to check whether the previous bar has crossed at anytime the Price Channel indicator or not. I'm using a PChannel indicator I downloaded as a graphical guide, but I've programmed my own in the EA. The PC I've programmed works fine, except when the PC
Hi, I want to use OrderSend with fixed sl and tp for my strategy but in backtest as you can see in the picture it was not trigged when my target price hits the price. the order send successfully without any error. what is the problem? thanks? double StopLoss=GetStopLossPrice(PZ_GetLastBDTrendLine()
Hello I would need some help please. How can i save the Takeprofit Level ? I dont want to put it in the "OrderSend". Because i need it for something else. What happens here is that when the OrderSend is executed in the Comment I can see the Value allthough it lasts only until new tick. How can I
Hello,everyone, I would like to ask about how to set up auto trade based on MT4 alert? For example, i got a MACD indicator and it can show an alert for buy/sell signal. How can i make that alert to be a order by programming? Anyone can help me? Thanks a lot
Hi all, I need a MT4 indicator that counts up/down bars and pips for a certain period. Additionally if it is possible, in a small window to count the same on any timeframes. For Instance: EUR/USD 1M Up Bars 432/Down Bars 522 Up pips 6663/Down pips 3342 EUR/USD 5M ...................... etc I tried
Hello. I am new to coding, and am learning a lot, however I have struck something that I cannot get my head around at the moment. I am trying to call the result of a test in one of my indicators, to an ea, so it can add it to its own tests before placing a trade. The ea is a simple moving average
Hello! Please I'm trying to run my script but each time i run it, it doesn't run in my current open chart. I'm currently on the XAUUSD(Gold) and each time I compile and run my script it runs on EURUSD, and I'm tired of dragging it to my current open chart. Currently running on MT4 with MQL4
I'm trying to figure out how to export the Account History and get it into an (Excel) Spread Sheet for Analysis. I did a search, but didn't find a solution. Thanks to any and all for any assistance
Dear All, Why my indicator can not show anything? I want to design a indicator for weighted rate of change with formula as below #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Red //---- indicator parameters extern int RPeriod = 10; extern bool
Confusing how ArraySize doesn't work in a loop. I am looping the array elements to move all down and update the zero array with the latest spread. input int Spreads = 8 ; int iS[ 12 ]; //spreads array string sS; //spreads int OnInit () { ArrayResize (iS,Spreads); //Print(ArraySize(iS)); //8
[Deleted]
Hi I am wondering if anyone has come across an indicator/EA that can be run over a period of data that would be used in a backtest, to give some indication on what type of market it was. I would like to get a better idea of why my EA parameters suite certain market conditions. I appreciate
New article Advanced Adaptive Indicators Theory and Implementation in MQL5 is published at mql5.com: This article will describe advanced adaptive indicators and their implementation in MQL5: Adaptive Cyber Cycle, Adaptive Center of Gravity and Adaptive RVI. All indicators were originally presented...
I would like to add code in the indicator below so it delays the playing of the soundfile so that it doesnt sound like a stuck record. https://c.mql5.com/3/137/Horizontal_Alert_Lines.mq4 Thanks in advance
Guys, is it possible to create a horizontal line in MT4, and when it gets crossed by a candle, to sound an alert (and perhaps open a .dll or .exe file)? I am using this 4H strategy, and I don't want to be bound to the PC... Thanks in advance. Dave
The function GlobalVariableSet needs a double parameter. I'd like to store a string value like "ABC" as a global. Is this possible?? Thanks
:) Hi I'm having this MT4 indicator, which i didn't use for a long time, back then it was working perfectly well but now it's not loading and while compiling it's shows a warning " possible loss of data due to type conversion" for this code. // define count symbols if (Selected) { SymbolsNumber
hi everybody i have a question , when you backtest with optimization on , is there any way to know if trades are closed by SL/TP , TSL or BE

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.