To post a new topic, please log in or register
Hi As it's clear I can get current session property by SymbolInfoDouble(_Symbol,SYMBOL_SESSION_PRICE_LIMIT_MIN) but what about previous sessions? Is it possible? More explaining: In the market I'm working in where there is another close price that change by weighted average of trades by volume done...
Hi, I found an interesting indicator I would like to use in MQL5. Tried to convert it myself and get no errors when compiling, but unfortunately nothing is shown on screen when attaching the indicator. Maybe someone can point me into the right direction. Thank you in advance. Best Regards Sebastian
double MathematicalAchievement = 90 ; double ScoreOfChinese = 80 ; void OnStart()  {    if(MathematicalAchievement> 90 && ScoreOfChinese> 90)     {       Print(“VeryGood”);      }   } double MathematicalAchievement = 90 ; double ScoreOfChinese = 80 ; void OnStart()  {...
Hi For a ongoing signal, in order to change some signal cofiguration later (ratio of deposit used or Stop if Equity is Less Than) in the Options > Signal, of the MT4 platform, does that automatically get changed on the VPS? if not, how to apply the changed? Thanks
On May 21, Microsoft officially released a major update of their operating system Windows 10 May 2019 Update (Version 1903). This update affects configurations and encryption keys similar to the installation of a new Windows operating system. In order to protect Market products, the MetaTrader...
Hi How can the auto renewal functionbe cancelled so that at the end of the subscription, the renewal does not happen, for both a Signal and a VPS? i.e. will the unsubscribe cancel it now instead of waiting till the end? Thanks
Hello i subscribe for an ea and he not open orders when the EA opens several orders at the same time why ? Thanks
I need to make 2 buy or 2 sell trades, with one having a TP and the other running with a trailing stop.  Current EA only does one. Tried: OrderSend()&&() And OrderSend()&&OrderSend() Neither is working. Should it be: If(OrdersTotal<2) to open 2 trades  And close one position at a certain TP Then...
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.
Hi ! i paused the signal for one day, when i restarted i can not copy the signal anymore. please help. regards
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...
Hi everyone, I'm trying to download the Moving Averages crossover indicator and when I click 'download' the link it takes me to doesn't work for me, I think this is because I'm using MT4 on a Mac with Wine. The only custom indicators I have so far, I have downloaded as .ex4 files and manually put...
#import "kernel32.dll"   int   CreateFileMappingW(int,int,int,int,int,const string);   int   GetLastError();#importvoid OnStart(){    int hMapFile= CreateFileMappingW(-1,NULL,4,0,256,"Global\\test");    Print("CreateFileMapping_error:",kernel32::GetLastError());    Print("hMapFile=:", hMapFile);} Hi...
  My Seller Account Not Approve  (213   1 2 3 4 5 ... 21 22)
I have opened my account in mql5 which has been more than 6 months and has not been opened yet, I have completed all the document and multi, still my account is still unapproved, Please Solution
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
  Mr.Nims, Renko Ashi Scalping System.  (3540   1 2 3 4 5 ... 353 354)
Renko Ashi Trading System 2 Please read the pdf manual for this system. Good luck everyone. PS: Reuploaded the fixed ma in applied price indicator. Special thanks to FXchaser PS: Reuploaded the fixed macd alert indicator. Special thanks to Puzzlebird PS: Reuploaded a Special Settings Template for...
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,...
  Something Interesting to Read  (58   1 2 3 4 5 6)
This is the thread about books related for stocks, forex, financial market and economics. Please make a post about books with possible cover image, short description and official link to buy (amazon for example). Posts without books' presentation, without official link to buy and with refferal links...
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...
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...
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...
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...
  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...
Hello, I've been building EA's for some time now and it seems (to me) like I've finally made it. However, Im kind of affraid of running my bot on live account. Many tests were proffitable, dropdowns are small and tick history is 98% quality [report attached (unfortunately not in English but should...
I got a little confused on this indicator I can't get the right values And the expert does not emit any signal I asked the programmers for guidance on this Thanks everyone//+------------------------------------------------------------------+extern int       MaPeriod         = 20;           // Hama...
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...
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...
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)...
I place my orders with OrderSend function and I use the MqlTradeRequest to fill the order and my (type_filling) is equal to 2. when I run the test is buys and sells normally and it is shown in Operations and History tab in Strategy Tester Visualization but they are not shown in Trade tab. So if...
  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 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,...
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...
  Dynamic zone indicators ...  (1584   1 2 3 4 5 ... 158 159)
It seems that David Stendahl can not help him self Where his name appears "attached" to some indicator or TA way, it sure is worth trying it out and studying it. The basis for these were originally published in the Stocks & Commodities July 1996 issue (attached the original article here). Do not be...
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  (15814   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...
Reversing Grid on Limit orders: Grid system with limit orders. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951 Author: Andrey Barinov
Forex market session indicator: This indicator shows the session of the four major forex markets:Sydeny,Tokyo,London and New York. It is helpful for day trader. Author: OldZ
  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
I want to add url request in MT4, But as I try and feed and click , mql5.com comes back and my request is not added. what to do for that?
There is a new MT 4 build that is forced upon us (/skipupdate does not work - as usual) Once when you allow it - whatever you compile, it 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...
hi to everyone, i have a problem with my mt4 , after i add indicator or EA with ex4 to my mt4 folders i cant see them in indicator list and i just can see it in expert list and when i klick on it ,says that is not an expert so uyou cant run it. even in meta editor i just  see mq4 files and none of...
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...
  General  (2)
(ADX is greater than its 10 SMA), How can I write this in mql4 language?
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 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...
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.
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...
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!