Download MetaTrader 5

MQL4 and MetaTrader 4 - page 12

To post a new topic, please log in or register
Hello everyone, I am writing the expert, which is used ChartTimePriceToXY. When I tested it, this function work incorrect. Every time it returns 2147483647. I realise that it is 2^31 - 1, which is mean EMPTY_VALUE in this system, but I absolutely dont know why it happens.  Part of my code: double...
What I want to do is to create a trendline with angle based on 2 anchor points and then find the angle using ObjectGetDouble() so it can help me do various trading tasks such as finding chart patterns. See the code below : // OnTick() event handler                void OnInit() {     // Finding 1st...
Does anyone have a metatrader 4 terminal build newer than b1090?  (like b11xx) Is there a summary of fixes? How do you get to download any betas that might be available?
  Make It No Repaint Please! (846   1 2 3 4 5 ... 84 85)
I think time has come for this thread...Kindly place your repainters here...and...Voila!...they will become non - repainters, with my Magic touch and my programming skills... P.S.: You can place your decompiled, expired & ex files in here...makes no difference to me...the work will be done...that I...
when i put my indicator in the market it gave me this error  EX4 file must be compiled using <a target="_blank" href="http://docs.mql4.com/en/basis/preprosessor/compilation">#property strict</a> directive. what can i do to fix this error  thanks in advanced  
  Closing Trade (1)
I took trades on my MT4 while at work, my partner opened the same account and tried to close them but there is no option to close or modify, how can I fix this?
Hello Guys, this is the list of Fractals free indicator:  //+------------------------------------------------------------------+//|                                                     Fractals.mq4 |//|                      Copyright © 2005, MetaQuotes Software Corp....
Hi, I'm trying to modify my Heiken Ashi indicator width to ' 2 ' but it looks like every time I change timeframe the width comes back to ' 3 ' I've tried to change it I the Mq4 file but still no changes. looks like it doesn't wants to save the width modification I've made..  here's the Mq4 file  :...
 Is there a way to attach or remove a particular EA mt4 script to mobile app like iPhone or Android and do the trading by enabling the EA script? If there is an option for this, kindly please let me know the steps to do this. Thanks alot!
Copying same folder is very exhaustive. I want duplicate my running terminal or duplicate strategy tester in same mt4 folder. Can I do that?
Hey coders, I found a code about how to maximize a chart window by using SendMessage but I can't find something like WM_MDIMINIMIZE. I googled it but I didn't find a command to minimize a window. Can someone help me? This script is working fine to maximize a chart and I figured out that...
  Simple Ichimoku Scalping (55   1 2 3 4 5 6)
Simple Ichimoku Scalping. It is some variation of the settings of the Simple Ichimoku System. This Ichimoku template was improved onto Simple Ichimoku Scalping. On this thread you can find this Simple Ichimoku Scalping for Metatrader 4 and Metatrader 5. Installation for Metatrader 5. - download...
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;if(statement ==...
Dear sirs, I'm using an MA cross EA that closes orders on 8,25 periods and when launched it closes opened order instead of waiting for the cross to happen and then close the opened order although there's no error or anything else showing in the journal. find attached the EA's that I'm using...
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:...
  EA MT4 (4)
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, I am having a trouble to use iCustom to get signal from an indicator. The indicator is "called2candles 1 pilot331"   and it is MQL4 file. You can download from here. https://forex-station.com/download/file.php?id=3324510 I want to get arrow up /down signal from the indicator by using iCustom and...
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...
FIRST TIME I LOGIN, I CLICK "SAVE PASSWORD". But now i forget it. How to solve? Thanks
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 ?