To post a new topic, please log in or register
The input parameters of a string value are empty upon reloading an indicator a second or subsequent time onto a chart. To reproduce... 1) take an indicator with an input parameter of string type, (should be filled with its default), then place onto the chart 2) toggle any input and save 3) remove
preblueline=data[pos][1]; if(data[pos][1]>Open[0]) { blueline=data[pos][1]; } if(data[pos][1]<Open[0]) { blueline=data[pos][1]; } if (preblueline!=blueline){preblueline=blueline;} Hi Friends, I draw a horizontal line the chart say at price 1.14500 ( Previous Value) Now
hello , please help i try from 10 days to setup my seller account but i cant >>> because I cant receiving any sms or telegram message to Active My phone number I try I change my phone numbers , I change the phone number network but I have same problem I try to receive sms with telegram on my phone
  Become an Author at!  (142   1 2 3 4 5 ... 14 15)
Thenew MQL5 Community website at keeps developing. Weinvite all of you to make your contribution to this development. Thenew MQL5is the evolutionary continuation of MQL4. The new language ischaracterized by the support of object oriented programming, by ahigher code execution...
I'm trying to open the chart in MQL5 - after the chart is fully loaded - put the theme on the chart and then take a picture of the chart. But so far I haven't been able to get an example of my code please help me
For mql5 developers only,,,see I was working on a project was not online for a while came back and found the customer had requested for arbitration,,,I came back and presented the full task he liked it and gave a five star rating but forgot to cancel arbitration,,,is there a way of removing this
Hello, I'm coding an EA that opens orders with TP and SL when a price is hit. I don't want the EA to reopen any other orders if the same price is hit a second time. how can i control that
I would love an e.a that uses a strategy that i have developed.....I use 3 indicators....that need to be in agreement for a buy or a sell....who can build this for me
  indicator wanted  (1)
Hi All: i need a indicator showing number of sell/buy opned order to manage grid trading . Please tell me how to buy this indicator. thanks
Hello Members I would like to confirm that the EA on VPS is working. Is there anyway that i can get this confirmation. I subscribed to 1 Month VPS from MQL 5. Kindly help friends to identify that the VPS is wokring in the VPS
Hello, When I access the freelance tab and try to open a job I get this message. The possibilities of your account are limited You cannot add any posts and edit your personal information. Can anyone tell what it is? and how can I reopen new jobs?
  MQL5 VPS  (1)
Please, how many accounts can one have on VPS
hi, all i couldn't find topic on running forward test of multiple eas on a single terminal. i know that you can run multi eas in a single terminal/account but is there any way to look at each ea's performance separately
  Press review  (6630   1 2 3 4 5 ... 662 663)
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...
  How to Start with Metatrader 5  (1260   1 2 3 4 5 ... 125 126)
I decided to create this thread to help to myself and to the others to start with Metatrader 5. I am experienced in MT4 and in forex in general (i hope : ) but we traders really need to collect all the information about it in one place. I will make some posts about 'how I am starting with MT5'....
  Tools to analyze the trades  (90   1 2 3 4 5 ... 8 9)
First of all I am using this small script (attached) created by Beluck and fixed by Igorad. To use it be sure that you have "all history" in "account history" in your Metatrader (for the right calculation).
  Trade Assistant  (41   1 2 3 4 5)
Here is a new indicator I threw together this weekend. This is the beginning, I'm going to add more indicators to this one as I go along. Basically, this indicator gives buy and sell signals on multiple timeframes based upon stochastics and RSI. I was going to wait until I posted this one but even...
Hello, I have been curious as to why we have signals and EAs for currency/forex, but not for stocks. What is the reason for this - it would be great to know the historical reasons as well. MT4 itself is a decade in, so what are the reasons developers or strategists don't offer stock indicators/EAs
Hello everyone! I'm trying to create /find an EA that's capable of doing many trades in one month (the more it makes, the better). It doesn't need to be profitable, as long as it doesn't destroy the account. For example, in 1 year, it should not lose more than 20% of the initial deposit. I have
Hello, Could you please help me with starting to use trading robot? I have some questions about how to start to use it
  problem in robot  (10)
