Download MetaTrader 5

MQL4 and MetaTrader 4 - page 344

To post a new topic, please log in or register
i.e. all the charts lost their indicators. How can this be stopped? I was not using "Default" profile but another, and I think an upgrade came down, or there was some corruption and this triggered a complete wipe. Suppose it is easy enough to save the current profile as a backup from time to time....
Hi I would like to be able to save a chart when I make a trade so that when the trade is over I can analyse it and figure out where I went wrong - is this possible ? Thanks N
what is the code to indicate to the EA to increase or decrease the positions based on the result of the previous operation, and prior to this? With the molanis software you can create a code through a visual diagram. They have an option to increase or decrease the percentage of the actual positions...
Hi there, I am wondering if I could create arrow alert on mt4 when conditions from two or more indicator are met at the same time? for example in ADX DI+ CROSSES over DI- at the same time RSI crosses over 100, and an arrow should appear, it is possible? and what should i be creating an indicator or...
I'm using refreshrates(). This is the first time I am getting this error. 2014.05.19 10:14:41.420 '5047689': order sell 13.21 JP225USD opening at 0.0 sl: 0.0 tp: 0.0 failed [Off quotes] The thing that is striking about this line is the fact that the price keeps being quoted as 0.0. I have...
Hi guys, i want your help for installing the custom indicator in mt-4.I know the normal procedure about how to install the indicator in mt-4 is go to C Drive- >Program Files - >MT-4 folder -> MQL4 folder - Indicators folder and add indicator there and after that restart the MetaTrader.Thats i was...
Hello, I got my EA coded via a friend, how can I limit it to an account no. or a broker company, so if it is launched on another account number or another broker company, it doesn't work, as I want to give it to someone but don't want to allow him to sell it.
hello i would like to know if it is possible to suscribe to more than 1 signal in the same broker account i tried but ii didn't work Tell me if someone did it have a good day
Hi all, when I compile my experts with the new build version I often get the warning "return value of OrderSelect" should be checked". How can I proceed to check this? Thank you!
Hi, Hope, subject itself asks question: How to get second candle open/high/low/close of opened chart? eg: i opened 4 hour chart. i need the2nd candle of the day. please give me support!
Hello friends I have super trend based afl,anybody could help this afl convert to mt4 file
Hi Metaquote, I would like to know the exact settings that was used for Envelopes indicator in this illustration: https://ta.mql4.com/indicators/oscillators/envelopes It was the illustration of Envelopes indicator on MQL4 technical analysis section, the settings used looked perfect and i would like...
In the old versions I believe they were in the templates folder I cant find them in the new version, I want to modify my indicator template because it doesn't have the DeInit function already in it.
Dear all, there is a problem for me to identify the remaining order of an OrderCloseBy request where the both orders have different lot sizes. Let me explain on the outtake of the logfile 16:51:16 '2088713279': order buy market 3.00 DE30 sl: 0.0 tp: 0.016:51:16 '2088713279'...
Hi, everyone I need a help to make my strategy in EA. Is it possible to custom the size of lot right after a position get closed in loss? I used the code following: extern double Lots=0.1;extern double Lot_1=0.1;extern double Lot_2=0.1;extern double Lot_3=0.1;extern double Lot_4=0.1;extern double...
Hi Gurus! Please, tell me which version is the faster (or is there any faster than these)? Version 1: int NumberOfOrders=OrdersTotal();   for(int h=0;h<NumberOfOrders;h++)     {      if(OrderSelect(h,SELECT_BY_POS))        {         for(k=0;k<NUMBER_OF_PAIRS;k++)...
Hi Suppose that today is MONDAY and I want to number of yesterday. I know I can use DayOfWeek() but if it's MONDAY I cannot do this | DayOfWeek()-1 |, because it returns 0 but I meant 5. And also if yesterday the market was closed what then?! I want to have last working day number. Could anyone...
In the 509 code the libraries handle the init() and deinit() events. But it does not seem to work in the new 600+ code. Do you have some suggestion, how to destroy the library without explicit call of some exported function?
Hello i would like to create an pyramide system together.I want to learn a lot from this project and get some respons if there are any misstakes made in the program. The idea is to create a little bit of programming each time and see if we can and with a nice program. Hopefully you like this idea...
First, I will reprint a paragraph of the English help file: We should noted the connection between the return value of OnCalculate() and the second input parameter prev_calculated. During the function call, the prev_calculated parameter contains a value returned by OnCalculate() during previous call...
Here is my code that worked before:   At top of code: AsianStartBars[14]; AsianEndBars[14]; int k=0; while(k<14) { for(int j=AsianStartBar1;j<iBars(symbol,tf);j++) { if(TimeHour(iTime(symbol,tf,j)) == ChannelStartHour && TimeMinute(iTime(symbol,tf,j)) == 0) {...
  OrderComment BUG!!! (12   1 2)
During these days I have noticed that the new versions (from 600 to 610 currently in use) have an annoying bug related to the property OrderComment, in practice if the comment is longer than 32 characters is omitted without any prior notice. For those trading systems that use the reading of the...
Need help... Only try to create something simple like this already drive me nut... I want to create some indicator that calculate the value of my Stop Loss (in Money). But, I don't know which script I can use. This is some thing that I want to create. Thank's for any kind of help...
Hi colleagues, Does anybody knows what function to use to load couple of indicators on a chart. I want to write a script to load some indicators. the problem is that - if I load a TEMPLATE it will clear all objects on the chart and I do not want to. it will be convenient if it is possible...
Ok. So, in my quest to find the perfect new candle code, I tried something new. Price based! if (Open[0]==Close[0] && Close[0]==High[0] && High[0]==Low[0]) Alert("New Bar!"); I put this in an EA and loaded on a 1 minute chart. Worked each time. Now, what I'm wondering is under what condition...
can we have it directly with the stdevOnArray ?
How to get Account Profit of an specific time? For example I want to get profit of an account since first day of registering to yesterday. Should I utilize AccountProfit()? How?
Hi there, We created a small control panel with check boxes and one button for our EA. Generally it is working well and properly but sometimes we experiencing the "array out of range in 'CheckGroup.mqh' (164,16)" error message in the expert tab and the EA stop working. This file is a Metaquotes...
Hi! I'd like to insert data directly from a MetaTrader 4 EA, and it hangs at first line: mysql = mysql_init(mysql); Here's my code, where did I make a mistake? Thanks! #import "libmysql.dll"int mysql_init(int db);int mysql_errno(int TMYSQL);int mysql_real_connect(int TMYSQL, string host, string...
Hey guys, I try to optimize my indicators a little bit by implementing new MQL4 code. I have some general questions about data types. When I need a high or low of a bar, I used the data type double. But now I see that float uses only 4 bytes instead of 8 bytes used by double. When it comes to prices...