Download MetaTrader 5

MQL4 and MetaTrader 4 - page 620

To post a new topic, please log in or register
Francois Tremblay
Hi everyone, Maybe you can figure what's wrong with the following program. The logic of the code is to create a range of 10 pips where the low is always going to be the lowest price since the EA started and that the price did not touch the upper band of the range. Every time, the upper band is...
Hi together, I'd like to know if it's possible to close an order automatically after a period and/or SL is reached... For example: I've opened a trade at 1p.m. and want to let this order closed when the quote reached it's StoppLoss or a period of 2 hours elapsed. Here's the actual code: // Buy...
How can i test my correlations expert advisor?, the strategy tester can't handle it
Hello, This is my first serious post and I am developing a scalper. I have programming background and this is my first EA ever. I have some good results but I need some help. I' show a backtesting (2001-2012) to hook you guys up, and then proceed to tell you how it works -not in extreme detail- and...
Hi All, I am busy learning MQL4 and have been trying to create a simple EA that places a Sell order when the price gets to the resistance line and places a Buy order when the price gets to the support line. The EA gets the values for the support and resistance lines from a custom indicator. The...
I have a piece of Martingale code in my EA. When I run a back test on my EA with the MartingaleFunc == false there is no problem with the back test. It runs. But as soon as I set the MartingaleFunc == true the back test refuses to start. This tells me there must be something wrong with the code for...
New article Create Your Own Graphical Panels in MQL5 is published at mql5.com: The MQL5 program usability is determined by both its rich functionality and an elaborate graphical user interface. Visual perception is sometimes more important than fast and stable operation. Here is a step-by-step guide...
I wish to have an array populated with data for individual ticks! i.e. for each and every tick: Time, Bid/Ask price. This is easy to do if you create an Array, and just start populating it with the Ticks incoming and you create your own "tick database". The problem with that is you have no access to...
Attached test results from my latest EA. Looks good, and with a time filter it looks dramatically better. But... What I've done is to filter out all non-profitable hours for each of the 5 days... done this over the whole 6-year period, meaning there is a set of trading hours each day of the week...
here is what i want, a window that i can use my sonor alerts when i want to, i ve been told that this needs stanrd windows mt4 . whatever, what i want now is the name of the software to make the windows then i ll post it as a job does anybody know the name of the software i have to use to create a...
HELLO ALL TRADERS, MY NAME IS ALESSANDRO FROM ITALY,AM LOOKING FOR A RELATIONSHIP WITH INDICATOR HISTORICAL VOLATILITY 100 / 6 100/10, SUCH AN INDICATOR IS SHOWN TO BE IN HIS CONNORS LIBRO.The HVR is basically a ratio or percentage of a Mathematical shorts to long for the average historical...
Hello everyone, How do you figure out the min and max of the ATR indicator? Basically, my plan is to flag if the current atr is closing at the min or max. I can get the atr value by calling the iATR function but I can't figure out how to get the min and max for a certain periods. I try to loop...
In the following code, all the symbols appear on the chart as green/buy. Is there any reason why it doesn't check the 2nd part of the else if statement? if(            (Bid > iMA(symbol[y],PERIOD_D1,10,0,MODE_EMA,0,0)) &&            (Bid > iMA(symbol[y],PERIOD_D1,20,0,MODE_EMA,0,0))...
I relized thet I have a serious problem while testing a strategy: using the same EA I obtain very different results using exactly the same parameters on the tester. The script I'm going to show you is written for counting bars when they come out, but MetaTrader jumps some ones!! example: Test1: 1,2...
HI, iv been looking through the documentation and i may have missed the section, i want to manually/visually add support, resistance & trend lines and the EA to pick up on it. what is the best approach? Thanks
Hello,Can anyone create an EA that writes rates to a file for a certain time period, only remembering or recoeding the highest and lowest points during a specified time period. Then once that specified time period is up, it places Stop entry order x amount of pips away from the highest and lowest...
Hi. I have an EA. It has gone well on IRON and PRO brokers. However it doesn't work on any other broker such as PEPERSTONE, ADMIRAL (same MT4). I don't know the reason. Is it possible? Please solve my problem. Thank you.
Hi everyone, long time ago I did not care much about the "slippage" limit in ordersend/orderclse, during the conversion of EAs from four to five digit brokers. My question is whether these orders are equivalente, either a 2 point spread in four digit or 20 point in five digit broker: Four digit...
Hi, I want to find the next big number to the Open of a bar. Big numbers are defined as prices that end on x.xx250 or x.xx500 or x.xx750 or x.xx000 if we look at EURUSD for instance. I thought this could be done using the MathMod() function. When I tried this I found out by printing the function...
  Help for noob (3)
Hi, First EA: I would like to open a position in the opposite way when a SL has been reached: Exemple: OP_BUY has been closed. So check if StopLossPrice() == CloseOrderPrice() So... I would like to create a SELL_LIMIT @ this price or 2 pips away (broker's market conditions) I'm not sure that the...
Hi there Im not very good at coding Im having problem with an EA The problem is. It only opens one order at the time. I have tryed set the OrdersTotal(); But if i set the orderstotal to 100 for example it opens like 5 orders at the same price. Thats not what iwant! This is how i want it to work...
Hi, I have got a hst-File from a friend with quotes from metatrader. But unfortunately I can't open it with my metatrader and I also can't open it with wordpad or notepad or... My friend is in holiday. Is there any posibillity to get the quotes from the hst-File or to repair it in any way??
Hello guys i need to manupilate time based on calculations can i do that like for eg i have today open stick time datetime dailyopentime;for ( int i = 0 ; i < 24 ; i++ ){   if ( TimeHour(Time[i]) == OpenTime ) //OpenTime can be any integer from 0 to 23   {     dailyopentime = iTime(Symbol(),...
Hello all. i have a question. i 'm going to publish my custom indicator, so how can i encrypt my code with a free software or way? is anybody there to help me?
I wrote an indicator of an RSI and an MA of that RSI. It work fine. Now I want to change the indicator that it draws arrows when the lines crossing in the chart window. This is the indicator that is working OK: #property indicator_separate_window#property indicator_buffers 2#property...
This will show my lack of knowledge about programming, if you create an EA and use your own custom indicators within the EA, how do you make reference to the custom indicator without having to insert the whole thing within the EA, or do you, I understand that an EA that uses standard indicators...
imppossible to register to mql5 website right now, i dont know why but i tried many computers . so i wa going to post add job for alike 17or 20 sonor alerts for indicators does anybody know a way to register to mql5 or post in jobs
A suggestion, and some questions: I believe you have to have multiple MT4 installations to connect to multiple accounts (e.g. a live account and a demo account at the same time) or multiple brokers. I thought it was insane to try to keep sets of indicators &etc current in N different MT4 installs,...
hello, please if i have 2 points on chart x1 and x2 how can i calculate the total volume between them and display it in the chart,,, thanks alot
i try to post on job, it writes u need authorization, i try to register on mql5 it just doesn t go through for no reason
1...613614615616617618619620621622623624625626627...1238