MQL4 and MetaTrader 4 - page 1017

To post a new topic, please log in or register
It probably doesn't get more simple than this, but can someone help me with the code to plot an N bar trailing stop on my chart? Doesn't need any EA capability. I just want the visual indicator itself. I'm sure its been done plenty of times before, and I don't want to reinvent the wheel if someone...
Hi, I’m trying to use EA to trade forex. I think it will be easier for me to control my trade if added current price action range function. Unfortunately I’m not good in programming, hopefully you can guide me to solve my problem. What I want is attach this EA to chart but EA activate only for our...
Hi Everyone! Does anyone know how to line up texts? Below is my code, but the problem is that when profit is in double or more digits, the remaining text on the right shifts along with the additional digits.. :) Pls advise Thanks! void Comm() { string Line1 = "BUY...
Dear MQL Users, Find attached a statement of our EAs (we use 4 Eas on 3 pairs for diversification) - working together they returned 60% in last 5 weeks with low running drawdowns. To download the robots register at neuraltraders.info and go to robots page and try them out on your demo account....
I'm looking for an alternative to the MT4 Tester. Specifically, the main features I want it to have (which are not in the MT4 Tester): - Ability to simulate on Tick data. - Variable spread. - More than one symbol at the same time. - Control over broker's conditions (leverage, margin call, etc...)...
1. ErrorLevel is declared as a variable static int ErrorLevel = 3; 2. ErrorLevel is used several times, typically if (ErrorLevel > 1) <=== remember, it was set to 3 3. And finally, near the bottom of the code, is a function void OrderReliableSetErrorLevel(int level) {...
I help with script that can open multiple orders in the same currency pair to test multiple strategies, but I've never learnt mql4 before. For example, I need to open 4 position of 0.1 lot at market order in EURUSD,..... Could anyone help me? Thank you,
Hi guys, is there a way to detect if the user has entered bad login details, or no connection to server with a EA? The init function doesn't seem to run before there is a connection to the server... Any help is appreciated... Thanks!
Hi Guys/Girls, If you can program using mql4 and would like to help tweak up and codeEA's for Forex Trading, please send me a PM with your name and contactdetails i.e email. If you feel that you have limited experience don't worry, we welcomeprogrammers from all backgrounds and would like to help...
Hello i have here a script which write data in a csv file the open and close value comes corret. but when i use this on the eurusd chart i get for both the high and low data from the actal chart. open and close are right. static int mPrev; int m; int init() { mPrev=Minute(); return(0); }...
Hello I use the code below to close all trades at a percentage of balance, I would like there to be a pause of say 5 minutes before the ea starts trading again. Can I put a delay in the code below after it is executed. Thanks for your help void CheckDrawdown() { double totalProfit = 0; int i;...
Hi, I wrote a script that would help me determine which bar after opening an order gives the best profit. I am using custom indicator that gives me the signal. It worked fine with providing variables for the indicator manually (there are 4 of them: Short EMA, Long EMA and 2 more). I went one step...
Hi everyone, If you write like this below on custom indicator separate window MT4 build 225 (UK Apari): double PrevAsk, PrevBid ; init { RefreshRates(); PrevAsk = Ask; PrevBid = Bid; Print ("Init PrevAsk = ",PrevAsk," PrevBid = ",PrevBid); } start { Print ("Start PrevAsk = ",PrevAsk," PrevBid = "...
What brokers are hosting the DEMO apart from MetaQuotes?
How can i convert an mt4 indicator to an mt5 indicator?
I am looking for 10 people willing to test my automation live. Minimum $3k suggested balance. I will provide you with the EA free, in return I want your next 3 months results in MT4Stats style. Thanks to the wonderful skills of Obama and his bruts, I am caught in the middle of the recession myself...
I've got external programs that collect market data for me. I then have them put out to a simple txt file. Is it possible to have the EA check the text file to update variables that it is using to calculate each time it runs, or do I had to deal with DLLs, etc? If I could simply import variables...
Hello, it is very important for my to see my AccountEquity over the chart for my EA like an indikator. So I can see how my money is working on which time of the underlying. If it is better when the underlying goes up or goes down... So I testet to put "AccountEquity()" into an indicator, but it...
This EA has found a way to call and trade off the correlation between the EURUSD and S&P500. It seems to be a commercial EA they're giving away for free. Does anyone know how to call US equity data and use the information in placing trades? http://forexgreenback.com/ TH
Hello, I need some information about trendlines, or objects in metatrader in general. What can I do, to not make them vanish at the opening of the next bar? I need the objects stay there, no matter how many bars past I have drawn them. Any information is highly appreciated, thanks, Q
This just needs to be converted from VTTrader language, any takers?... It "reads" the market VERY well as you can see, following the trends. The VT platform had trouble with repainting bars and we would get what we called "Drift" in the settings, it would drift away from being profitable so the VT...
I have an EA and there are several conditions for buy and sell. For simplicity lets call them buy1 and buy2 and forget the sell signals for now. When I run the EA, either in backtest or forward test, can I get the EA to distinguish between those trades relating to buy1 signals and those relating to...
Hello, I need a course to make an expert advisor simple one. Farid
  EAs' files (7)
It is the thread for the links to download EAs related files in this advanced elite section.
hello,i hav an indicator which has been working for me for long. since i hav discovered that it is reliable,i need someone to develope an EXPERT ADVISOR that would be following this indicator.i love to share this with anyone who can help me out.
I have built an indicator, call it S, and am trying to draw the path that it takes which should be similar to adding a moving average to a chart. The chart will be a 5 minute chart. I’ve tried the following but it doesn’t seem to work: ObjectCreate("Line",22,0,0,S); ObjectSet("Line"...
We were contacted for the possibility of applying our codeless and visual programming system (http://www.limnor.com/index.html?Doc=studio.html) to MetaTrader 4 for non-programmers to create their own trading systems with their own trading strategies. Do you think such a visual and codeless...
  Why bother? (6)
Why bothering making an EA when there are plenty of profitable EA's in the codebase section? I was just wondering
Is there anybody has a reliable method of Asian Stock Index? Badly need it, thanks.
Can I run multiple instances of MetaTrader 4 on the same system? If so, how? I triedto but I couldn't. Thanks, Ed