Download MetaTrader 5

MQL4 and MetaTrader 4 - page 747

To post a new topic, please log in or register
Hi I have an EA that uses this: res = iATR(Symbol(),Period(),theAtrPeriod,shift); And an ATR indicator that uses this: AtrBuffer[i]=iMAOnArray(TempBuffer,Bars,AtrPeriod,0,MODE_SMA,i); I noticed that sometimes the output can be slightly different ie the indicator maybe change form 0.0021 to 0.0022...
I subscribe to signals that require I place trades just before London market opens. Since this is not a convenient time I was wondering if there is an EA that exits that I would be able to place pending orders but these orders would not be executed until 2:00 Eastern Standard Time. Thanks
Hi, MT4 doesn't load live account after closing down and restarting. I can trade on my live account Apari MT4 but when i close MT4 and later restart it i cannot login to my live account. Details are correct. Any ideas please? Thanks
hi forum, i have an indicator which shows an alert when EMA5 crosses EMA10. but this alert should only pop up when a trade is running in that pair. can somebody please show me how to check if a trade is currently running? i tried it with ORDERSYMBOL(), ORDERTOTAL() but i have no idea how to do it....
I am new to this and have not done any programming since 1990ish on a 386 pc! So need help just getting started. I am wanting a stratergy that will buy when the price of the current bar goes above the price of the last bar high and then sell with a limit of 1pip! It's part of a stratergy I am trying...
Hi, is it possible to change the bandwidth-indicator that it will show also minus values? Sorry for my bad english ;-) //+------------------------------------------------------------------+//|                                               BandsBandwidth.mq4...
Hello! Is there any way to limit the number of maximum connected mt4 instances to the same account? Alternatively, is there any way to know how many connected mt4 instances are there to the same account? Thanks a lot for your support. Best regards, Paco Hernández.
Hi, the code below is intended to find the the closest tops and bottoms to the current time and report when there has been a breakout. I would appreciate it if you can point out the bug(s) to me. The problem is it also reports breakout of previous tops and bottoms not only the nearest ones. double...
hi coders, i don't know why this email-alert can't be compiled: if (eMailAlerts) SendMail("MT4 ALERT", "EMA Crossover ",Symbol()," M",Period()+ " @ " + TimeToStr(TimeLocal(),TIME_SECONDS)); i always get the message ")" - wrong parameters count if i change it like this: if (eMailAlerts) SendMail("MT4...
Hello! I have an EA that makes a lot of money, to earn 100% in the month quietly, but he needs two changes, the EA is based on Martingale. First: Put a setting that when he loses a certain amount of money (that I can change this amount), it quits all open and pending orders and stop negotiating...
I am looking to introduce clients to an EA preference for certified EA's or EA's registered with a regulator or other financial agency. Please email your details or call 1.347.284.6672.
I need an alert for HA colour change but it should not be checking the current candle so I changed the code and the alert works but it is not paintiung the current HA candle. Any ideas on what to change? Maybe I need an indicator for the candles and an indicator for the alerts?...
Hi, how can I do a strategy test with my tickdata from a fxt-File? When I normally start a strategy test, the data's are always recalculate with the fractal interpolation. Thank you for every tip!
Hello, I have been reading this forum for a while but just signed up to it today (so.. Hello everyone!). A little about me: I have been programming in C language for the equivalent of about 13 years of experience. When I started skimming through the get-rich-quick marketed EA's, I decided to start...
Hi I am trying to create a function for my EA that wokrs out what the spread was at a specific time, ie if I wanted to know what the spread value was at 2200 the previous day, is this possible? Thanks Antony
Hello, i am new in mql4 and have one question. I'm doing un EA buy a need shown in the graphic one mark entry (low bar) where appropriate and an output (on bar) when it meets my EA. This i can visually detect un IN o OUT. I hope I can explain what the code Thank's
  kindly help (1)
please i want my ea to be place order on the second candle of the day .i.e after closing of the first candle of the day. Am on GMT+1. Am having problem on knowing GMT+1. I do not know how to write it.please help me
Hi all! I would like to put stop loss in this script,but something is going wrong.
Hi I have this code running in my EA to scan for the lowest and highest price in each session. it runs fine on the sunday market open, then all of a sudden when 0000gmt on the monday comes, it seems to display the high and low from a week ago :( when it hits the next session open (London) it is fine...
Hi I been an on and off trader for 8 years, emptied a few accounts but now beginning to get a grip of things (mostly a grip of myself i suppose) :) Now I dont know if it is appropriate to ask you make an indicator or offer payment for it, please direct me. To help me in my daily trading i would...
An old technique used by Toby crabel he stil use it today i am not a programmer i am a trader i know this technique inside out but i dont know if can be programed The opening range get specific time frames and opening market hours gives good results in European traded pairs and comodities
Hi all! I have a big problem. I developed a DLL file for MetaTrader via Visual Studio Express 2010. I have cheked many entries here on the forum and found many useful advice like this: https://www.mql5.com/en/forum/103454 I have used the VS express on Windows 7 x64 op system. The express can not...
i have trade with indicator before one month but now when i drag to MT4 coming this err "2011.03.21 14:01:55 eTrader v 2.2 exp~ EURGBP,M15: expTime: 1300665600" "2011.03.21 14:01:55 ElTrader v 2.2 exp~ EURGBP,M15: localTime: 1300665600" pls any one can help to me solve this matter i can...
New article Electronic Tables in MQL5 is published at mql5.com: The article describes a class of dynamic two-dimensional array that contains data of different types in its first dimension. Storing data in the form of a table is convenient for solving a wide range of problems of arrangement, storing...
The alert is supposed to wait for the candle to close and then compare the candle to the previous one to see if the colour has changed. However, it is alerting on the current candle open. ANy ideas what to change? while(pos >= 0)     {       haOpen = (ExtMapBuffer3[pos+1] + ExtMapBuffer4[pos+1]) /...
looking for daily bias indicator indicate up/down trend for that day thanks for advice
hi all, i'm tring to call the "new" color i have given to the indicator in the ObjectSetText funtion, however, the "new" color is still "Red", What should i be using to call the latest color assigned to the indicator & apply it to the text. #property indicator_color1 Red . . . ObjectSetText ( bla...
Hi To accuratly work out my pivot points I need to log the candle type of the final candle that closes at 2200 on the 1min chart. My EA is not attached to the 1 min chart though. I am new to coding but keen to learn and I have this: //2200 time to work out the pivot pointsdouble Pivot(string...
Hi I m having problem to figure it out what leverage ratio that backtester is using.I opened a n Alpari demo with 1:100 leverage, after downloading thetest data. I have the platfrom disconnected from the server in casemy historic data get overwritten. Then I started testing my EA, and I got...
APeng
I want my EA to open a buy if the price rises above the highest bar´s closeing price of a 1 hour timeframe. To find the highest closeing price I use: Highest_Bar = iHighest("EURUSD",PERIOD_H1,MODE_CLOSE,Period_Highest_Bar,1) and then Highest_Bar_Price = Close[Highest_Bar]; Now I open a 5 minute...
1...740741742743744745746747748749750751752753754...1249