Hi, I used a robot and it worked well, but the problem is that the balance is decreasing even though all the deals are winning. Please help me
Discover in 15 Minutes: Watch the Video about Trading Signals in MetaTrader 4 and MetaTrader 5 The most frequently asked questions related to the Signals service will be collected and processed in this topic. The list of questions will be updated from time to time. Soon we will try to give answers...
  mql4 or mql5?  (14   1 2)
i will learn the mql programming it's better that i learn mql4 or mql5 programming? what is your suggestion
  Arbitrage  (2)
Is it possible to create a custom symbol with the closing prices of EURUSD and GBPUSD
Why not see all signals in Metatrader4 under "Signals"
  Signal Systems  (393   1 2 3 4 5 ... 39 40)
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
  Trading Signal  (1)
Hello house, please i would appreciate it if someone could show me a reliable fx free signal provider. Thank
  Brainwashing System / Asctrend System  (239   1 2 3 4 5 ... 23 24)
This is the thread about Brainwashing system. We will start with original version of this system and will improve it later. ========== Just something about the history. There are 3 famous signals system (manual trading systems based on signal indicators): Asctrend, BrainTrend and Brainwashing. First...
I am a newbie trader who wants to use an EA. I installed a VPS on my terminal yesterday and intend to install an EA on Monday. My friend told me that I did it all wrong. That if I install the EA after the VPS the VPS might not recognize the EA and that I might have to reinstall the VPS after the EA
  Something Interesting to Read  (63   1 2 3 4 5 6 7)
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...
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...
  Beginner's club  (10)
