forex forum for traders and developers

I have tried to successfully remove a Service from the Terminal, but failed to do so. A Service can have (obviously) three states, "Running", "Stopped" and "Removed". Status "Stopped" is reached when the Handler-Function OnStart() returns from execution. Status "Running" is only valid while the
  How to Start with MT5, a summary !  (66   1 2 3 4 5 6 7)
How to start with MT5 platform : summary. As our topic about " How to start with Metatrader 5 " is going to be huge, here you find a summary, with main links. A very good article to learn how to use this site . How to start with MetaTrader and forex , the beginning , Some news about MT4 and MT5 for
  Custom Chart  (3)
We all now know that is it almost impossible to run ea or trde on custum chart. my question is, why don't mt5 release new charts like renko or heiken hashi ? if it is security issue, isn't it better for Metatrader to create a chart that will match with the brokers ticks, than us creating custom
Hello. Can I advertise other trading related services on my wall(homepage)? Services that are not related directly to MQ and also the payment won't be through MQ. Is it against the rules
Hello all, I have read the "Requirements and Limitations in Making Trades" and it appears that all order types MUST be based on Ask / Bid prices to be valid!!! If my understanding is correct, this means that one cannot use an independently calculated Open Price, Close Price, for example, which may
If the program logo in MQL5 MetaEditor has turned yellow and it's not accepting tests, it indicates that there might be an error or issue with your code changes. When the logo turns yellow, it means that there are warnings or errors in your code. ? any idea
When I am trying to withdraw I am getting this error : The PayPal payment system is temporarily unavailable. Please try to repeat the transaction later. It is only me or everyone
Hello, Why was no transaction made last Friday
  payment errors  (1)
I am getting payment failed errors when i try to renew my vps
3 months ago backtest was normal but now backtest is terribly slow. I don't know if it's because MT5 has changed or is there a problem with my computer
  Xauusd best TS  (1)
helo, can someone tell me what is the best Trailing Stop step for XAUUSD base on point for scalping m5. iam using SL - 50 points startminprofit - 50 points trailingstop - 30 points trailingstep - 5 points but the result profit ratio not very good
Does anyone trade with this setup and know if MT4 & MT5 will work full screen on a folding phone such as the Galaxy Z Fold 2/3/4/5, Oneplus Foldable, Pixel Fold, Vivo X Fold, Huawei Mate X3, Xiaomi Mi Mix Fold 3? I'm thinking about getting a folding phone because I saw a YouTube Shorts video on
We have updated the Chat to further enhance the user conversation experience. Check out the new service interface and updated functions, such as the revised friending logic. Create groups on financial topics, join existing channels, discuss current issues with fellow traders in group chats
I had 2 purchases yesterday that were cancelled. The client writes that he has enough money on the account and he knows another seller who had the same problem yesterday. What's going on
Hey, everybody. Who can explain it to me, some bought a productfrom me, but then they canceled it and system wrote What does that mean
Hello everyone. Do you think python is good enough for this purpose
  Trading System by Xard777  (3890   1 2 3 4 5 ... 388 389)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
  E&A Standard Trading System  (551   1 2 3 4 5 ... 55 56)
Hello All, I have developed a simple trading system that I call the E&A Standard. It works on any currency (I prefer low pip spread currencies for obvious reasons) and any time frame (Though any time frame less than 5M is not recommended). It uses SSL Channels and ADX Crosses. When the Indicators...
I dont have any problem in technical analysis on 1minute chart but i trade with big size stop loss, which has following problem 1. Sometime it takes hours and waste my time as price just hovers between my stop loss and entry area 2. As per screenshot, If i place stop loss above the 1st arrow's
I am doing research on the methods used to trade and I thought I would open the discussion to all. Please provide me your thoughts if you like. In day trading using manual method, you will likely use the following methods. 1. Price action ( candle analysis looking at the "types" of candles) 2
hi internet is full of best entry strategies , but no one talks about setting TP points , what is best way to set take profit point ? latest swing points ? R/R ? pivots ? how you identify the retest so u dont break even fast ? do you use higher time frames for exit points ? but the problem is : i
  2:1 trading system  (18   1 2)
