forex forum for traders and developers

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
All lessons of Codersguru: Mql - Metatrader Development Course | All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
Hi everyone, I am now using MQL5 for my indicator. I want to a single sign (e.g. a circle dot, a star, etc..) on top a previous candle which is far 105 bars from the current candle. Please refer to my picture for more detail. How can I do it in MQL5 language ? Thank you so much for considering my
double ema_21[]; double ema_55[]; double ema_233[]; double ema_21_m5[]; double ema_55_m5[]; double ema_233_m5[]; double ema_21_h4[]; double ema_55_h4[]; double ema_233_h4[]; ArraySetAsSeries(ema_21, true); ArraySetAsSeries(ema_55, true); ArraySetAsSeries(ema_233, true); ArraySetAsSeries(ema_21_m5
HELLO friends, please help, after installing an INDICATOR which required that i copy a dll file to mt4 terminal which i did, then the mt4 refused to open, please how do i fix the problem
  MT5 Question  (8)
my broker doesn't have a download for MT5. Can I still download it and set it up for use with my broker ? Broker is:   Ally Invest (Formerly MB Trading) Thx
I have 7 trendlines available on chart I want all of them to rename, I can get its name using ObjectName but how can i rename it
  Money management  (71   1 2 3 4 5 ... 7 8)
Hi, I hope I'm at the right place for this. I am a bit confused about money management. I am working on a strategy that will hopefully bring me 10 pips on each trade. Right now, I am testing on a demo account. My next step will be testing on a mini account (100$). I don't know what to expect...
Hey! I'm new to MQL. I have this simple MA Crossover EA (attached in txt) I'm using and I want to have the Lot Size calculated based of % risk (Given Stop Loss in Pips and account balance). I'm trying to implement the code from
  Does anyone know how this happened?  (60   1 2 3 4 5 6)
Hi. I placed a sell limit order in my real account. But position opened at a level that chart didn't reach to it. Is it possible
Hi, I get this error when I log in to the site: " Financial operations are limited. Please contact our technical support team " I get this error when I try to leave a message from the support department: "Your request has not been sent, please add more information." And I can not put any message in
Hi, Am looking through some mt5 backtest results- and a strategy is showing poor results one hour only 20th hour usa, on the MT5 backtest results graph ( byday of week, hour etc) Can someone explain how to convert the hours on MT5 backtest into USA time- there is terminal time broker time vps time
  How to Subscribe to a MT5 Signal  (68   1 2 3 4 5 6 7)
1. Register a MQL5 account: 2. Open your MT5 platform and go to Menu >> Tools >> Options and click on the Community tab. There you put your Login and Password of your MQL5 account and click OK. 3. Go to the search area of your MT5 platform, on the upper right
Is there any open source library to integrate voice command into MT5
  We CAN NOT predict the market !  (37   1 2 3 4)
We cannot predict the direction of the market nor a point of reference for the market. Because basically the market is very dynamic and is determined by humans , not robots. All we can do is only follow the current market trend , and take immediate action when something happens against the direction
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, I know that true/real HFT with mt4 is impossible due to execution time and how many trades can be placed per ms with mt4. Real STP brokers will have an execution time of 30-100ms where as MM will have execution of 1-10 ms. In order to be truly HFT you would have to have a fix api with a trading
I use MetaTrader 4 - (Released July 2005), I use MetaTrader 5 - (Released September 2010), I use both MetaTrader 4 and MetaTrader 5, I do not use both platform but I only use website
Predict Market Direction (Trade after you predict buy or sell market direction using the technical analysis.), React To Market (Trade if price is pushed to one direction as in support resistance or some sort of breakout trading. You never predict market direction but you react only. ), Both stratgy
is it possible to have EA that places pending or have price levels set at certain points so that if price on chart crosses these set price line it opens orders as follows, buy stop and sell limit when bid prices crosses these set levels and as for sell stop and buy limit open when bid price crosses
Hello everybody, Is there any way to measure cancellations and renewals in the order book (market depth)? I say trades cannot be computed, so I want to measure how players are working passive orders, canceling or renewing orders at a certain price level. does anyone have an idea how to do this
Renko Charts and D1 charts for reality checking have proven to me that it can be a reliable trading strategy for multiple days of trading the daily swing in some markets: the SPX500 and USDollar CFDs are my favorites now. Both CFDs trades during all markets and give repeat Renko chart movement...
  Asset filtering  (3)
Hi Everyone, I am developing a multi-currency mean reversion strategy. I currently use instantaneous filtering to get rid of potential trades where there is high market noise, low volatility, lack of clear trend and particularly high relative volume. This has proven to be effective but I'm also
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...
Hello Forum, I will test a VPS rented here and test signals, EAs, indicators etc.. Furthermore, I would also like to test simple manual market executions per market depth in MT5 (generally also without EA). I hope this is also possible via vps or would I have to make adaptations to the charts? ( in
Can anyone please guide my EA is giving me problems with backtesting. <Deleted>
  Most profitable Trading System?  (86   1 2 3 4 5 ... 8 9)
I have searched a long time though various trading systems. But I did not find a system which convinced me. Maybe some experienced traders could say me, what is the most profitable trading system, what system makes really sense. You could differ the systems for longer timeframes and for shorter...
The 5 fundamental truths about trading where developed and put into paper from the author of Trading in the Zone , Mark Douglas. Here I list these truths and explain in own words what they mean for me 1. Anything can happen. The majority of trades even though deep down know that this statement is
  VPS server. Questions.  (193   1 2 3 4 5 ... 19 20)
Good time! Questions about VPS server operation 1. How do I stop an EA which is on VPS hosting? Point of the Rules of Usage "IV. Rental of virtual terminal The user may temporarily stop and restart the Virtual Terminal from his client terminal and the lease term is not extended. All terminal
  Forecast and levels for Dax Index  (69   1 2 3 4 5 6 7)
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...
  Forecast and levels for CAC 40  (25   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...
I was using <Deleted> MT4 connection to trade BTC/USD The spread seems to be very narrow, compared to other brokers. How do they do it? It is a scam
Yes, No, Interested, Not anymore
  MT5 real FUTURES broker  (25   1 2 3)
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
  Forecast and levels for S&P 500  (471   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...
  Crypto Currencies  (20   1 2)
Where can I find the Crypto Currencies like 'Ethereum, Ripple and Bitcoin' ??
Hi, as you see, I can only connect to Binance-Demo server. how can I connect to my real account on Binance in MT5
  McDonald's  (16   1 2)
The weekly share price stopped the bearish reversal and it was bounced from 110.32 support level to above to came back to Ichimoku cloud to the ranging market condition. Fow now, the price is on testing 121.85 resistance level to above for the reversal to the trendy primary bullish market condition...
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
All need a help with converting type to enum in the code below input int InpMagicNumber = 1111; // Magic Number input string InpTradeComment = __FILE__; // Trade Comment input double InpVolume = 0.001; // Volume per order ENUM_POSITION_TYPE CurrentTrade;
Good day sir. Please give an instruvtion on how to put a deposite into ag trading flatform. I have already real account on 10Tradefx.Ltd .but i dont know yet on how to pur a deposite. Where do i start. Thank you so much more power. Brgds Abram espejo
  Forecast and levels for Nikkei  (39   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...
  Apple  (43   1 2 3 4 5)
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
MqlTradeRequest Request; = SymbolInfoDouble ( Symbol (), SYMBOL_ASK ) - 500 ; Hi guys, I want to set sl price to current price - 500dollar, but that does not work, so how can I write
I want to combine RVI Signal(1) (PERIOD_CURRENT), CCI(PERIOD CURRENT) and Chaikin(PERIOD_M1) into one value and turn it into an indicator. I have never coded an indicator and I need help. Please point me in the right article to read, or code it and paste it if you feel so kind. :D Timeframe of the
Hello everyone, i have a little problem please I want to copy the difference between the last 2 prices in an array, when I display the array , it does not save each price, it saves only the last price in all array cells. as you can see in the attached image void OnTimer () { MqlRates
hey Guys, I am having issues understanding how the ignore flags are working for the signal's filters. Based on the documentation and following up the comments in the standard library module CExpertSignal, it should be possible to ignore the signal generated by filters through the m_ignore protected
Hi all :) Making my own EA according to the No Nonsense Forex method. One of the points in that method is to use a trailing stop based on the ATR score at the time of making the order. My own code was taking the current ATR value instead (Timeframe daily). Largely because i couldnt find how to
Once an EA is developed and optimized for the first time (or if an EA is purchased with default setfiles for that matter), I may feel tempted to re-optimize when I see the EA starts to have a losing streak, but its default parameters MAY still be functioning well (as drawdowns happen). Is it
MqlTradeRequest Request; MqlTradeResult Result; MqlTick Tick; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnTick () { for
So I have been watching a very interesting video series by Darwinex about improving your EA to reflect backtester results in live charts. It seems that the best method is controlling bar opening prices. You program the EA in a way that it processes only bar open tick so this will reflect on a live
So I have it open accepting JSON messages 24/7 but it seems after being open for a certain period of time (this time it was about 1 week exactly) it just stops accepting new messages until I maximize the command prompt window, then suddenly all the previous messages it should have accepted come
I been sending the following request to close a position but it the print_statement keeps returning NONE. what can i do please. if pos.ticket == ticket: request ={ 'action':mt.TRADE_ACTION_DEAL, 'position':ticket, 'type':0, 'price':tick.ask
  Better NN EA  (112   1 2 3 4 5 ... 11 12)
Hi Better has really good EA and is winning the championship Participants - Automated Trading Championship 2007 Profile Better - Automated Trading Championship 2007 What is NN ? Where are the NN threads in this forum? Can anyone here make this EA El cid
  Better NN EA development  (838   1 2 3 4 5 ... 83 84)
Hello everyone, I will start this thread by first stating that if you are a beginner and have no high level programming experience you are better off reading other threads. I intend this thread to be for the very experienced programmers with some Artificial Intelligence background. I am attaching...
Please yell at me if I posted this in the wrong area. Idk why searching has brought zero results on how to post a question Genetic backtesting my EA using real tick data. If I back test over a year of data I run out of RAM and memory swapping kicks in. This makes backtesting nearly useless. It
hi guys im creating an EA that will place a pending order at a specific time,for example lets say i decide that at 3:30 pm i decide that my EA places a pending buy order,however what tends to happen and is the obstacle right now is that,at 3:30 the EA makes the pending order just as instructed,but
Hi everyone, I'm new around here, and just started using the pre-built Expert Advisors (Generate Templates) in MQL5. I don't know much about C++ or MQL5, so I was looking at a pretty steep learning curve, but decided to start somewhere. However, I noticed that there is support for MetaTrader5 using
As you can see in the code, I put the high prices into an array and printed it. But there are differences between the output prices and the prices I see in the parity. This applies not only to "high", but also to others. I can't understand why? #property copyright "Copyright 2022, MetaQuotes Ltd."
Hi, I am a newbie when it comes to programming in mql4. I have taken an existing indicator, "cci-t3-divergence-indicator" and have tried to modify it to print a coloured histogram rather than a line (such as in CCI woodies). The attached mq4 file compiles with no errors, but when I add it to a
  Oscillators  (36   1 2 3 4)
Does anyone have a large collection of oscillators (works best in a trading range) that he/she put together? Maybe we could start a thread where all oscillators are gathered. And let's go a little beyound RSI and Stochastic
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 have a request for converting an indicator from MT4 to MT5 which I would really appreciate. The problem is this: I started to learn trading and developing my strategy more than a year ago. I manually backtested and forward tested a strategy that includes an indicator called “Cyan 2 High Pass
I'm trying to write a custom indicator that relies on finding the average value over a past number of bars, but I'm having trouble figuring out how to write the function, although it should be simple, but I don't see an "average" function prebuilt into mql4 and I don't think I would need to save
Hi Traders/Devs, I am trying to create quite a complex indicator that pulls data from the 28 major pairs and I keep getting error 4806 when I try to copy the handle data to the buffer, can you see what is wrong? Pairs is an array with lists of pairs, in this case I tried to get the RSI value for all
Hi. I want to check account used margin so I write this code and use it as an indicator: #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Blue double Buf_Exposure[]; // Declaring arrays (for indicator buffers)
I think this indicator only draws a line up until bar 2 but I was honestly hoping that it draws up until bar 1, and still be non-repaint. Can this be fixed or is there an alternative similar to this ZigZag-nrp? #property copyright "Copyright 2022, MetaQuotes Software Corp." #property link
[Image] How can I do something like that? With CWnd, CPanel? Or there's another way to do it? Before someone clever says that if I don't post any code blablablabla.. I am now asking for code, I am asking for a way to do it: maybe some article, some example or even some functions to look for that
Hi, i want to get the value of the "SimpleMAOnBuffer(rates_total,prev_calculated,0,InpSignalMA,ExtMacdBuffer,ExtSignalBuffer);" but u only get 105577.0 and i want the value from the curve, can someone explain me how ? //+------------------------------------------------------------------+ //|
Hi, I had a indicator that was working that no longer works. I ran on metaeditor to see for errors, and I got the following error. 'Period_W1'-cannot convert enum    [on line 22] Any suggestions on a fix? Anyone?
Hi everybody, I am trying to organize the "Data Window" of Metatrader by adding some descriptions of indicator_separate_window. Please look at the following screenshot: As you can see, for the Market data there is a short description "EURUSD Daily" but for the separation for the indicators is a
I just need a little help to get off the ground. I'm new to MQL5, and I have copied code from here and there. I am missing something in my code. The code compiles, but the indicator line does not show. Thanks. //+------------------------------------------------------------------+ //|
Hi I have this indicator that I want to use. If I'm not mistaken it would display lowest and highest price of certain number of candle. I have a problem with this indicator and cannot use it on my EA. Is there another similar indicator out there that works just like this
Trailing Stop by Fixed Parabolic SAR : Modified to allow direct specification of the starting point of the Parabolic SAR. Author: Yoshihiro Nakata
SAR Color Alert : Colored SAR indicator. Alerts on color change Author: Vladimir Karputov
New article How to create a graphical panel of any complexity level has been published: The article provides a detailed explanation of how to create a panel on the basis of the CAppDialog class and how to add controls to the panel. It includes the description of the panel structure and a scheme of...
Automatic Risk Reward box create : An indicator that draws a Risk/ZReward Box Automatically on your chart Author: Faeze Bakhshayesh
The Predictive Moving Average : The Predictive Moving Average was created by John Ehlers (“Rocket Science For Traders”, pg.212″). Author: Andrei Novichkov
MA on DeMarker Arrow : iDeMarker (DeMarker, DeM) indicator smoothed with iMA (Moving Average, MA). Author: Vladimir Karputov
SSL Channel (TradingView) : Converted SSL Channel by MissTricky from TradingView to MQL4 Author: Lee Chee Tat
Dolly_Graphics_v11-GMTShift: An indicator of support and resistance channels. Author: Nikolay Kositsin
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...
Channel N Bars : Channel of 'N' bars at 'Low' and 'High' prices Author: Vladimir Karputov
New article Data Science and Machine Learning — Neural Network (Part 01): Feed Forward Neural Network demystified has been published: Many people love them but a few understand the whole operations behind Neural Networks. In this article I will try to explain everything that goes behind closed doors
New article The Indicators of the Micro, Middle and Main Trends is published: The aim of this article is to investigate the possibilities of trade automation and the analysis, on the basis of some ideas from a book by James Hyerczyk "Pattern, Price & Time: Using Gann Theory in Trading Systems" in...
New article Neural networks made easy (Part 2): Network training and testing has been published: In this second article, we will continue to study neural networks and will consider an example of using our created CNet class in Expert Advisors. We will work with two neural network models, which show
MCDx : Some call it as MCDx Smart Money Indicator. It's just modification from RSI indicator. Author: Lee Chee Tat
LSTM Neural Network: Long Short-Term Memory Neural Network - for time series analysis. Author: Shephard Mukachi 
When I place my EA , my objects repaint or vanish and sometimes appear again after sometime. What seems to be the problem? void OnTick () { if ( TimeCurrent ()==Time[ 0 ]) { int s = iLowest ( Symbol () , 0 , MODE_LOW , 75 , 1 + 40 ); ObjectDelete ( 0 , "s" ); ObjectCreate ( 0 , "s"
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
int OnInit () { Comment ( "Today is" , DayOfWeek()); Comment ( "Balance =" , AccountBalance()); return ( INIT_SUCCEEDED ); } After entering this code I get this: (screenshot) I want "Today is" and "Balance" to be written in a row. How can I do that? (c) Sorry for stupid question, I am totally
Hi everyone I have an indicator that shows different between in real chart and when backtest. This one is from real chart, and this one is from backtest chart, In the setting menu there's a setting used for higher timeframe. My chart is M15 and the indicator using M60. At first, I thought that
I seldom worked with indicators as far as EA is concerned? All I did was manually past indicators on charts when I need them even while working with EA. This can be tasking when back testing the EA being designed. What exactly is iCustom indicators? Are they different from the indicators we manually
Hello everyone, I'm wrinting an EA which has a strategy which open a lot of pending orders. Before sending the command to open, I'm checking if there is enough money. The problem is when some pending orders are triggered there is not enough money, so the strategy tester delete them and close all the
Attached is an EA I coded, which does need a Forex account that allows hedging for it to be useful. Putting it online here for others to use is simply to give something back to this forum and as a way to say thank you. It is a "Trade Manager" type EA, not a trading strategy. It works as follows: For...
Hi, I need to get if is candle bear and bull. I found some code but not works. bool bullish = Close[ 1 ] > Open[ 1 ] && Open[ 1 ]; bool bearish = Close[ 1 ] < Open[ 1 ] && Open[ 1 ]; I need to find if candle is white is bearish and if is black is in bullish Check attachment
Hi there, could someone point out what's preventing this simple code to compile? struct ValueStruct { string field1; ValueStruct( string f1) : field1(f1) {}; }; class Complex3ValueStruct { public : ValueStruct mVs; Complex3ValueStruct(ValueStruct& valueStruct) : mVs(valueStruct)
i made this simple panel as below it have one label and two button when i press one of them the other will be hidden but when i click at place of hidden button it still work i don't know why mqh file : #include <Controls\Dialog.mqh> #include <Controls\Button.mqh> #include <Controls\Edit.mqh>
Hi all, so I am new to MQL4 and not really great at programming overall. Anyway, I am trying to learn from a tutorial (this one: ) and there seems to be some stuff there that doesn't work. I
How possible to download a jpg image and for that image to be loaded into a chart? Charts only load PNG and BMP so image then must be converted somehow. Does the newer image library support image conversions?
  Usefull links/threads/tools  (54   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
Is it possible to use mt4 indicator to turn on and off the Autotrading button based on condition
I am developing an EA to take over when signal copying run into trouble. I need to disable the copying to do this but I keep getting error 4060 (Function not confirmed). Below are the lines I used to try it. Any help will be appreciated. long Flag =