Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1218

To post a new topic, please log in or register
  HELP!! (1)
I am a newbie and I have been trying to place orders since yesterday and it keepstelling me "Trade is disabled". What does that mean? What am I doingwrong? I have been placing orders since I opened the demo account about 4 daysago without any problems until now. Thank you. Diana
Why the alert return value from fasterMAnow but fasterMAprevious returns 0? i menthe problem is in the MA and MAMode stuff, but what is the problem? #property copyright "" #property link "" //---- input parameters extern double TakeProfit = 25; extern double Lots = 0.01; extern double...
Is there a way to set the parameters of a custom indicator from an Expert? I triediCustom, but can't find a way to set the parameters of the indicator before callingit.
Hi, I am not sure if the code below is correct. please help to correct it. thanks it suppose to fire an alarm when I have an inside bar once the current bar is finished. #property copyright "Copyright © 2007, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property...
sorry for the newbie question I have written a couple of basic EA's and am looking at refining them, but eachtime I make a change I have to just test it using real-time charts to see if itdoes what I want it to and to see if it works to make money (never does :( ) Is there a way I can backtest an EA...
Lets say i have 10 orders Magic Numbers are 1001 1002 1001 1003 1001 1004 1003 1002 1005 1004 i would like to see the result like this 1001 1002 1003 1004 1005 Just want to check if it's possible or not? Thanks in advance
I use daily chart and EMA crossover system. Sometime, after crossover happened andEA open trade, EMA changed route and by the end of the day, the crossover is cancelledout. But I have an open losing trade. I try to make my EA to check EMAs of thebar where it open trade five days afterward. Here's...
I have a problem with the back tester hogging giga bytes of virtual memory. I havenarrowed the cause down to custom indicators being called from experts. If an iCustomcall is made the my EA just starts absorbing virtual memory and MT4 will not releasethe memory until MT4 is shut down. Has anyone...
  EMA on Close (4)
I'm writing an EA based on EMA crossover. I want it to calculate EMA only on today'sclose, so if "buy" or "sell" signal occured, it trades by tomorrow'sopen. Please help. Thank you.
  Time Digits (4)
Working on a Market Hours Indicator and run into a simple but annoying problem.Example... New York time is 12:05 however when displaying on the chart, 12:5 is displayed. How does one make sure hours, minutes and seconds always display with 2 Digits.12:05:05 Thanks!
I wrote an EA that works fine in backtest with one broker but failed with otherbroker. The failure is not because of different result of trading, since the differencewas minimal, except one. The other broker always has my trade stop-out. Funny thingis, i wasn't supposed to loose that much. There's...
I just mentioned that EA's that were submitted to championship are still not removedfrom the website. Everybody who submitted their EA can login on the ATC 2007 site and see all filesin your profile It looks like Metaquotes is breaking their own rules: VI. Experts' Codes Safety and Non-Disclosure...
Hi, I'm trying to undestand the x1,x2,x3,x4 y1,y2,y3,y4 and z1,z2,z3,z4 inputs. These values are supposed to be applied do the indicators in the expert. AC,RSIand CCI indicators. with the standard values, the expert only opens BUY positions, and to manage toopen SELL positions I have to lower all...
Hello I have a code which puts up some vertical lines on the turning points in a chart. It works good in all time framesexcept in the H1. I just can’t understand why, any ideas please. Thanks
We continuously work on improving the MQL4.community website to make it even moreuser-friendly: The visitors of our website have long been enjoying "similar topics" that choose the nearest message “on the fly”, which allows them to locate replies to the broached subjectsassociatively. To...
H1 Chart Cannot Move Back 4 Me Plz Help Plz Help It's Stopped on Year 2004
In the OrderClose function you are able to define a lot size, then you would hopeto only partially close the orders as it works for manual orders. But it doesn't work. The order is closed only if the lot size is the total lot size(then why to have this extra parameter) So the solution is usually...
Hello, I'm trying to read values from a indicator, I need the current value and the "Current-1"value. I dont really understant the syntax of the command, let say iRSI(NULL,0,14,PRICE_CLOSE,0) is the value from the current tick? and to read the "current -1" isiRSI(NULL, 0,14,PRICE_CLOSE,1) ? I've...
I am trying to create an expert that imports an external DLL to connect to PostgreSQLor MS SQL Server Express. I found a library from SQLAPI++ that allows one to connect to any database; however,I can't get it to compile for the life of me. Can someone help me with the syntax (its currently more C++...
Hi, I have to add a trigger on a relationship from business. I can do it with the Businessmodule of Ematrix. Can anybody help me to do the same through an MQL query?
Hi All, I've created this post because I need programming help with my EAs. I think I've created a couple profitable ones, but they quickly tank because of overtrading. Usually the first trade of the day is profitable, but because conditions of the EA are still there, it opens more trades until...
For several days now my Strategy Tester does not work in MetaTrader. I have researchedthe problem and it seems that the data from the server is the problem so I havedownloaded the history again and I get the same problems. The statements beloware from the Strategy Tester's journal. Also when I look...
I'm working on this code fasterMANow = iMA(NULL, 0, 8, 0, 1, PRICE_CLOSE, 0); fasterMAPrevious = iMA(NULL, 0, 8, 0, 1, PRICE_CLOSE, 1); fasterMAafter = iMA(NULL, 0, 8, 0, 1, PRICE_CLOSE, -1); slowerMAnow = iMA(NULL, 0, 21, 0, 1, PRICE_CLOSE, 0); slowerMAprevious = iMA(NULL, 0, 21, 0, 1,...
Hopefully, someone might be able to help me with this. I'm trying the determine the index of the next available (blank) location in oneof the buffers (ExtMap_Indicator) created for me automatically in a custom indicator.The first time the start() function is called, the value returned by...
Hello With MQL4, I have always the same problem in general. Take a look at the followingcode: int start() {//---- if(AccountEquity()>2000) ShowMessageBox();//---- return(0); } void ShowMessageBox(){ Messagebox("This is the Messagebox"); } Problem is, as soon as the Equity is over 2000, the...
Elite E Services requires MQL programmers who are reliable, honest, prompt, andtransparent. We have a team of programmers but are always short it seems, we sometimeshave more projects than we can handle. We have a steady demand for EA programmingand the occasional request for more complex...
I am trying to write an EA that uses OrdersHistoryTotal and OrdersTotal...problemis, both of these keep returning 0 even though I am running these on the live mini-lotaccount I have been using for over 5 months. I can see the order history in theAccount History tab, but I get nothing in the EA. I...
Hi fellows, Is it possible for a broker to incapacitate or frustrate the activities of an EAinstalled on its platform by a client? if yes, how? thanks.
What is the difference in pips  between SL/TP and current price? Can I changeit?
Simone Ambrogio
Hi, Can you please show me the conceptual errors in the code below. My aim was to trytwo long patterns on a ADX, Stochastic and SAR basis. The matter is that - although the compilation returns no errors - no orders areprocessed/sent. Many Thanks in advice. SimonTrader P.S: MyADX_Celeste means ADX...