I have a trading system but it works when risk is 2 and then it gives reward of 1 It's a strange problem because even if system accuracy is high but I know that to grow account we must use minimum 1:2 trading system where risk is 1 and reward should be 2 or more So can you please suggest me what
Trading and training video (from youtube for example) about forex and financial market in general.  thread for April 2013 - look at this thread,  thread for May 2013 - look at here,for June 2013 is here.July thread 2013 is hereAugust thread 2013 is this oneSeptember thread 2013 is hereOctober thread...
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
[TABLE] About MasonFx scalping indicatorMasonFx Scalping System is developed on the M1 (1-minute), M5 (5-minute) and M15 (15-minute). The system is primarily based on MasonFx Scalping custom indicator - a strong and superior indicator running on "Metatrader 4" platform that can identify crucial...
  Indicators Thoughts..  (22   1 2 3)
What do you think of Trading Systems that doesn’t use Indicators except ATR but only O,H,L,C, candle patterns, bar patterns and Time
  ASCTrend system  (1326   1 2 3 4 5 ... 132 133)
Some people say that it is the best signal system in the world. It is very famous system and it was developed in the interesting way: Russians recognized this system for MetaTrader some years ago and this western trading system was not very profitable (I am talking about MetaTrader only) but had as
  QQE and gann hilo detailed  (123   1 2 3 4 5 ... 12 13)
  Something Interesting to Read  (125   1 2 3 4 5 ... 12 13)
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...
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
Which Stock Brokers offer MetaTrader 5 platform? Anybody know
Hi, as you see, I can only connect to Binance-Demo server. how can I connect to my real account on Binance in MT5
  Forecast and levels for CAC 40  (28   1 2 3)
CAC 40 January-March 2017 Forecast: bullish with key resistance at 4924.69 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 4860.85 resistance level to above on close weekly bar with 4924.69 as a nearest bullish target to re-enter. Thus, the weekly price is...
  futures  (4)
As I know if I buy a futures instrumentum on the stock exchange, as the expiration date approaches, it converges more and more to the price of the original instrument, but this is not the case at my brokerage company. Can anyone tell me what is the reason for this
I have been trading price action for over 14 years and in this YouTube course I am sharing my most important tips and provide a step-by-step approach to mastering any price chart. ►Timestamps: 0:00 Start 2:28 Chapter 1: Candlesticks 15:37 Chapter 2: Chart Patterns 32:51 Chapter 3: Trend Analysis
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.25 06:50 Hang Seng Index Q1 2017 Forecast (based on the article) "Underlying sentiment surrounding Hong Kong stocks has remained negative with underlying concerns surrounding...
  MT5 real FUTURES broker  (31   1 2 3 4)
