forex forum for traders and developers

Hi Guys. Something weird has been happening the last 3 times there was a power / electricity outage, and I restarted MT5 once my computer was up-and-running again after the power / electricity came back on. Last night the power went out again, and this morning the same weird occurrence when opening
Hi, What events are triggered/generated when MT5 gets disconnected from the server and then reconnects? OnInit? OnDeinit? OnTick? How can I get/catch the error code? Thanks
so i wrote ea and after a long torment it managed to work on the tester but it doesn't work on live data. can the reason for this be the warning "ordersend value should be checked"? also in the expert it says "abnormal termination". confuses me because it works in a tester but not on live data. i
I have been testing using two demo accounts and two virtual servers at a cost of $10usd a month. I‌f i now want to run live trading, can i move one of these VPS to my real account? or do I have to cancel and re-register a new VPS at a cost of $10?
Hello , how do one recognize a valid support and resistance from a false one thanks
dear all, I have been running up to 18 MT5 terminals without problems until recently I expanded and some terminals were running same profile configuartions. those terminals that were sharing same profiles started crashing. I believe I have narrowed it down to the terminals that are running same mix
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 every one I want to register as a seller. when I am going to change relevant details of my Profile, I enter my phone number but I don't receive any code to confirm!!! may someone help me? thanks a lot
2021.05.24 06:07:03.309 MQL5 Market failed download product 'Not a scam' ( send failed [403: Forbidden])
Hi just prurchased my VPS and it will not migarate. I keep getting migration failed when I try to sync all. I'm not sure if this is an issue but My VPS appears to be using the Mumbai server when I'm based in the UK, I can't see how I can change this. Any help would be appreciated. Screenshot
Dear Team, I have downloaded MT5 and MT4 from your website but I am unable to open it. If I double click on the icon created on my laptop as I installed the MT5, it doesn't read let alone to open the app. I have been using this app for the past 2 weeks but I began experiencing this problem just this
So I have what seems to be a tricky indicator. to code. On the 5 min time frame I have a multi RSI indicator of 15 min and 30 min. On the 5 min chart when either the 15 min or 30 min RSI goes into an overbought area (above 70 level) then I have an arrow paint on the 5 min chart. So to trade , I
  Detet the trend using ZigZag  (15   1 2)
