To post a new topic, please log in or register
  How to start with MQL5  (12   1 2)
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors ... in general, any questions from beginner to the MQL5 language. If you are just starting to get acquainted with the MetaTrader 5 terminal, then I can recommend the...
Here's what I have so far, and it works, at least it seems to. Is there a better way to do this? Also not 100% sure of the 0 condition. I'm interested in any commentary that generates an interesting, more efficient, and/or more elegant functionin MQL5. // Check if three doubles have the same sign...
I am a software developer with 10 years of experience, 3 years of trading experience and I will code & automate your strategy for free. I am sure some of you have a good strategy you would like to automate but does not know how to do it. I can automate your strategy for Metatrader, cTrader or...
I am newbie with mql5? Would like to know how to get last closed orders (market order closed or pending order deleted) ticket number?   Thanks in advance.
  Traders Joking  (11599   1 2 3 4 5 ... 1159 1160)
Do you have interest or hobby outside trading ?, or some jokes and humor for other forumer ? or maybe something else ?, Well, why don't show it here. Life is NOT all about trading or programming, and so is this topic, and you must participate in this topic ;D.
Hi guys, I am migrating all my stuff from MQL4 to MQL5 and now I need to modify the stoploss of a position. I didn't find any corresponsing function to OrderModify() in MQL5. Can anyone tell me how to change the stoploss of a position when I received the ticket number from OrderGetTicket()?
Hi there guys. I am using a tick downloader called QuantDataManager, it downloads tick data from dukascopy going far back in time. This downloader has an "export to MT4" feature (which exports in .FXT or .HST files).  I never did this before so please correct me if I am wrong. What I need to do is...
Hi all, Is there a possibility to create a batch file in dos to be able to recompile any number of files and create executables? Thanks in advance Manuele
hello every one, pls how do i get started to learn how to code indicaors. i dont know anything about programming. some one help me
When I select the market tab, the screen is blank where yesterday there were things to purchase.
Why is it so hard to find a simple Renko EA that orders on two bricks up/down etc, pretty much the same way youd trade a basic Renko strategy yourself. Reason being that you don't have to sit in front of computer all day. Does anyone know of any free EA that will do this?
Hello \ i copy html code to add economic calender in Arabic to my website ...but however i chose arabic as a language ..it displayed in english ? can you help me  <script type="text/javascript" src="https://c.mql5.com/js/widgets/calendar/widget.js?6"></script> <div...
Hello Folks, Can someone pls tell me how the Ratings are decided for the Expert Advisors here?  Who gave this rating and is this reliable ? Regards, Harsha
  variable plots  (7)
Hi Is it possible in a custom indicator to change the number of plots on chart based on user inputs?
  Press review  (6493   1 2 3 4 5 ... 649 650)
This link provided to me by RaptorUK, give me the idea that it would be interesting to have a place here on the site to share such links. So I opened a new topic, it will be moderated to follow the rules as usual, but also about the content. Everyone can post but have to provide a quote and the...
This thread won't be about a question or problem, but rather about the anouncement of the presentation and documentation of an exciting trading concept. I plan to do a series of postings here in order to keep you guys updated. Anybody who has an opinion on the topic, please don't hesitate to comment...
Hi is there signals that is suitable for US market? No martingale  no hedging and low leverage, 1:50
When our account details are with one signal provider and the balance and leverage are the same! how is it possible? The signal transmitter trades 3 lots But it trades in my account of 0.05 lots How to make the transaction equal? Please help me
  News Straddle EA  (2)
HELLO ! I need a straddle EA  or pending order EA for forex.
  55bc  (178   1 2 3 4 5 ... 17 18)
*sorry for the long post i wasnt sure as to post this method or not as it is not 100% mechanical,which is what the majority of people(or should i say people new to forex and scouring the forums) are looking for these days or even worse some sort of bot to do it for them. as i say not 100% mechanical...
Hey guys! I wrote a small EA sending alerts to the terminal ,however, whenever the condition is met, it sends an alert every second.. Would you please help me have only one alert when the condition is met? Thanks a lot, the code is below! Martin #property copyright "Copyright 2019,...
HI,Which strategy is best for BTCUSD?
Hello I signed up with a signal provider and I allwoed 95 percent of my balance, but when the signal provider opens a trade with three lottes my MetaTrader opens just one lots. My order is as follows: I want to open a trade with the same lot as the signal provider. I want to open a...
  MONEY MAKING manual trading system  (521   1 2 3 4 5 ... 52 53)