Hello, is anyone aware of any futures broker that offer its client the MT5 trading platform ? Is there a list of those? I mean real futures, not CFDs. Futures that trade on CME Globex and Eurex exchanges. Thank you
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
New article Creating a trading robot for Moscow Exchange. Where to start? has been published: Many traders on Moscow Exchange would like to automate their trading algorithms, but they do not know where to start. The MQL5 language offers a huge range of trading functions, and it additionally...
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...
  Forecast and levels for S&P 500  (472   1 2 3 4 5 ... 47 48)
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...
  Forecast and levels for Dax Index  (71   1 2 3 4 5 ... 7 8)
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...
New article How to Secure Your Expert Advisor While Trading on the Moscow Exchange has been published: The article delves into the trading methods ensuring the security of trading operations at the stock and low-liquidity markets through the example of Moscow Exchange's Derivatives Market. It...
I created a custom synthetic symbol for NAS100 and did an optimization. after the optimization was completed, i ran a single test for a parameter and then checked the backtest results and the first thing i see is History Quality 0%. I am using Every tick based on real ticks model and the single test
Hello Guys im trying to find the simplest way to run the configurations of my settings rather than manually adjusting the inputs window, since I run my EA multiple time in the same pair, I have to manually put each settings one by one, is there's a simplest way to do that? like just running the EA
I'm trying to make a code to execute a script like this: // Check the account equity and disable trading if needed void CheckEquity() { double equity = CalculateEquity(); if (equity - initialEquity >= takeProfit || equity - initialEquity <= stopLoss) { tradingEnabled = false
Screenshots of code removed by moderator
Hi I have been trying to code a SMA into my EA. I need to do this because I want to see the buy and sell signals in relation to the SMA know that it is working the way I want it to. What is happening at the moment is a straight line is being drawn from some anchor point and travels right from left
EA only places one trade with the correct sl and tp but it never opens another trade #property copyright "Copyright 2022, MetaQuotes Ltd." #property link "" #property version "1.00" #include <Trade/Trade.mqh> #include <Trade/PositionInfo.mqh> CPositionInfo m_position;
Hi I am a very beginning stage of coding i managed to do this via you tube, i need help on open only one trade at any time. after closing the next trade has to open. please help me on this. I am using mql5 #include <Trade/Trade.mqh> input group "Trading Inputs" input double Lots = 0.1 ; input
Hey Guys, I'm pretty new to MQL5 and I'm trying to get the high and the low ONLY ONCE from 12:30 AM to 3:30 AM and then take those values after 3:30 AM and find the next new high/low. Any help would be much appreciated! datetime ExtractTime( datetime when, int hours, int minutes) { datetime sod
Hello there. We're running into an issue trying to print out our list of pending tickets and attached the simple code base as well as a few screen shots of what we're seeing in testing. Issue is the last pending order never gets printed and even if manually adding print statements accessing that
Im writing an EA which will place market order at a specific time, everything seemed to be right, no bug, no warning were found when I compiled it. But the problem is when I run it, the system kept warning that my order is invalid CTrade::OrderSend: market buy 0.66 EURUSD sl: 1.07209 tp: 2.00000
I'm trying to use data from the MACD, and according to the documentation index [0] should contain the most recent data point. However I have found that the opposite is true. If I get three data points, [0] is the oldest whereas [2] is the most recent (changing on-tick as the price fluctuates). The
  is market open/close  (19   1 2)
Hi all I would like to check in the expert advisor if the markt is open/close. What's the easiest way to do that? I don't want do check that over time. I also need to know when the market open again after the short close every day at 11pm. Thanks FX_TA
Hi I have created AI bot written in python. How to convert it to .X5 to upload on the market? I have three .py files and one .csv and one .h5. These 5 files are one project , i can connect it to MT5 and predict candles. However, for MT5 market it accepts only .X5 file. So how to convert my python
  MQL equivalent to Python's None type?  (82   1 2 3 4 5 ... 8 9)
A major missing element in the MQL language is a universal None type like in Python. MQL5 has "WRONG_VALUE", but with double, for example, it sets the value to -1.0 which is unacceptable in most cases. It became an obvious issue when I was debugging a substantial project and come to find-out that a...
I have a python script I want to implement on MT5. How do I do that
I'm new to MQL5/programming so forgive me in advance: In the process of modifying a clock indicator that gets updated in OnTimer() I found that I needed to do a ChartRedraw() in order to make sure it visually updated the label chart object in a timely manner. This got me to thinking... if there's a
Good morning, There is an error that I don't understand. Maybe I'm doing it wrong. I would like to have an indicator that returns me ADX values in a larger unit of time. input int PeriodADX= 14 ; input int ADXTrendLevel= 22 ; input ENUM_TIMEFRAMES HTF = PERIOD_H1 ;
I would like to repeat a task every 20 seconds is that how to do it? int timeToWaitInSeconds = 20 ; datetime LastTimeRecorded = LONG_MIN ; int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[]
Hi, Could someone tell me what lines should I write into the basic RSI indicator's code to get the result on the pic? At moment I draw rectangles to get the colored zones. Basically I want colored zones at the backround of the indicator regardless of the timeframe. I hope it's not difficult. Thanx
Hi guys, I recently develop an indicator that detects support and resistance levels of the 100 previous peaks and troughs. I am trying to implement the data and calculations of this indicator to an EA I am trying to develop but I am having some problems. Since the indicator detects structure levels
Good day, I tried for days to code a master candle indicator by myself, with no success. I need to draw the high/low of each master candle available on historical datas. Can someone help me very please. here is the function OnCalculate Regards. int shift, bar, limit= 0 ; //--- if
Hi again, So this is my second indicator. And this indicator is created to be able to follow Jperl's Market Statistics thread on Traders Laboratory. Please read this summary document of that thread first. After reading that document lets discuss how can we use this approach in Forex trading... I am...
I found something strange in copybuffer atr indicator. the value return EMPTY_VALUE if shift is far from current. Anyone get this problem? //+------------------------------------------------------------------+ //| TestCopyATR.mq5 | //|
Good afternoon! I'm trying to build an indicator that stores the price of each second ago in an array. Then, I intend to get the price of, for example, 5 seconds ago, accessing the array L[5].... I made this code below, but I can't access the array. If it's L[0], then it works.... Where am I going
I am idealizing an indicator with two plots, where one plot would be attached to the chart window (indicator_chart_window) and the other plot to its own subwindow (indicator_separate_window). Is it possible to do this in a single code or do I need to build different indicators
ExtMapBuffer1[i] = giao dịch == 1 && giao dịch[ 1 ] != 1 ? 1.0 : giao dịch == - 1 && giao dịch[ 1 ] != - 1 ? - 1 , 0 : 0 , 0 ; ExtMapBuffer2[i] = giao dịch == 1 && giao dịch[ 1 ] != 1 ? 1.0 : giao dịch == - 1 && giao dịch[ 1 ] != - 1 ? - 1 , 0 : 0 , 0 ; please fix me
Hello, I am writing a function to get 10 RSI values from copybuffer, how do return the function as an array/pointer? double RSI[] ( int Position, int RSI _Period , int RSI_Apply) { int Handle; double Values; Handle = iRSI ( Symbol (), Period (), RSI _Period , RSI I_Apply); CopyBuffer
Hello guys I hope anyone know the name of this indicator I used to have it on my mt5 . after I changed my pc I lost all my data so I don't remember from which site I download it from. so by seeing these picture anyone know what is this indicator ?? It may look like super signals but it's not . I
Hello, I try to get data ( a value of a moving from another M5 ) and use it with data in Current time frame but it has repaint please help me to solve the problem double moving_val_M1 = 0 , moving_val_M5 = 0 ; for ( int i = candles; i>= 0 ; i--) // Bars-1 { int m1 = iBarShift ( NULL
why has simple thing like coding a moving average on RSI to read values from 0 to 100 on the RSI window so hard.....I just can't imagine, no proper documentation. Any help
Refresh All Open Charts : This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts. Author: Muhammad Ali Akbar
MA Angle : Not sure if anyone need this. Just showing the angle of the MA of current and adjacent candle. Author: Lee Chee Tat
Highly_Adaptable_MA_Alerts: Highly Adaptable Moving Average Alert indicator Author: Scriptor
New article Creating an EA that works automatically (Part 11): Automation (III) has been published: An automated system will not be successful without proper security. However, security will not be ensured without a good understanding of certain things. In this article, we will explore why achieving
New article How to Post a Product in the Market is published: Publish your interesting applications in the Market, and they will be immediately available to all traders who use MetaTrader 5 worldwide. The Market is a great opportunity to earn, with an immediate transfer to the account and convenient...
SLTP Currency: This EA will use the deposit currency as Stop Loss and Take Profit for each trade, once profit or loss has been reached it will close the entire trade. Author: buju
Check if there are any new bar : The purpose is to check whether new bar are generated This is a class file that can be used as a class or copied to EA or scripts for use Author: Mage He
Equity-based Position Closure : Explore the implementation of equity-based position closure in your trading bot, where positions are closed automatically when the equity reaches a certain percentage threshold. Author: Kishore K
New article DoEasy. Controls (Part 1): First steps has been published: This article starts an extensive topic of creating controls in Windows Forms style using MQL5. My first object of interest is creating the panel class. It is already becoming difficult to manage things without controls
Ma Price Cross (Custom Time) : Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in. Author: Jacobie Nycambren Barksdale
New article Take a few lessons from Prop Firms (Part 1) — An introduction has been published: In this introductory article, I address a few of the lessons one can take from the challenge rules that proprietary trading firms implement. This is especially relevant for beginners and those who struggle
Boa_ZigZag_Arrows_Duplex: Two Boa_ZigZag indicators with different periods, which appear as arrows on one chart. Author: Nikolay Kositsin
Moving Average-RMA : RMA Relative Moving Average is a variant of EMA Author: Mage He
New article How to Subscribe to Trading Signals is published: "Signals" in MetaTrader 5 trading platform allow traders to connect to any signal issued by providers. Select and subscribe to any trading signals provider to copy all his or her deals on your account. How to become an investor and...
EasyAndFastGUI library for creating graphical interfaces: The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs. Author: Anatoli Kazharski
This is a Moving Average Crossover EA made by Tom Whitbread. I have tried so many times to backtest This EA but it doesn't work. I could not find what is the actual problem in this code. Where is the problem anyone can find it? //+------------------------------------------------------------------+
Hi, I am new in MetaTrader Help me to find original Indicator Name
Hi, I've created an EA for MT4 that scans all the Forex pairs and all timeframes looking for engulfing patterns and pinbars. The code runs on a timer, every 10 seconds. The code works fine most of the time, but I've noticed that when I use "iTime" in the following code, it returns dates from the day
hello i have a indicator that does display the current risk with some math, it technically works just fine however after some time (mosly when i close positions) it just stops updating, and i have to reload it via template or change the symbol to make it work again, is there somethings i can do to
Hello friends, I want to change the size and direction of the arrows in the command below what should i do Improperly formatted code removed by moderator
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
I tried searching for C++ Keycodes but nothing came up for C++, just different languages. I noticed the MQL4 help manual offers some examples, but I couldn't even find the ones that match up with the following example in the help manual: #define KEY_NUMPAD_5 12 #define KEY_LEFT 37
When I read the log file I could recognize that  the Custom Indicator is loaded and then removed.  Again he is loaded and removed. Then he is loaded. Enclosed you see a screen shot. What does that mean ? 
Hello everyone, Here's my problem: 1) All my terminals were running on Terminal Build 1353. After some time, the terminal could not connect to the internet and broker, and I couldn't trade. A message appeared in the terminal: "Old Version." 2) I tried everything to update my terminals, I even
Hello, I hope somebody can help me with my problem. The problem concerns to mql4, I don't know that is a good place of this topic. I have open several charts and on each of them is working EA. If EA will open or close position I'm doing screenshot. To do this I need to bring chart to top using this
I would like to make the following two changes to the EA in the attached MQL4 file. (1) In the case where this EA already has a pending Stop order or Limit order due to an EntrySignal, If the EntrySignal is raised again when the bar is newly opened, I want to cancel a pending order with the same
Hello all Right can anybody shed any light on the reason as to why MetaEditor is telling that I have unexpected tokens where correct syntaxes have been adhered to, in addition to the `'return' - semicolon expected diagnostics-data-002.mqh 203 4` message appearing when there is literally a semicolon
Hi people. I'd like to know where could I get a free or buy an API that could be used to copy trades from an MT4 platform directly to a website. I bet there is one already made? If not, could someone custom code it or give any other solution how this could be achieved? Thanks in advance!
  Update HST File  (2)
Hello, How can I update the H4 HST File via code? As you can see the file sometimes doens't get updated even for days. Even after many candles have closed in MT4 and History center reflects new candle data. Cheers, Eashan
Hello, I had yet ask this question, but the answer didn't work. I'm making Money Managment for my EA and I need to know/calculate total profits for the current day only and total profits for all previous days (from the begining of the month) I need also know/calculate total balance day per day for