Hi coders, this indicator prints a text object as soon as a trendline is drawn. I found the calculation for the angle in the MQL5 forum but it doesn't work correctly. The angle in degrees is always wrong. Just the directon (above or below zero) works. Does anyone have made some experiences with that...
I have an idicator ex4 format. It only has popup alert. Is there any way to convert popup alert to push notifications. The indicator about renko. or do you have any indicator like this
simple question: normally you write: double statement = OrderTakeProfit (); double tp1 = 1.001 ; double tp2 = 1.002 ; double tp3 = 1.003 ; double tp4 = 1.004 ; bool TP_Exist = false ; if (statement == tp1)TP_Exist = true ; if (statement == tp1)TP_Exist = true ; if (statement == tp1)TP_Exist = true ;
Hi, I`m having a problem with a piece of code for an EA. I want to open orders Buy above the line and Sell below, on every line as follows, there is also trigger distance if reverse order is to be opened, the price has to break that level, the lines will be manually drown. This is the piece of code...
Hi, i have problem with button array. I'm not able to fill the object field with the buttons. Is somebody to help me? #include <Controls\Button.mqh>class Panel : public CAppDialog{private: CButton m_BtnSymbol1, m_BtnBymbol2;public:...
Good morning, inside mt4 there is a simple EA " moving average " by default with mql4 free ... i would like to add this filter : open trade when price cross ok.. but i want to put open trade after 1 or 2 candle the cross ... what must i write and where exactly i put this part of code ?? Thanks in
Hello, now I may just be missing something here. string Begin="03:00"; string End="23:00"; Print("Current Time = ",TimeCurrent()); Print("Begin Time = ",StrToTime(Begin)); Print("Finish Time = ",StrToTime(End)); resulted in 0 03:59:07.242 Scratchings NZDUSD,H1: Current...
If I want to place a trade only if its on the correct chart how would I achieve that. This is what I have now but I feel like this is the wrong syntax. if(Symbol == EURGBP && GBP_Band > EUR_Band && GbpEurDiff > gap && previousK < previousD && currentK > currentD && currentD <...
Hi, So I have this code<Attached > where I cant get it to stop trading on the specific date, being Friday, at a certain time being 6 am.
Hello all, My first time posting a question here. I have moved to a new laptop and I am having font and image size issues with some of my indicators on MT4. One Indicator is so small the arrows are almost impossible to see (bottom of screenshot) The other indicator has font all cramped and words...
Hi all, I am trying to use SupportResistance custom indicator available in MT4 platform using iCustom function in Expert Advisor. I am using following code. Resistance = iCustom(NULL, 0, "SupportResistance", 0, 0); Support = iCustom(NULL, 0, "SupportResistance", 1, 0); By...
n = 7; R1=WMA(RSI(n),n); Plot(RSI(n),"RSI7", colorRed, styleLine); Plot(R1,"nameR1", colorWhite, styleLine); StRSI=100*(RSI(n)-LLV(RSI(n),n))/(HHV(RSI(n),n)-LLV(RSI(n),n)); S=WMA(strsi,5); Plot(S,"MStRSI", colorYellow, 1); Plot(20,"", 11, styleLine); Plot(80,"", 11, styleLine); thank you
Hi all, In my EA it will open a buy or sell order according to the conditon. If an order is opened, then I will add the SL and TP order by using the ModifyOrder as follow ( here is a buy order for example): ...extern double SL_prozent = 0.5;extern double TP_prozent = 5;... // Handle Long Signal...
maybe any coder can fix this? this code give warning possible use of uninitialized variable 'oldorderopenprice' double FindLastBuyPrice() { double oldorderopenprice; int oldticketnumber; double unused = 0; int ticketnumber = 0; for (cnt = OrdersTotal() - 1; cnt >= 0; cnt--) { ticket =...
i want to Post image online in MQL5 Charts service and get the link by code (MQL4). its Possible ?
Hi guys, Im writing this EA, checked forum and article topics, but still get this nasty error. Can you help me? if (incremental_trail== true ) { for ( int i= 0 ;i< OrdersTotal ();i++ ) { OrderSelect (i, SELECT_BY_POS , MODE_TRADES ); if ( OrderMagicNumber ()==magic) { if ( OrderType ()==
void counttrades() {//---- int total=OrdersTotal(); if (total==0) openedtrades=0; else { for (int i=0; i<total; i++) { if (!OrderSelect(i,SELECT_BY_POS)) continue; if (OrderSymbol()==Symbol())...
HI. Why there is different between value? the value calculated by coding in EA and using iCustum are equal, but the value by indicator add to chart , is different. ============================================================================================ why ? i think: the correlation indicator (...
I want to count assumeGive numbers as bars in sequence.A B C D E F G H I J Ksuch asWhen A bar closed in Bollinger bands, then B is closed out Bollinger bands are counted as 1.When bar D is closed in Bollinger bands, the next bar is E, the closing price outside Bollinger bands is 2.This is going on.I...
Hello Dear, I am planning to use a Bot, it gets the signals ( Arrows ) from MT4 using the indicator "1". I want to use indicator "2" instead but the bot does not recognize the signals and nothing happens when they appear. So please, kindly I need your help editing "2" using the triggers or what
//+------------------------------------------------------------------+//| Expert initialization function |//+------------------------------------------------------------------+int OnInit() { magic=MagicNumberGenerator(); Print("MagicNumber is ",magic);...
i just like it to open 1 order when an arrow is given immediately. not every tick or every new bar. just 1 trade. I have used icustom() function to merge indicator and expert advisor. and its work fine. but when indicator will give any arrow , then immediately i want to place trade. For that I coded...
Hello everyone and sorry for my English, I'm starting to program in mql4 and to do a simple and on the crossover moving averages. The problem is that the ea does not open positions, opens them only if I delete Lastfastmovingaverages, lastmediummoving etc. .. and I leave only those on the current
Hello there, I'm trying to build an EA based on breakouts. I want it to open a buy order whenever the price is above the 30 day high and the RSI is below 70, and a sell order whenever the price is below the 30 day low and the RSI is above 30. This is the code that I've written for it, but for some...
Hi, After successful backtesting I launch my EA to live trading. If a long or short condition is TRUE, it will go long or short first and then set the ST and TP by using the OrderModify(). My code look as follow: ...extern double SL_prozent = 0.5;extern double TP_prozent = 5;......
Hello everyone, Today I started using the strategy tester on my EA program. The results must be wrong, or at least totally misleading.
Hello, i've correctly created a fibo retracement tool with these instructions : #include <ChartObjects\ChartObjectsFibo.mqh>CChartObjectFibo myFibo;//....int OnCalculate(//.... myFibo.Create(0,"myFibo",0,t1, p1,t2, p2);//....} Now i want to add a new 0.1 retracement level in it.But this instruction...
I would like to send user id and password to a website and validate it, and in response I would like to get user account no to validate in the code. string str="Login="+login+"&Password="+password; //--- Create the body of the POST request for authorization ArrayResize(data...
Greetings! I would just like to ask if the following code: if((TrailingStop>0)&&(Bid-OrderOpenPrice()>MyPoint*TrailingStop)&&(OrderStopLoss()<Bid-MyPoint*TrailingStop)) is will have a similar effect to this: if((TrailingStop>0)&&(Bid-OrderOpenPrice()>MyPoint*TrailingStop) and this:...

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.