Hi Using Mql4 I am trying to use the consecutive wins count to increase the lots multiplier after the winning trades starting from 1 until it reaches to the maximum lots multiplier and to reset the lots multiplier to 1 after any losing trade to start the cycle again with the consecutive win trades...
please How to encrypt mql script like this case
I want to put the following idea into the attached EA. if brokertime >= NSec -4seconds place all new orders at the same price as the previous order. Can somebody translate that into actual code for me? Any help is much appreciated.
I modified this EA Frank_ud - MQL4 Code Base to trade with 0.01 lot size and attached it to 4 main pairs + most risky GBPJPY. Martingale. I attached this Ea to the apirs yesterday. And this EA survived during the interest rate news: Frank_mod EA: - Original version: EA attached for 4 main pairs and...
Hi Guys, Can anyone please help. I wrote a multi timeframe indicator and it runs correctly when loading into a static chart. However when doing a back test it retrieved wrong values. Please review below code and results. How does that happen? This seems to be a MT4 bug. Anyone has experience how to...
Hi Traders: I have upgraded my platform to MQl 4 Build 625, however, I am receiving the following error: return value of 'OrderSelect' should be checked return value of 'OrderModify' should be checked double timenow=TimeCurrent(); string var1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS); string
If I put it in this way, Is there any error? int CurrentTime;int Past = 2;int BarsCount = 0;int i;datetime PreviousBar;int start() {if((NewBar()) ){ for(cnt=0;cnt<OrdersTotal();cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderMagicNumber()==MagicNo && OrderSymbol()...
i have problem about this indicator calculation . does anybody has an indicator like this
Dear All This indicator paints fibonacci zones for the current day only. The zones extend only till the current bar. I want the indicator to paint these zones for all days in history. Also, At day open, the indicator should paint the zones till the end of the day Would someone let me know the code...
Hello everyone, is it possible to make an EA that only allows trading posable if the correct account number is selected. Otherwise only attached indicators are applied to the EA and any trading code is dismissed.
I try to use the value outside of the "for". but when I use "return(Max_Value);" , error 5004 appear or print nothing What should I do? File "Max" ex) 2000-00-00 0:00,00 2000-00-00 0:00,00 2000-00-00 0:00,00 00 => Value between 1 and 100 int Past = 2;int BarsCount = 0;int i;bool...
Hi, I am having a portable metatrader version on my pc. Now I am searching for a way of renaming my file and therefore I tested the FileMove-Funktion. So the file is created on my local path at D:\.. But the copy is created at C:\Users\nbh\AppData\Roaming\MetaQuotes\Terminal\Common\Files What can I...
I use riv_ayTPOchart.v102-6 but it does not work at all pairs of mt4, and not at all time frames, I mean for example it works at EUR/JPY at all time frames except Weekly and work at and works AUD/NZD at all time frame except 4H and so on,it hangs and when I turn of MT4 It gives this error message...
i want create trend line any body can help me ?
I want to know if exists a component for Visual Studio that can run MQL code. Something like VS bulit-in classes that can run Visual Basic and other codes from a program, but for MQL. Tell me please, if such thing exists
HiI tried to find something about it in the forum, but I could not.Would anyone have a simple and functional code to include in my EA so that it does not execute orders on high impact news?Thank you
How do I use the Max Value value outside of function "for"? int BarsCount = 0;int i;bool Max_Average=False;bool NewBar= false;double Max_Value;int data_size = 8650;int OnInit() { return(INIT_SUCCEEDED); }void OnDeinit(const int reason) { } int start() { for(i = 0; i<1000;...
Hello everyone, I have started to write some account management code, but I don't understand what exactly AccountStopoutLevel means, at the moment ASOL = 20.0. The information in the reference manual says "The value of the Stop Out level." Can someone please provide a more detailed explanation for...
hi friends, I want to count the number of the new candles that have been formed after the server has been disconnected and reconnected again. I'm using the following code but in "M1" timeframe when I manually disconnect and reconnect after some minutes, it doesn't show the correct number of the...
Hello !I recently found an indicator(.ex4) that gives Buy/Sell signals as alerts, i want to make an EA to catch those alerts and send them as push notifications to the mobile ? If ( alert) SendNotification (alertMessage) Any help please?
Hello, everybody. Now I want to display the message. - When the last transaction is greater than 0, it will announce a profit. - When less than 0 will be reported as a lost. Can anyone help me write code in programming to get that message? Please help me Thank you very much.
EasyandFastgui is not working. the library. https://www.mql5.com/en/articles/2298. Compiled but shows lots of errors.
[Deleted]
#import "kernel32.dll" int CreateProcessA(string lpApplicationName, string lpCommandLine, int lpProcessAttributes, int lpThreadAttributes, int bInheritHandles, int dwCreationFlags...
Hi MQL4 folks, I have created a basic BB EA that goes long on the middle bb and goes short on the upper band. Both long and short orders are closed at the middle BB. I have added a timer that allows a new trade to execute every 15 minutes if a signal is generated which appears to work ok. My problem...
I have a few related questions: 1) I'm not sure if a tick contains the information for only one currency pair (i.e. the one in current chart) or all the pairs available from the dealers? 2) If the former is true, what if the EA is designed to process new ticks from multiple currency pairs and...
I came along the TDI trading method a couple of months ago. There is a manual trading system out there developed by Dean Malone and I think there is also a Synergy thread somewhere in this forum. To be honest I am not a big fan of his latest system because there is too much confirmation going on...
Does anyone knows how to calculate maximum draw down for a specified number of bars for a given currency in mql4? For example, i'm looking at the last 200 1 minute bars, where the currency pair did on average increase. I want to find out within that period, the maximum draw down e.g the biggest...
Trading is good in Eur/Usd But "ordermodify error 130" will appear when I trade aud/cad eur/cad... in M1,M5, M15, M30 It works well in H1, H4, etc. What's the problem?...
Hi All, I am newbie in MQL4, I write the code like this :slight_smile: double dHarga=iClose(NULL,PERIOD_D1,1); string Rem,desc1; Rem="test hline"; ObjectCreate(Rem,OBJ_HLINE,0,0,0,0,0); ObjectSet(Rem,OBJPROP_PRICE1,dHarga); I got the correct value dHarga=1.16457. But I confuse about the label which...
Hello everyone I'm trying to build a custom journaling application on windows using c# language my question is there any way or clue to get information programmatically about opened and closed trades it would a great features I don't know where I have to start first can anyone give me a hint or...

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.