In this code "" i learn how to detet ZigZag extremum. How to know if the last detected extremum is high or low? How to code: if last extremum was high then it's downtrend and if it's low then it's downtrend? Thanks
Hi everyone! I've been working on a price action EA and I would like to optimize on strategy tester different timeframes (i.e. from PERIOD_M1 to PERIOD_D1) but I cannot make it works. I created a input variable for timeframe in the Input Variables input ENUM_TIMEFRAMES TempoGrafico; and tested it on
I have some broken code (it was working until I made too many changes, and didn't save the original!!). I won't upload it as it is 1,000's of lines long, across many files and classes. Anyway, the result is that MT5 dies after calling a simple return statement (the result in this case is a long)
15 min forex trading system with stochastic momentum index Source by Nico This system is based on Metatrader charting. The tools needed are the following: 15min EURJPY chart , Heiken Ashi , SMI [STOCHASTIC MOMENTUM INDEX by William Blau] First indicator window (Settings: 14,10,14,5)
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...
A good strategy should answer 5 questions: 1. Does our entry occurs in decent volume zone ? 2. Is there enough space for Candlestick to grow? (Avoiding OverBought and OverSold Zones). 3. Are we Aligned with trend? 4. Can we evaluate easily with naked eyes? 5. Is there low Risk Involves.? And Here's
Hi, Is there a comprehensive list of Brokers that support MT5? Regards, Kirk
Hello guys I have been trading for some years,,, but almost I spent my time just to exercise and master my strategy,, Some months ago, I interested to join mql5 forum for getting new idea, while make my strategy better and better One of some point that I notice regarding compare my account with
Hi i want create EA that calculete entry volume for each postion according the risk percentage. i use belowcode: Input_Volume= (((UserBalance*(Risk_Money/ 100 ))/(Stoploss_point/ 100 )) * ( SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ))) / ( 100000 / AccountInfoInteger ( ACCOUNT_LEVERAGE
In MT5's strategy tester,  What is the difference between  "Every tick" and "Every tick based on real ticks"   Which one is the most Accurate? 
I just started this thread as a continuation of the talking made on this topic (we can read it). Or 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
Simple Ichimoku System - rules for the systems. Introduction. This indicator was created by Tokyo newspaper writer before World War II who had the pseudonym called Ichimoku Sanjin which we can translate as “a glance of a mountain man”. Ichimoku means “one look”; a chart of this style is referred to...
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...
Most of trader pursue profit and forget a risk behind of their trading so, i came here to know your opinion guys.... what is really important in your trading or signal that u will copy, is it profitable or Minimize the Risk ?? Thank you guys
  PriceChannel Parabolic system  (309   1 2 3 4 5 ... 30 31)
Some people asked me on the other forums about re-enter. But I am not using any indicator for re-enter. So I decided to create some simple trading system with re-enter based on indicator's arrow on the chart. Let's name it as PriceChannel Parabolic system. M1 timeframe. This is image for EURUSD for
Hello, When I copy a signal, I only have these options ( attached image ) But how can I multiply the risk please ? By x2 or x3 for example Thanks a lot! :)
  New Dolly  (258   1 2 3 4 5 ... 25 26)
After repeated requests to update Dolly to handle the new extra digit platforms i have decided to totally rewrite Dolly ( 2400 lines of code ) and i have taken the opportunity to include many new features to make the use of Dolly more user friendly, features such as 3 built in trend MAs / Entry Exit...
how to copy signals with desirable volume
I am searching for volatile stock where it is good to scalp anyone who know the best stock to scalp ? let me know thank you
Yes, No, Interested, Not anymore
  Crypto Currencies  (20   1 2)
Where can I find the Crypto Currencies like 'Ethereum, Ripple and Bitcoin' ??
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 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...
Hi, as you see, I can only connect to Binance-Demo server. how can I connect to my real account on Binance in MT5
  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
Is it possible to get binance futures historical data and live feed on metatrader5 ? if yes, how would I go about doing it
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...
Hi, How can I get de expiration date from a Future Index, like the Description window (attached image)? I tried use the code below, however dind't work. datetime m_Expiration = (datetime) SymbolInfoInteger (_Symbol, SYMBOL_EXPIRATION_TIME); the date returned is D'1970.01.01 00:00:00'
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...
  Forecast and levels for CAC 40  (24   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...
  The fastest economic calendar.  (66   1 2 3 4 5 6 7)
Hi all, can you tell me the fastest economic calendar where news are published online (forecast, current events)
Happy New Year. So as not to have to open a theme every month, I made one for the year at once. Just under 5,000, but it looks like 5,000 is coming
Hi, My OrderSendAsync returns true (sent ok) but the order isn't executed. I suppose this is because of request.deviation (because if I put a higher value, then orders are executed). How can I determine, for sure , that my orders are rejected because of a request.deviation that is too low? Thanks
  Symbol Point Value  (27   1 2 3)
Morning! Can someone tell me how MT5 calculates the symbol point value using the SYMBOL_POINT enum. For example the result of the following: // GET POINT VALUE OF CURRENT SYMBOL double symbolPointVal = SymbolInfoDouble (CurrentSymbol, SYMBOL_POINT ); What is the calculation that it is doing to get
Hi, I have tried several panels to help me react faster than the buy and sell option built into MQ5, but regularly, the panel does not respond anymore, I am forced to delete it and add it again to be able to use it... and I don't know why, I have tested without putting any indicators, only the panel
Hi I need your help... i need E-books or learning material of how to create an Expert Adviser using mql5
Is it possible to create a drop down menu that shows you available pairs and changes an indicator's values depending on what pair you pick from the EA settings drop down menu? Would that be variables? I haven't even tried messing with variables yet as I don't understand what that's about. I only
Hello Guys Regarding with my scalping strategy, in very short time I am looking for script to close all order whether it profit or loss... with one click.. Thank you
Hi there, I've tried to build a notification following the MQL5 guidelines, that's something like this: string CC= StringFormat ( " [" ,CustomComment, "]" ); string PTC= StringFormat ( "Positions to close: " ,TC); string LS= StringFormat ( ", loss: "
Hi, I want to activate trailing stop loss for my trades in MetaTrader 5 using Python, however, I cannot find any built-in function in MT5. Do you know what I must do? Thanks
How do I make an EA to trade exactly the same on "open bars" and "Every real tick" settings on history? I did create a function that only allows the EA to trade on the first tick if (iVolume(Symbol(),PERIOD_M15,0 )!= 1)return; But I get a diffrent equity graph than when setting the settings to
  Moving Average  (8)
``` void OnTick () { //--- double MA[]; // array for iMA indicator values //---- handles for indicators int MA_handle; double open = iOpen ( NULL , 0 , 0 ); double close = iClose ( _Symbol , PERIOD_CURRENT , 0 ); double Ask = NormalizeDouble (
As the title suggests its supposed to only fire of a single trade per candle. Im guessing my loops have an issue or something I disregarded. Can someone with fresh eyes kindly assist. #include <Trade/Trade.mqh> #include <LotSizeCalc.mqh> //enum IndexList{BUY=1,SELL=0,}; //input IndexList PROGRAM =
  Closing graphs  (8)
Hi; anyone know how close all graphs at same time? tks
Hello, I am new in MQL5 programming language and creating a simple expert advisor . The problem is I've placed an order and then modified using Stop-Loss and Take-Profit. But I want to remodify my Stop-Loss and Take-Profit for the same order on specific market condition. But I can't do that. It's
Hi Is it possible to calculate in sequence; 1. Market low. 2. then a Bounce. 3. then a Pullback. 4. then a Break upward. If so, were would I begin
Hi. I would like to obtain the price values, up middle and low, of a bollinger indicator to send them into a csv file in real time to feed the data to an external program. I've already have the mql5 program to send the data using a modified program that saves ticks into a csv file, I just need some
I would like to convert this part of code taken from an old script in mql4 to mql5 but inside an indicator. I attach the mql4 code that I want to convert and my attempt, I also attach the mql5 file necessary to submit the code but it contains the part of script attached below. MQL4: double work[][ 3
  Momentum indicator  (280   1 2 3 4 5 ... 27 28)
Can someone guide me to some info on the use of this wild looking thing, I understand it can help determine the change in the slop of a MA.
If anyone could help clarify if this is possible would be greatly appreciated! Thank you in advance
  Everything about RSI  (1453   1 2 3 4 5 ... 145 146)
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": Overview The Relative Strength Index ("RSI") is a
  Parabolic SAR indicator  (288   1 2 3 4 5 ... 28 29)
I am continuing posting information about indicators. So, we have information about Stochastic indicator We have the thread about Momentum indicator Now something about Parabolic SAR. OverviewThe Parabolic Time/Price System,...
Hello all, I created an MT5 indicator lately that is drawn in a subwindow. For some reason, a bar is drawn the subwindow that I do not expect. See image below: I converted this indicator from MQL4. The multi-colored line at the bottom of the subwindow should not be there. I hope you can help me spot
  please give me a help  (13   1 2)
Good morning. I wrote a code, but MT5 tell me ——2022.06.07 10:03:04.912 ask (USDJPY,H1) array out of range in 'ask.mq5' (276,22); I add a line at 275: ArrayResize(sig_USD,shiftbars); but it does not work anyway. can you give me a help please
I have tried dragging and dropping stochastic on RSI but it doesn't show me "apply to" option in stochastic. What can I do? Thank you
  iMAOnArray  (4)
Hi everybody! What does mean items, Total, and elements in iMAOnArray? double iMAOnArray( double array[], // array with data int total, // number of elements int ma_period, // MA averaging period int ma_shift, // MA
As they say all new is long forgotten old. I have not seen good indicators for a long time, almost all indicators are being redesigned, for example I can find more than 100 varieties of RSI on the Internet, although it is the same RSI, just arrows, lines, etc. This applies not only to the RSI but
Hi guys. I had this indicator on MT4 and now I need x MT5. Anyway able to code x it? It just mark the "raids", wick of candles that took a swing liquidity. I got the mql code x MT4 but I'm not able to bring to MT5. Thanks in advance x ur help
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...
Hi community. I would like to have a 2 buffer histogram on a separate chart so that I can display bars with 2 types of styling from the 2 buffers. In reality, only one bar will be displayed at a time for an index as one of them will have a zero value for that index. This is just like how it would be
  QQE Cross over alerts on screen  (46   1 2 3 4 5)
Hi Can anyone modify the QQE to place an arrow when there is a crossover ? Thanks
This looks for potential price and indicator divergences and draws lines to show us where its looking at. When the indicator is loaded on the chart all the historical info gets drawn as expected but if left on the chart and a new one shows up no lines are drawn. If anyone can point me in the right
Trickerless 6.22 : Specialist EURGBP Author: Lulus Arga Kustyarso
Listing all MT4 Signals' properties to a CSV file. : This simple quick & dirty script code will output a CSV file of all the Signals' properties as reported by the MQL4 Trade Signals functionality. Author: Fernando Carreiro
New article Using limit orders instead of Take Profit without changing the EA's original code has been published: Using limit orders instead of conventional take profits has long been a topic of discussions on the forum. What is the advantage of this approach and how can it be implemented in your...
Keltner Channel Oscillator: The widely known Keltner Chsnnel Oscillator in the new visual version . Author: Mladen Rakic
New article Data Science and Machine Learning (Part 04): Predicting Current Stock Market Crash has been published: In this article I am going to attempt to use our logistic model to predict the stock market crash based upon the fundamentals of the US economy, the NETFLIX and APPLE are the stocks we
Tradeopener : opens many trades Author: Rando6696
At random Full : The Expert Advisor is a joke: the position is opened randomly. Now there is a Stop Loss, Take Profit and much more Author: Vladimir Karputov
New article DoEasy. Controls (Part 5): Base WinForms object, Panel control, AutoSize parameter has been published: In the article, I will create the base object of all library WinForms objects and start implementing the AutoSize property of the Panel WinForms object — auto sizing for fitting the
Forex Fraus (for M1): The Expert Advisor is based on the Williams Percent Range indicator. It sells in the overbought zone and buys in the oversold zone. Trailing Stop and operation timer are attached to it. Author: Dima-Z
New article Developing a trading Expert Advisor from scratch (Part 10): Accessing custom indicators has been published: How to access custom indicators directly in an Expert Advisor? A trading EA can be truly useful only if it can use custom indicators; otherwise, it is just a set of codes and
  Experts: EA Trix  (4)
EA Trix: An expert advisor based on the TRIX ARROWS indicator. Author: Vladimir Karputov
Nadaraya-Watson estimator : Nadaraya-Watson estimator Author: Mladen Rakic
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...
At random : Expert is a joke! The position is opened at random! Author: Vladimir Karputov
VIDYA N Bars Borders Martingale : Martingale based on custom indicator 'VIDYA N Bars Borders' Author: Vladimir Karputov
Hey! Im having problems with the ModifyOrder(); I have my strategy that sends Shorts and Longs of 2 kinds each, and when its come to a certain point, I want to modify the SL to the Open price. I think the problems comes when I call the trade open in the next way. ( OrderSelect
I need to send my MT4 trades to CTrader. How do I run this files?
Morning all, So I'm working with StringFormat() and wanting to pass various double figures (i.e. prices, moving averages etc) into a string format. I know how StringFormat() works in MQL4 except how to accommodate for 5 an 3 decimal place prices. I have the following: StringFormat("Moving Average
Good day, Suppose my first indicator is as follows //+------------------------------------------------------------------+ //| One.mq4 | //| Copyright 2022, MetaQuotes Software Corp. | //|
Hello Everyone, I am coding an EA, this EA had a calculating lot size function, when trying to backtest my EA my order was rejected and got error 131 Invalid trade volume, when I checked what were the trading volumes that the EA used there was nothing strange 0.1 or 0.01 or so, nothing particular
Hello, In OnTick() function of my EA I have if statement to check an entry condition such as if ( iMA ( _Symbol , PERIOD_CURRENT ,ii_MAPeriod, 0 , MODE_SMA , PRICE_CLOSE , 1 ) < iClose ( _Symbol , PERIOD_CURRENT , 1 ) && iMA ( _Symbol , PERIOD_CURRENT ,ii_MAPeriod, 0 , MODE_SMA , PRICE_CLOSE , 2 )
I have changed xml files and made black version of metatrader4 on Android. I begged the developers for a year and I got tired of waiting, so you can see the results here. If you need I can make a clone of the app, so you can have installed two version together, just ask me
When I change my phone ( Xiaomi ) to Dark Mode and open Mt4 app, background menu in symbols is broken. Please tell me how to fix ? Thanks
hello, i apologize if this question is too elementry for some of you. i have resently found out that Tick and Point are different. and i can not modify my order if it is not more than a Tick. (i get error 1 , for not doing that currently) in mql5 we can call TickSize() to get the size of the Tick in
Good afternoon, I've written a code for a zigzag loop to check for previous highs and lows. What I would like it to do is check if the previous high is lower than the high before that, And that the high before that is higher than the peak before that. It doesn't seem to do that. Can anyone tell me
I wanted to ask if anyone knows a risk management program for MT4 which is able to do the following: I want to be able to set a fixed stoploss x pips under/above my entry before entering the trade WITHOUT having to drag a line. I also want to be able to set the risk per trade so the program
I set up a new VM with MT4 and on this when I use Comment("something") the lines are overlapping, e.g. below. I have a workaround which is to change Windows 10 trying to "fix" blurry displays. It does make the RDP session look very crisp and lovely, *but*, MT4 ends up looking garbled as per this
  Unexpected order  (21   1 2 3)
Hello, Among other conditions this condition has to be true in order for the EA to place an order. However, this condition isn't true and the order is placed while testing! iFractals ( _Symbol , PERIOD_CURRENT ,MODE_LOWER, 1 )== 0 What is wrong?!! Result picture is attached to further illustrate
Hi all! So i have been trying to implement a simple trading strategy based on a custom indicator. If "Forexprofits" prints any value then go Long, if "Value 2" prints anything then open a short position and close all long positions. (attachment 2) Unfortunately, although I think i applied the
Auto Close/Reset/Restart all positions when some profit is done Hi Everybody, I use many martingale MT4-EAs. Many times there is situations when the current Profit(because of still open negative positions) is negative but the current Equity is higher than the time when last martingale cycle was