Dear All, As this is my first post on this forum you may think that i am a newbie which i am for sure in comparing with some forex gurus like Igorad, but after spending couple of years in losing money, researching, losing money, researching and finally earning money i don't feel like one . I...
Dear all, I am trying to backtest some strategies on mainly CFD's (NASDAQ, S&P500, CAC, EUROSTOXX, AEX) and XAUUSD. The history is however very short when I backtest smaller TF's. I updated and downloaded the history for all the products already obviously but when I put TF to 15 mins, it won't...
  Signal Systems  (368   1 2 3 4 5 ... 36 37)
I was affraid to open this thread. Why? because it is difficult to manage many threads on one forum. Anyway - I will try :) So, we are talking about SIGNAL SYSTEMS
Hello all, I put my main job on hold and have dedicated all of my time to technical trading and making EA's for the last 8 months non stop.  As I don't know anyone who also does this I would love to ask some of you more experienced people who work with EA's just a few questions if you would help...
I just started this thread as a continuation of the talking made on this topic (we can read it). Or ...to make it shorter: it was some discussion about forecasting/predicting of the next candle or direction of the movement or market condition evaluation. And it was around standard indiocators in...
Hi guys! One of my EAs has opened about 1000 pending orders.. Is there an EA on MT5 to cancel all pending orders at once by any chance..? Thanks a lot.. Martin
Hi I am part of a group that emails out trade ideas via slack and gmail. I am not always behind my screen to see the notification/trade idea and copy in my MT5 account. Is there any trade copy software that can help. Thx
Bitcoin vs USD January-March 2017 Forecast: key resistance level at 850.15 to be broken for the bullish trend to be continuing Weekly (W1) price is located above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following support/resistance levels: 850.15...
The international broker has expanded its exchange trading offering. Using the multi-asset platform, traders can invest in securities of global corporations, such as Allianz, BMW, Bayer, Siemens, Heineken and Royal Dutch Shell. This addition to the previously available portfolio of US stocks, brings...
Hey everyone, I`ve been trying to create a Custom Symbol that updates with the market. I tried using the Synthetic instrument formula but I get an "Unkown Parser Error" because the instrument starts with #. Does anyone know a way to circumvent this?
  Forecast and levels for S&P 500  (460   1 2 3 4 5 ... 45 46)
S&P 500 January-March 2017 Forecast: long-term bullish ranging within the narrow s/r levels for direction W1 price is located far above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following narrow support/resistance levels for the bullish trend to be resumed...
Hello, Where can I find an example of EA to trade stocks or ETFs? An EA based on a moving average would be fine. Thanks in advance, Pierre
Just curious about anyone trading preferences, I mean what do you prefer to trade Forex, Stocks, Futures? Is well known that Forex is the greatest market hands down, but unfortunately it doesn't offer certain analysis tools such as true volume, the book or TRIN, TICK, VIX tools which can be very...
Hello. I try to use the Strategy Tester to test my EA, buit get the message "no more than 1000 symbols can be selected" each time. I guess it's because my EA tries to trade more than  1000 stocks and the MT5 limits the max number of symbols that can be selected.  I tried to unselect the symbols in...
  Apple  (29   1 2 3)
AAPL Technical AnalysisL daily bullsh with 120.35 resistance to be testing for the bullish trend to be resumed Daily share price is located far above 200 SMA in the bullish area of the chart: the price is on testing resistance level at 120.35 to above for the bullsh trend to be continuing. If the...
DJIA January-March 2017 Forecast: long-term bullish; resistance level at 19,987 is the key W1 price is located above Ichimoku cloud in the bullish area of the chart: the price is on testing 19,987 resistance lkevel to above for the primary bullish market condition to be continuing. The price is...
  Forecast and levels for Dax Index  (56   1 2 3 4 5 6)
Dax Index January-March 2017 Forecast: flat within bullish with key resistance at 11,649 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 11,485 level to above on close weekly bar with 11,649 as a nearest bullish target to re-enter. Thus, the weekly price is...
bahman3195
  Bitcoin forecast  (6)
Now and while bitcoin has extra ordinary movement who can suggest a reasonable strategy to forecast its next movement? it will break its current top or will it will be resistance in future?
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
  Forecast and levels for Nikkei  (33   1 2 3 4)
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.24 17:18 Nikkei Q1 2017 Fundamental Forecast: Bullish (based on the article) Fundamental Analysis  "The Bank of Japan has been buying stocks for over two years now. And in September, the...
  Dax future real-time data  (18   1 2)
Hi, anyone knows how to buy Dax future real-time data ? Thanks!!! 
Chicago Mercantile Exchange offers Currency Futures options and the historical data is available. Is there any backtesting tool for Currency Futures Options? I am looking at plotting the implied volatility of a constant delta options . For example the 30 day 25 delta for EurUsd futures contract...
  Requests & Ideas (MQL5 only!)  (492   1 2 3 4 5 ... 49 50)
Terms and Conditions: You describe (you provide) the idea, I place an open MQL5 code in this branch, I place this code in a CodeBase. &nbsp, I specify the author of the idea and the author of a MQL5 code in a code, The coding services are provided "as is" and you use them at your own risk. List of...
Hi, i am beginner with mql5 i have this function in MQL4  double get_Lot_from_last_ord(string SYM, int MAGIC){   double LastLot=0;   for(int i=OrdersHistoryTotal()-1; i>=0; i--)   {      if(OrderSelect(i, SELECT_BY_POS, MODE_HISTORY))         if(OrderSymbol()==SYM && OrderMagicNumber()==MAGIC)...
Hi, I created a EA using Expert Advisor (generate), when i use backtest everything works fine, tp and sl works perfectly, but when i use the EA in the real market everything stops working. The EA opens a position and adds tp and sl but before the trade ends it starts another one but this time it...
double p2p;  //+------------------------------------------------------------------+//| Expert initialization function                                   |//+------------------------------------------------------------------+int OnInit()  {//--- if(Digits==3 || Digits==5) p2p=10;else p2p=1;...
double popen = iOpen(Symbol(),0,1);  double PHighest = High[iHighest(Symbol(),0,MODE_HIGH,10,0)];double PLowest  =  Low[iLowest(Symbol(),0,MODE_LOW,10,0)];  ObjectCreate("line",OBJ_TREND,0,Time[PHighest],PHighest,Time[-10],popen); Where the fault error: Time[PHighest] need integer value,...
Hi all, first post and am happy to join the conversation. I am having difficulty with a simple bot I am creating (not for live trading, just practice coding). The premise of the bot is simple: - It checks if the 2nd and 3rd last candles are either both bullish or both bearish - It checks if the last...
Description: Telegram 4 MQL was made to make the life of an automtic trader a bit more convenient or better to say it was made to spare nerves. Suitable questions while operating an autotrading systems are: Was the order correctly executed?Did an situation change an unusual way so that I need to...
My code below places sell pending orders when certain candle pattern conditions are met on the H_1 chart. At certain points the condition is met but the pending orders are not placed, as in the encircled portions in https://imgur.com/a/3pNC7M3 . I am not sure what's causing it. string prefix = "HG";...
  Partial Close EA  (2)
Hi guys Looking for an EA on the market (preferably free) that allows me to partially close a trade at X pips for a certain %, and then moves the SL to BE. It then continues with a trailing stop.
  Account Balance  (1)
Hi Is it possible to set the account balance for a EA. Say, I have a total balance of £10k in my broker account, but I want to run 2 EAs on the same broker and on the same mt4 terminal. Is there a way of assigning a balance of £5k to each EA so if one EA goes bust it doesn't use the balance...
Hi support, I am creating a dialog with EA using Dialog.mqh Then when i try to use the external function "input" to change the parameters, the whole program went dis-functional. I failed to close the APP window. And if I tried to right click and "remove" the APP window, the chart at the...
Hi, i bought EA which says it can be used on maximum of 3 accounts, what can happen if installed on the 4th account? 
Hello all,  I have a very simple code that uses exponential moving averages at 2 lengths.  When the shorter length crosses above the other then a long position is taken.  Sometimes it works.  That is ,when there is an obvious crossing I can see on the chart a long position is taken but at other...
hello mql engineers, I compiled a code with newest version of MT4, when load it it report "is not a script" this source code is writtern last month, and compiled no problem and works well with last month' updated mt4, today,  I download new version MT4, and compiled it , still no problem without any...
Hi, I have written an EA which gives me really good results when I optimise it over a six month period - supposedly the best results are like 35-40% profit. However, when I select the 'best' set of parameters (I choose the highest profit), and then run those as a single backtest on the same currency...
Hi, I got a csv file with a list of data: Datetime, and values. These are the values of an indicator at certain moments, calculated in excel/mathlab. How can I import these data to appear on my screen (either oin the main window or separate one) ? Thnx in advance for you help ! Twoci
  Indicators with alerts/signal  (15815   1 2 3 4 5 ... 1581 1582)
Some indicators with alert/signals with author's comments: - EMA-Crossover_Signal: Enter two Exponential Moving Average periods and it'll tell you when they crossed. - SMA-Crossover_Signal: Enter two Simple Moving Average periods and it'll tell you when they crossed. - SMMA-Crossover_Signal: Enter...
  Renko  (5)
Hello I'm getting confused as how to apply renko to MT4 - I've read quite a lot, but it's not getting through my stupid head :-) Can anyone help please? Is there just an indicator I can drop onto the chart? Thanks so much.
  Overlaying indicators  (68   1 2 3 4 5 6 7)
Is it possible to overlay a BB onto the CCI indicator without special/unique coding? My coding skills are rudimentary at best. I thought perhaps it would just drag and drop, but that did not seem to work.
Hi, I need help in coding an indicator to show the interest rate chart of 2 different countries eg. Euro interest rate and US interest rate the indicator shall retrieve the date and interest rate from a CSV file. anyone able to help me with this? Thank you very much in advance.
Hello Guys I need help in creating the Currency strength formula that works on comparing the correlation of 8 major pairs that looks like below 50 is neutral, below 40 is weak currency, above 60 is strong currency Anyone can help on giving the formula on how to calculate those? thanks
  RSI indicator  (1426   1 2 3 4 5 ... 142 143)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": OverviewThe Relative Strength Index ("RSI") is a...
Dear MQL community for now just sorry for my question. Maybe for you it sounds silly, but there is no other professional which I could ask. My issue: I try to download a Oscillator from one of your developer: <link removed> And also I try to buy another products on the MQL-Market. But when I press...
Hi guys, i am using a struct to save DoM data into a file(TXT), but it has a problem, it is for passing a struct object , not a link or a reference. I tried doing that but didnt work. I am sending the code if someone can help.    Datefile file;   file.symb=_Symbol;   file.ask_volume=Ask;   file...
  Venom.1  (9)
Located here is trade indicator VENOM.enjoy
  Wrong Values  (9)
Good evening, I created an EA of Long/Short, that consists in buy and sell from two different symbols that have a good correlation. So, I use an indicator with the ratio, average and bollinger bands. The EA works fine, but the indicator sometimes need to be refreshed to show the correct values....
Hi all, I using a very helpful MT5 indicator which I found it free in this website, I use it in my daily trading, but I see it will be great if I can choose which time frame should the indicator collect data from, for example I attach it to daily chart but I want the indicator showing results based...
Hello All, I have two codes one Doda stochastic and EMA cross over alert, i have combined both. ( i have set correctly i guess the buffer values, setindex and all but because of two "for loops" i am stuck and two counter in same code), I have modified code as much as i could. (compiled when counter...
I'm Looking for help on how to initialize terminal data before OnCalculate is called. Attached is a sample indicator and associated log file showing the errors posted - I thought that after calling CopyRates for an 'old' bar, eventually the data would download and things would start working - but...
  Renko doubt  (11   1 2)
Reading articles around I feel confused about Renko bars... it looks like there are 2 intepretation: 1) every X pips a new bar is created 2) if direction of previous is up, a new bar is created after X pips up otherwise a new bar is created after 2X down... Where is the truth?
  Experts: RoNz Auto SL-TS-TP v.2  (195   1 2 3 4 5 ... 19 20)
RoNz Auto SL-TS-TP v.2: EA for Automatic StopLoss, Take Profit, Profit Lock, and Trailing Stop. SL and TP could be hidden. Author: Roni Nafrianto
New article Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies is published: This article is intended for novice/beginner users who want to approach some kind of customization with functionality and without writing an EA from scratch. In MetaTrader 5 we have a...
Support Resistance Trader: Support and Resistance lines are used with the Standard Deviation indicator for generating trade signals. Author: raposter 
RSI divergence candles: RSI divergence candles Author: Mladen Rakic 
New article Developing a cross-platform grider EA (part III): Correction-based grid with martingale has been published: In this article, we will make an attempt to develop the best possible grid-based EA. As usual, this will be a cross-platform EA capable of working both with...
New article MetaTrader 5 and Python integration: receiving and sending data has been published: Comprehensive data processing requires extensive tools and is often beyond the sandbox of one single application. Specialized programming languages are used for processing and analyzing data, statistics...
History Deals and Orders: The 'History Deals and Orders' script shows absolutely all properties of deals and orders from the trading history over a given time interval. Author: Vladimir Karputov
New article MQL5.community Payment System is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient...
Adaptive ATR: Adaptive ATR Author: Mladen Rakic
Export Positions History: The script exports history of closed positions to .csv file. It supports only retail hedging accounts (Forex). To export the entire trading history, keep Start date and End date at their default values (1970.01.01 00:00:00). You can see that all the closed...
Export trade history to CSV v2: This script will export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. Current version 1.0 does not add the takeprofit and stoploss. Any advice to improve this is welcomed....
Export Deals History: Export history of deals ordered by close time from a retail hedging account to .csv file. Author: amrali
DownloadHistory: Symbol for downloading the history data for the current symbol with indication of progress. Author: Artem Temnikov
Simpler Trend: Get a grasp of the current trend by candle colors. Although there are many similar indicators out there, this particular one is based on code previously published by Mladen Rakic and incorporates a number of improvements, part of which was added following user request in...
boring-ea2: Detects intersections between MA3, MA20 and MA150. Author: lucenacp
Hi All, please can any one help me in coding mql4 for drawing a line perpendicular to another line from the mid point. the picture attached for clarification. the red line is perpendicular to the yellow. for the yellow line one end (price1,datetime1) the other end (price2,datetime2). how to get the...
  Traders joking, the beginning  (7587   1 2 3 4 5 ... 758 759)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
Hello, I am currently working on scripting an EA. I came to the point, where I need to know, what exactly the indicator buffer stands for. Here is an example: double  iMA(    string       symbol,           // symbol    int          timeframe,        // timeframe    int          ma_period...
Hi, I'm trying to use a bitmap arrow in my indicator but the background of my arrow hide the prices candle and the back color : Is there any way to make white as transparent ? Thank you for your help, Ghen.
There a a new MT 4 build that is forced upon us (/skipupdate does not work - as usual) Once when you allow it - whatever you compile will not work any more. Take a test - use something that works, rename the source and compile it. The old (not compiled with new metaeditor) will work, the new will...
Hello, I want to create an expert advisor to run a 'backtesting' MT4 His function is very simple. First, I'll set two times "(hour/minute)", for example, input_1 = 13:00 , input_2 = 13:25. As an output I would like to have an answer if the price during this period has gone up or...
Im wondering if its possible to set a delay timer between trades? I'm working on automating a strategy, but there are some times when conditions are met that trades will open and close faster then you can blink. I'm wondering if we can say "For the next 10 bars, do not open any new trades", or...
Hey guys, I’ve been having this problem which I thought only occurred because I was using an old laptop. I have since upgraded and am having the exact same problem. Any help would be much appreciated. When I first download MetaTrader 4 or 5 (occurs to both platforms), I go to “Open a Trade Account”...
I test me EA on my own broker it works okay. But when I send in for validation I get the following : test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations test on XAUUSDcheck,Daily there are no...
hello. Some one cane help me to write a simple code that can i use to summation elements for an array. tks.
if (MathAbs(Ask - OrderOpenPrice()) >= 100 * Point){        Alert(Ask, " ", Bid);        res = OrderClose(ticket, lots, Bid, 3);}if (MathAbs(Bid - OrderOpenPrice()) >= 100 * Point) {        Alert(Ask, " ", Bid);        res = OrderClose(ticket, lots, Ask, 3);} I have been using this to close any...
Hi,  I’m brand new to mt4, I’ve coded a EA without warning or error and I go to test it but I don’t see any input tab in Expert properties.  What could be the problem?? Thanks for any help!
I code an EA that use an indicator that I haven't source code of it, This indicator give signal by appearing arrows but I have a problem with this indicator, sometimes when I changed time frame and so EA reinitialized, I see that chart refresh and new arrows appeared and EA act as programmed, How...
Hi All, I am trying to get the outputs for the Heiken Ashi indicator on the previous candlestick but I was unable to find a method that was clear to me. What I am attempting to do is determine a shift in direction, by checking if the current Heiken Ashi candle colour is different from the previous...
#property copyright "EquityHedgeGraph - by transcendreamer - origins from Xupypr"// building two equity graphs, one vs another, to seek hedge opportunities visually// each graph may represent a single instrument or a lot-adusted basket// spreads and swaps are not counted// Total = Side_A -...