Hey I'm new to this website I really wanna learn how to trade in and out Can someone help me from where should I start and keep doing something consistently so as to get a brief idea of how to trade A help would be much appreciated...thank you
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...
Downloaded the MT5 platform on my PC, I'm trying to access US stock market data. I've searched the web for the how-to's and all of them say to go to the symbols list under marketwatch. But I'm not seeing a list of markets as opposed to what is being shown in these how-to guides for getting stock
Hey guys, What is your analysis of oil market. Thank you
Hello all, I am new to this forum and I have recently downloaded MT5. Now I want data for Indian Stocks. Can someone help me who are authorized data vendor for India Exchange NSE for MT5. There are many data vendors for Amibroker and Ninjatrader in India but not for MT5. How I can import historical...
Hi all I'm about as new here as one can be. Both to trading and to this forum and is my first post here. Hoping I can get a answer to a question. Google hasn't been able to help. I want to know how can I calculate my lot size for opening a trade on NAS100. Is there a known formula? For forex pairs
Hi I'm hoping someone can help my to explain what all these contract specifications mean. (Looking at the NAS100) I took a snippet from two brokers. (I only list the specifications I am unsure about) AxiTrader: JP Markets: Stops level: 1 4 Profit Calculation mode: CFD CFD Margin Calculation mode
Am a python programmer i programmed a triangular arbitrage bots for cryptocurrency. Now a good deal drove me to forex trading i want to build a triangular arbitrage bot. i tried to understand how to do triangular arbitrage manually on MT5 before building the EA bot for it but i understand None. i
  Apple  (34   1 2 3 4)
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...
to start your weekly trading i advice you guys to go to favorite symbol chart and draw daily support and resistance and weekly support and resistance as well and write it down or keep it on different colors on your charts. whatever your strategy you should know these points
At the 19th of October Ak Investment,one of Turkey's largest brokers, officially launched the MetaTrader 4 platform for Forex and CFD trading. The companynow offers its traders access to the rich functionality of thepopular platform — everything traders need from trading and analytical functions, to...
At the end of the last year, we informed you about the first MetaTrader 5 launched in Thailand. One of the leading Thailand brokers Apple Wealth started offering the terminal in demo mode. Recently, the company has undertaken yet another step - now, its clients trade shares at SET (Stock Exchange of...
I've been searching for the above but haven't been able to come across any brokers. I would really appreciate some help
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...
Hello everyone, I have been reading a little about the subject in the reference guide but I just don't understand how to transcribe a simple thing from MQL4 to MQL5. In MQL4 I use the following code to read the indicator: double Main = iMACD (Symbol (), MACD_Timeframe, FastEMA_Period
Hello I just compile an EA i am getting one error : '1' - expression not boolean When i go to line this is the code causing the error : if(IsStopped())return(-1); How do i fix this? I appreciate the help
Hello esteemed experts! I have created an expert adviser but have a little problem here. I would like to use the 3rd candle low or high to trail my open positions. Attached is the code for the high and low. I also need the trailing to start when break even has occurred. The system is promising. Your
  EA evaluations  (1)
Where do I send my EA for backtesting by other developers and users
Hello ! I Want that my EA open trade after every 5 pips move . let's suppose GOLD Current Price 1550$ , when it touch 1545$ , then my EA open Trade Buy Automatically & Auto Take Profit Set , Which i Want..... Just Simple .Anyone Please Help me & Give CODE . Thank you in Advance
If 1% damage, position is closed. I wrote the code, but it doesn't work
If I am trying to output multiple lines, how do I do this? Comment("Apples");Comment("Oranges"); The code above will only output: Oranges As if it is being re-written on the same line again
I wrote a super detailed post about this problem on Rather than re-create the entire thing here I'll just post the link: Basically, I'm having a very specific
There's a popular belief that trading robots "don't work". I know they can be profitable but how much really? For a few dozens of dollars you can buy EAs that theoretically perform several times better than the best stock market indices, but if they were doing really well in live trading, the
Hey, from time to time (yes I love this sentence too), my EA causes "Invalid pointer" errors when a pointer is just assigned to a variable. Like this: CVObject *ptr=(CVObject *)m_invalidupdates.At(i); m_invalidupdates is an CArrayObj object which is part of the MQ library. CVObject could be any
Hello, I have written an EA that should trade 36 symbols of the market watch at the same time. This works in the strategy tester exactly as expected, so it executes exactly the program. However, when I want to run the program live in the demo account, it stops at a certain point. Basically, the
I spend quite some time developing an EA that is reading the Forex Factory Calendar (FFC) HTML. I’m stumbling now on an issue that I did not foresee and I’m unable to solve. Hopefully you can help me. When the news event occurs, I want to extract the Actual number, and compare it with the forecasted
Hi there, I am new to MT5 and learning write some simple expert advisor by silghtly modify stock signals. below is my test EA source code. what i am expecting is when MACD main line above zero level && STOCH main line > STOCH signal line. it should generate a buy signal. MACD singal pattern value is
Since the EA i'm writing will be used only on forex pairs, should I check the SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE) ? 1. is this SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE), a reliable checkup to be sure if EA is activated on a forex pair (and not on OIL and other stuff) ? and I have added the...
  vps trouble  (18   1 2)
Hi guys I have a ea that I want to run on a vps but I am having difficulty setting up the vps. I went trough all the steps to migrate and to synchronize the vps with my mt4 account but it does not seem to be working. The EA works when my pc is on it enters and exits trades but not when I turn the pc...
I would start this topic to make a archive of indicators those who people think are practical so just send the name(+a little explain) of free indicators that you use
  Indicators with alerts/signal  (15835   1 2 3 4 5 ... 1583 1584)
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...
Hi guys, I need to get ATR value of Daily period at any timeframe but I get 4806 error code. I don't know how to tackle it. At 1Day Period I can get ATR values, but I need to get 1Day ATR values at any timeframe. when I change Timeframe, I get BarsCalculated() returned -1, error code 4806
  Moving average  (2)
I am looking for a color changing multi time frame moving average. If you have one or can make one please let me know or post the link/file thanks
Good Day Can anyone be kind enough to provide me with a Zig Zag that does not repaint Or a Swing High Swing Low Non repainting that can be used for high and low entry point for long trades
  Pip counter  (2)
Has anyone seen a pip counter like this or can anyone code one like this for me
Hi, Please help. What does this indicator count for values? It reminds me of RSI but it is a little different. Thank you for help double tempPrice; double f88, f90; double f0, v4, v8, vC, v10, v14, v18, v20; double f8, f10, f18, f20, f28, f30, f38, f48, v1C; double f50, f58, f60, f68, f70, f78
Hello everyone I have a problem to solve How to display the technical indicator values of two time zones on a chart? The following picture is an example Current chart is H1 There are two KD technical indicators opened below Hope the second KD technical indicator is to show the value of the H4 time
Here is my giving back to the community for my success.Here is indicator SSRC the best trend indicator.enjoy
I’m trying to code an indicator that displays an arrow if the close of candle [i] is > the close of a ‘specified’ number of previous candles (ie if it closes above the previous number of specified candles) but I can’t find my way out of this. Kindly help community. int OnInit() {//--- indicator
Hi, I am looking for an indicator where one Moving Avarage is divided by another. For example 20SMA divided by 10EMA, or similar. Does anybody know if such a thing already exists? Thanks, h4rry
Hi, I have the following questions on user defined function: Question 1. Can I put a if statement within the function as I want to combine two functions into one ? Question 2. Can I use the same variable (a and b) in two different functions, does it confuse the program . In the main program we have
while(pos>=0) { // ******** SLmin Function ********** double Func_SLmin (iCxu) { j=0; SLmin=3000; while(iLow(Symbol(),PERIOD_H1,j)<iCxu) { if (iLow(Symbol(),PERIOD_H1,j)<SLmin ) SLmin=iLow(Symbol(),PERIOD_H1,j); //Print (Symbol()+"SLmin = "+SLmin);
I have a company
Hi All I am trying to create a ROC indicator, but for some reason, it doesn't get displayed, the code is below double ROC, CurrentClose, PrevClose;double RateOfChange[]; CurrentClose = iClose(Symbol(), 0, i); PrevClose = iClose(Symbol(), 0, i + n_Period); ROC = CurrentClose -
  Indicators: Inside Bar  (16   1 2)
Inside Bar: Indicator detects the Inside Bars and marks them high/low (no redraw). Author: Taras Slobodyanik
New article How to create Requirements Specification for ordering a trading robot has been published: Are you trading using your own strategy? If your system rules can be formally described as software algorithms, it is better to entrust trading to an automated Expert Advisor. A robot does not need...
MQL_Easy: A cross platform library/framework Author: Dionisis Nikolopoulos
volatility_Bar: volatility, flat Author: Martingeil
  Experts: TimerEA  (4)
TimerEA: It's an expert to open and close orders on a specific day and time. Expert open and close orders only with the same symbol attached. Author: Nikolaos Pantzos
TraderToolEA: TraderTool is a tool/panel that will help any trader to perform trades quickly and easily. The product has been developed with user-friendliness and ease of use in mind. It has the ability to manage multiple types of orders, either placed by an Expert Advisor or manually. It also
New article Using Self-Organizing Feature Maps (Kohonen Maps) in MetaTrader 5 is published: One of the most interesting aspects of Self-Organizing Feature Maps (Kohonen maps) is that they learn to classify data without supervision. In its basic form it produces a similarity map of input data...
New article How to Buy a Trading Robot on MQL5 Market? is published: Now you also can use trading robots and any technical indicators with MetaTrader 5. All you need to do is to launch MetaTrader 5 trading terminal and open Market tab of Toolbox window. Author: MetaQuotes
DayPivotPoint: Indicator DayPivotPoint System with Signal and Alert for MetaTrader 4 Author: Roberto Jacobs
Bid-Ask-Spread: The indicator shows BID-ASK-SPREAD information on chart Author: Onur Uzuncakmak
Magnified Market Price: The indicator shows price on a chart. It is simple to write. Author: John Smith
Position Size Calculator - Based on VP money Management rules: This indicator is based on the Money Management approach used by VP from <deleted> It uses ATR to calculate Stop Loss, Take Profit and Volume you should enter into a trade based on the percentage of your Equity you want to risk. Author:...
McGinley Dynamic Indicator: The McGinley Dynamic indicator is designed to follow prices, avoiding whipsaws that are given when conventional Moving Averages are used. Conventional Moving Averages have a fixed period and therefore a fixed speed. As a result, price separation occurs when the...
Automatic Fixed Scale with Top/Bottom Margins: This code was written as an indicator. It adds top and bottom margin to the chart. Both can be adjusted separately. Author: rkdius
New article Extending Strategy Builder Functionality has been published: In the previous two articles, we discussed the application of Merrill patterns to various data types. An application was developed to test the presented ideas. In this article, we will continue working with the Strategy
Hi there where is the mistake ? doesn't want to close the order :( Thank you :) if(h4==1 && h1==1 && m30==1 && m15==1){ if (ticket<=0){ ticket=OrderSend(Symbol(), OP_BUY, 0.01, Ask, 1, 0, 0,"Buy", 1,0,clrAqua) ;
Hi All, I am writing select data on my trades to a .txt file. My EA operates at the tick level. I calculate the current server time at the minute level = CMinute. At minutes 5,15,30,45,59, I want to "write to file" only once during that minute. I am currently posting, say on CMinute = 15, from 5-30
Hi All, I would like some code or function to get the Factor for any currency pair. I would use the factor to calculate the dollars of Profit/Loss for any given Lot size. For Example: Currency: EURUSD Lot Size: 1.0 Pips Move: +100 CalcDollars = 100 * (Factor @ 1.0 Lot) If calculated Factor = 1.15
Hi... I'm a newbie just starting out to learn MQL4.. I'm trying using an existing OrderClose function to close half of my trades once my order has traveled in my favor 1x the ATR of the bar before the OrderOpentime(I used a iBarshift function), I've get the code to print out the value I was looking
I'm trying to run mt4 on my mac using playonmac. Every time I try to install I am prompted to enter proxy server details. Surely proxy server shouldn't come into it. Does anyone know how I overcome this problem
Hi All, I am trying to setup a trailing stop for a grid which includes a series of orders (long and short) for the same cross. At the moment I can manage for the grid to close when a certain profit % has been hit, however what I would like to do is to create a sort of moving profit target loosely
hi im having issue i wrote a function isthereactiveorder() if there is a buy dont open a buy if there is sell dont open sell it seems to not working, if any one can provide any guides i well be thankful #property copyright "Copyright 2020, MetaQuotes Software Corp."#property link
Hi there all If you can please help, i would like to open 1 buy & 1 sell. For some reason my EA opens many trades, I know there's a way to open 1 buy & 1 sell. By using "if (OrdersTotal()<1)" i don't want to use that because i want to use the same code on a different pair. If there's way please
  Traders joking, the beginning  (7731   1 2 3 4 5 ... 773 774)
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...
The MetaTrader 4 update will be released on Friday, January the 24th, 2020. The update provides bug fixes and stability improvements. The new version will be available through the Live Update system
Hi guys, first of all I want to thank this community for being so awesome. I have the following issue about compiling mql4 files. I know metaeditor gives the chance to compile the code from command line (metaeditor.exe /compile:) and so to potentially to automatize the production of executable
  Operator ERROR  (1)
HI im having a bit of problem im facing these errros ';' - unexpected token )' - unexpected token 'stopp' - some operator expected if any one can give hand i will be thankful void opennew(int ordertype){ RefreshRates(); double openprice=0; double closeprice=0; double stopp=0; double
hello dear traders i am so confused to find the right forex sessions starting time and ending time in 3 major sessions (tokyo,london and newyork) because some websites and indicators show different starting and ending times than other indicators and websites. for example right now we are in winter
Hello, I know this is a basic question, but I am struggling to find a way to open a trade with a fixed risk percentage. As an example, I would like a trade to open with a risk of 2%. this way I can tell the EA to place a stoploss without stretching my risk. If price hites my stoploss I want to close
how can i get inform with a notification when the indicator appear