MQL5.community forex forum for traders and developers

After years of study, coding, research and development I think my arbitrageur trading algorithm for futures contracts is ready to go live? <moderator's note: advertisement is prohibited on the forum> How do I get financing? I also coded a C # version for the Ninjatrader and Multi Chart .Net
I was just wondering if it was possible to get Python to respond to ticks in a similar manner to the MQL OnTick() function ? Thanks Mark
My 2 signals show this warning " No swaps are charged on the signal account " and Reliability dropped But swap are charged on the account, please fix the issue
On the 1 min EUR/USD chart, on the 15.06.2021 around 16:30, in my strategy tester there appears to be a huge amount of immediate sells opening low and buys closing high for no reason what so ever. What is up with that? The strategy worked fine on every other day beginning June until this day when it
Hello Guys, I have been trying for several days now to receive my MQL5 ID in the MT5 Android phone version but still not working. I tried getting it from Settings but not working? the field shows NULL. I also tried logging in from Messages but not working. Then I tried registering in order to get
if some operations in scripts fail, the whole script will fail and halt. But when I remove and attach the script, it works. So just wanted to know if there is any way to re-attach the script from mql like handling an exception. Something like: result = do some operation; if(result == Fail){ restart
Good luck to all my friends. When I run the strategy test on mt4 HTS, the test speed gradually slows down. I would like to know how to proceed with the test while keeping the speed normal
Hello,, Can anyone transfer CryptoIdx chart to MT4 or MT5 chart? I'm trading on Binomo and I've seen the indicator. unfortunately not shared
Is it possible to have TS5 make a sound when a Signal Provider places a trade? I get the "OK" sound when I place a trade but, not when the Signal Provider places one. Thanks
Hi I reset my password and MQL5 create this AUTO login for me but the login does not work, how can I change the login but not the password? the reason is on MT4 i cannot login using my email, just LOGIN and its not working. thanks
Hello! Could someone please assist me with the issue of making a $15 VPS rental payment? This has been an unresolved issue since 7.8.20 1. What payment method do you want to use? I tried all of my payment options with Paypal (4 cards and my bank account), but they all failed for some reason with
Hi how can i set up a copy service with mt4 acounts so my familey can the same deals as me to save me doing them seprately ? Thanks Dave
I'm following some signals and I would like to adjust the volume manually on signals where MaxSpool loaded is low and/or DD low. I realized that you are following the provider, leaving it proportional according to his balance. Can I set my volume preference for signals manually
I would like to use CHashMap to store key/value pair where key will be string and value will be a struct variable. Trying with below code, but its not compiling. // Include additional header #include <Generic/HashMap.mqh> // User defined struct struct MyStruct { string symbol; double
Guys happy coding and Trading. I would like to ask your ideas and knowledge on how to get the above SUBJECT. I have that module when I doing my visual studio project. But here in mql5 I don't know how. I try to google for 2days but nothing happen. The scenario: my EA are completely finish and
  Best method to identify trend in forex  (72   1 2 3 4 5 ... 7 8)
Hi guys, I just start a trading discussion about what the best method to identify trend. We know there are three type of trend: 1. Up Trend 2. Down Trend 3. Sideway. How we identify Trend? Thanks in Advanced.
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...
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...
With everything working for months, VPS still on, subscription paid for, why did my trades that were opened by a Provider not closed today when Provider closed the trades? Blackwave Pacfic, USDJPY trades. How does one get direct support from here
  Scalping system  (184   1 2 3 4 5 ... 18 19)
Recently I was experimenting with a couple of indicators used for a non-scalping system presented by BigBear - https://www.mql5.com/en/forum/177573 I was debugging one of the indicators when I switched to the M5 chart and noticed a nice setup for a quick short trade... hmmm.... probably a...
Hi again, The Multiple Regression Analysis and Forecasting template provides a solid basis for identifying value drivers and forecasting time series data. While it utilises a range of commonly employed statistical measures to test the validity of the analysis, results are summarized in text for ease
  Trading System by Xard777  (3887   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
  Something Interesting to Read  (78   1 2 3 4 5 ... 7 8)
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...
blblablabl Hello, I use MetaTrader5 library for python. I call connectToAccount from main function. I don't understand why MetaTrader5's window needs to be open. If I block this opening my script sleeps until the window is opened. Is there a way to make it work without opening the Mt5 window ? Thank
  For "Solar wind" believers  (398   1 2 3 4 5 ... 39 40)
Since it seems that some new reincarnation of "Solar wind" is appearing at least on a weekly basis, and since it seems that is useless to repeat over and over that it is a wrongly coded Ehlers fisher transform and that it is one of the most famous re painters, here is this nice little thread in
  PriceChannel Parabolic system  (298   1 2 3 4 5 ... 29 30)
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...
Hi all, I've been trading a live account for just about 4 weeks now and managed to tripple my account. I started with a $100 account at FXDD and my account balance is now $312.65 with a Floating P/L of -$48.50. This does not bother me much, because I'm sure the EURUSD will go down on Monday. I'm...
  Daily Breakout EA  (146   1 2 3 4 5 ... 14 15)
Hello Trading Fellows. First, look on my strategy: - Everyday on 0:00 GMT I make two pending orders: 1. Buy @ yesterday high 2. Sell @ yesterday low TP and SL for example: TP:20pips SL:15pips end. On GBP/USD, TP: 20pips, SL: 15pips in 32 days I have: 8 loss = -120 pips 25 win = +500 pips On another...
  Harmonic Trading  (5982   1 2 3 4 5 ... 598 599)
Hello all I have tested many strategies and many other stuff but i did not found them more accurant then basic analysis of the market. i mean,the Price Patterns. 1. harmony indicators: here and here. 2. candelsticks reversal patternsis here. 3. Price Patterns: - Price Patterns (Gartley,Butterfly,Bat...
Hello.I hope you are good.Am new in programing and i have problem about crossover. I use two différent crossover of moving average.I would to code in EA after the first crossing the robot waits for the second crossing to open a position. If after the first purchase crossing the second crossing which
  Trading stocks  (3)
Hi there, I am new here and i want to trade stocks rather than forex/currency. I have not been able top find out where and how buy/sell platform Anyone please guide me Thanks \ JC
Hi, I need futures exchange data to use a volume profile indicator on MT5. I've only found a broker with futures data, but this broker gives the DAX data delayed on the demo account . Do you know if exists another broker that provides futures data on demo account with DAX real time? In the other
The international broker has expanded its exchange trading offering. Using the multi-asset platform, traders can invest in securities of global corporations, such as Allianz, BMW, Bayer, Siemens, Heineken and Royal Dutch Shell. This addition to the previously available portfolio of US stocks, brings...
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...
  Autotrading Help  (8)
Hi all, I am a trader who would like my followers to copy my trades in the US stocks market. I am wondering if I could get any information on Auto/Copy trading please? I am new here and greatly appreciate any help given. Thank you
  We use Bitcoin ;)  (481   1 2 3 4 5 ... 48 49)
Seems we need a Bitcoin thread to discuss about due the growing popularity of this virtual money. Forex-TSD is studying the idea of take Bitcoins as payment method and having our thread to discuss about pros and cons sounds as good approach. You will find more information on the official Bitcoin...
  Forecast and levels for Nikkei  (36   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 , i'm wondering if i short the bitcoin at 35000 and my target the price crush to 1 dollar , how much i'm gonna earn
Is it possible to get binance futures historical data and live feed on metatrader5 ? if yes, how would I go about doing it
Crypto Currency. What is the reason for BITCOIN fall? Is it China Beijing on Tuesday ban financial institutions and payment companies to provide cryptocurrency-related transactions? Elon Musk statements about Bitcoin? Or because its a Beast of No nation? To avoid virtual e currency, stop money
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...
Moderator's note. Recommendations are not allowed in the forum
Dear ALL I find that if I use MT5 for trading the futures, I can't separate multi-strategies independent in the futures symbol. For example: I have 5 strategies with five different magicnumber but all trading in s&p 500. In MT5, it will combine the order to one. And it will rewrite the magicnumber
  Forecast and levels for CAC 40  (22   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...
Hi sorry but I'm really in the beginning ... I can't see the stock market but only currency exchange. Depends on the server where I am connected or wrong? Thank you
Hello, I believe if I run an EA in an ecn account then market orders open in two stages: 1- The order is first opened and then only after that the 2- the stop-loss and take profit are placed. Most of the time this is not a problem but occassionally my stop loss order and take profit order are not...
Hello. I'm looking for a programmer who is willing to make a trading robot with me. I got a system but I can not program in mql5 (i can't program at all). Whether my system will work on a robot I don't know, that's why I need to get it build first. But we can fine tune it together and in the end
double NORMALIZE( double DOUBLE) { return round (DOUBLE/ 0.01 )* 0.01 ; } VOLUME= MathPow (FACTOR, PositionsTotal ()- 2 )*( MathPow (FACTOR, 2 )- 1 )*P.Volume(); Alert (VOLUME); // result : 0.6333333333333334 Alert (NORMALIZE(VOLUME)); // result : 0.63 VOLUME=NORMALIZE( MathPow (FACTOR
I am doing the following (the code below) but I only see zeros whith "Comment output". I don't know if it is because " CDealInfo " does not work in test mode, or i'm doing somthing wrong. Can someone tell me please? Thank you!! CDealInfo dealInfo;
Hi Guys, I need an EA that opens positions whenever price hits MA using the following parameters: 1. If the candle that crosses the MA is red, check to see if the last 2 candles are green; If the candle that crosses the MA is Green, check to see if the last 2 candles are Red. Check if the fast MA
I'm trying to write the code that would count the times something happens. It doesn't matter what. You don't need any existing code. I'm just learning and trying to understand scope and the order that things are processed. It's all still pretty new. I just want to write, for example: if(a == b) { do
I need to load an indicator in Strategy Tester to handle mouse click events. How can I do this? Or handle a click event without the direct indicator in the Strategy Tester, but from what I've researched, there's no way to do that
Hi everyone Hello friends I want to learn how to write an expert. The few pages that are available for training are very general and do not teach anything in practice. That's why I ask you to help me with this example. I want to open two trades at the first moment, one sell and the other buy. Each
hi there I'm using an AI software to generate strategies and at the end of producing line, I have too many EA's to run on a demo account so I need some EA or script to install them automatically or if there's not Is it possible to write one for such a task
Hi All, Please advise where can i find a list of paid and free EA for stock trading platform ? Are they the same as for forex ? Thanks
My strategy is simple To buy, Start a B1 buy anywhere with an L1 lot, SL1 stoploss and TP1 takeprofit If the trade hits the TP, we restart the operation otherwise we launch the 2nd B2 purchase with an L2 lot, an SL2 stoploss and a TP2 takeprofit If the trade touches the TP, we start the 1st
I have the following code to get profit of last two closed positions i can get the profit of last position but not the second last one any ideas on how to get profit from last two positions in mql5 void OnTrade () { static int previous_open_positions = 0 ; int current_open_positions
Hello! I am demo-testing EAs in multiple pairs. Sometimes I want to modify the EA inputs in all of the charts at the same time and it's very cumbersome, boring, and time-consuming, to -press F7 to open the EA -click over to Inputs Tab (because it always open in the first About Tab) -click Load to
Hi every body can any one tell the code order open when candle open and close order when candle close
In backtest everything's working properly: AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)) returns 1 (true) On a real or demo account: AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)) always returns 0 (false)
Hi, I am developing an indicator and I don't understand the OnCalculate event at all. From what I can see, this indicator runs every time there is a new tick on the chart. So, I calculate for all candles the indicator (I limit it to 1000 candles) for ( int i = ( int ) MathMax (prev_calculated- 1
I have a strategy that apparently is very good when there are trends. But this has great losses when the market is consolidating. In fact, it almost lost 90% of the capital between 2000 and 2003. So if I can filter those periods in which the market does not have strength, maybe this strategy can be
Hi guy, i'm writting a LSMA indicator but it display incorrectly, it work well except the at the first bar. here is my plot display *** I find out when i compile the OnCalculate() will be run 2 times, i try to console log the rates_total and prev_calculated and the result is: *** It lead to this
  ADX calculation  (6)
Hi everyone, I'm trying to figure out how ADX is calculated in MT. I have studied the documentation and the mql code of the indicator but am still observing something wrong. I'm experimenting with monthly data to see the calculation from the first bars of history. Using the standard...
"Good evening I have to convert a tradingview indicator to MQL4 for a friend. I have to admitt I have not much experience in pine script, but till now it was enough to creat some indicators or convert some to MQL. But the current one has some parts I don't understand completly. Pine Code: x =
Hi how can use and draw in the main and sub chart windows in same time? in both mql4 and mql5? I want show an indicator in the main chart and draw some object types in sub window. how can i do it
Does anybody know if there is an indicator which shows how much you have gained/lost per trade as percentage of your account? (MT5) I am talking about close trades. Thank you very much in advance
Hello! I'm trying to do an CCI indicator but show the error array out of range . Follow my code and please help me!! //--- plot candles #property indicator_chart_window #property indicator_buffers 6 #property indicator_plots 1 #property indicator_label1 "candles" #property indicator_type1
  Tools to analyze the trades  (93   1 2 3 4 5 ... 9 10)
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).
Good day fellas Can someone kindly assist me in coding a RSI(10) with a [SMA(10), Apply To: Previous Indicators Data...] Like so: (iRSI(NULL,0,10,PRICE_CLOSE,0)>iMA(NULL,0,10,0,MODE_SMA,.......,0) The blank part I want it to be Applied To: Previous Indicators Data. Your assistance will be highly...
Hello guys, I want news indicator lines with vertical line object by importance like this in picture. Can someone help with code
Hi guys, i managed to create a MACD of an indicator buffer an its MA i was able to show the MACD either as a line or a histogram is there a way to create an option in the indicator inputs to choose between DRAW_LINE and DRAW_HISTOGRAM without ??? Thanks
Hello guys, i managed to add a MA to an indicator, using the MAOnBuffer, now i need to create a MACD of the same buffer, so i want to have an MA and a MACD on the same indicator i tried the iMACD, but i'm getting weird results, i'm not sure if iMACD can be applied to indictor buffers anyone can give
So I have been looking at an solution for this for a few days now and my googlefu is failing me. I have created an indicator that oscillates below and over 0. but the dotted line that automatically shows at the zero value isn't important, in fact it is in the way of properly reading the indicator. I...
HI, could you help me with this? I need for every candle in OnCalculate event, to know the high and low of yesterday, relative to this candle. If I use this double highestY = iHigh ( Symbol (), PERIOD_D1 , 1 ); double lowestY = iLow ( Symbol (), PERIOD_D1 , 1 ); I'm getting the yesterday
New article How Long Is the Trend? has been published: The article highlights several methods for trend identification aiming to determine the trend duration relative to the flat market. In theory, the trend to flat rate is considered to be 30% to 70%. This is what we'll be checking. 1.1. We will...
Set Stoploss and Takeprofit at same level for multiple orders: Let's say we have 20 open orders on one symbol and want to set takeprofit or stoploss for all of them at the same level(price) .The script selects all open orders of the symbol and can modify stoploss or takeprofit or both at the desired
  Indicators: EMD  (3)
EMD: Performs the Empirical Mode Decomposition for the current instrument. Author: Roma Ivanov
MultiMartin: This is a multi-currency expert adviser based on reversal strategy with martingale. Original idea is taken from ExpMartin for MT4. Author: Stanislav Korotky
Three Colors: Example: Moving Average indicator filling by different colors Author: MetaQuotes Software Corp.
FiboPivotCandleBarMT5: FiboPivotCandleBar MetaTrader 5 is a composite of several forex indicators, Fibonacci,Pivot Point, ZigZag, MACD and Moving Average which are combined in this indicator. Author: Roberto Jacobs
Speed Oscillator : This oscillator can be used as a handle to judge a Moving Average's trend speed, based on this specific product's past trend history. Author: Panteleimon Mar Andreadis
  Experts: FlySystemEA  (21   1 2 3)
FlySystemEA: This Expert Advisor is a pure scalping system. The expert place and manage pending orders. Runs perfectly on pairs with tight spread and low commission broker (commission plus spread equal or less than 1.0 pip). Choose a broker with zero stop level and fast execution to use...
ATR adaptive SMA : ATR adaptive SMA (Simple Moving Average) Author: Mladen Rakic
Relative ATR: Shows what % the current ATR is relative to it's historical value. Author: uwy
  Libraries: Math Utils (MT4)  (12   1 2)
Math Utils (MT4): Handy functions for comparison and rounding of floating-point numbers (prices, lots and money). Author: amrali
Math Utils: Handy functions for comparison and rounding of floating-point numbers (prices, lots and money). Author: amrali
New article The checks a trading robot must pass before publication in the Market has been published: Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by...
Track/close buys and sells buttons: Open two buttons on a chart, one for closing all shorts, one for closing all longs. The buttons labels display the current total profit for each type of order. Author: elfo13
Fibonacci Expansion with Custom Value : This script draws Fibonacci Fan OBJ_EXPANSION with options to add your own custom values Author: Dark Ryd3r
Hello, can MQL4 programs also be compiled in batch mode? Dobrek
TRADING AND CODING IN MT4. I have created an ea that I plan to add to 5 or more chart and symbols, and the lot size is based on Free Margin, so every time a signal is detected, the ea will check the free margin until it is acceptable amount, and then open a trade, but this may check continuously for
Hi everyone, this is my first time creating custom indicator. Here's my code: //+------------------------------------------------------------------+ //| MASlope.mq4 | //| EzraLuandre | //|
Hello Why are there some differences between iRSI result and it's indicator where all parameters are same ? of course I have same issue with other i-Functions specially iCustom Thanks in advanced Indicator Code lengthRSI=14;OnCalculate(...){ for(int i=(rates_total-prev_calculated-1);i>=0;i--)...
Hello, I am very new to mql4 so go easy on me. I recently downloaded an indicator and am currently trying to call said indicator from an expert advisor. I'm pretty sure I need to be using the iCustom function however, I can't figure out how to read the code for the indicator to find out how to
Hi all! As explained in the subject, I am having difficulties calculating the average pip per bar for only the London and NY trading sessions. Here's a summary of what I did, lest my code doesn't make sense to some of you: I first created an array, inputting every bar that is within the London and
Strategy tester says that it cannot open the custom indicator file that I use in my EA for entry signals.. please help
Hi i have an indicator i want to use in my ea through iCustom but can't get it to compile due to "OnCalculate not found in custom indicator" error.   Here is the code. //+------------------------------------------------------------------+//|...
  Set the bars in calculation  (34   1 2 3 4)
How can a bars in calculation be set by a user input as well as all bars so that it doesn't count all bars each time? Example, we have an input for bars in calculation which if set for 0 meant to calculate all bars. Input int BarsInCalc= 1000 ; //Bars In Calc; 0:All I think I have the right idea
  Coding help  (7842   1 2 3 4 5 ... 784 785)
Hi, Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick? Tnx
Good day, I am trying to write a code that counts the number of trades that have been opened in a new trend. That is, if there is a trend (e.g. MA1 > MA2) the EA opens trades until the set number is reached, and then it stops and waits until there is a new trend. Then it starts counting again from
Hello everyone. I am creating a scanner. When my scanner call customer indicator for every symbol. then my terminal will hang. I don't know how my scanner indicator will work with terminal hang.. please suggest . I am using 160 symbol in one scanner. And call custom indicator. Please suggest me
Does anyone have a way to run mutiple terminals ( for backtesting ) Sandboxie works but my Tick data man. doesn't show up in the strategy tester
[Deleted]
  global initialization failed!!!!!!!  (70   1 2 3 4 5 6 7)
If anyone could help...I run an expert advisor for 4 chart pairs, and for running it for the 5th, after loading succesfully, i have global initialization failed, and then removed ... I would appreciate at least a guidance what to look for.. Thanks
Hi all, still new to this mql language and I came a across a very weird error and need a little guidance. For division of double numbers such as: 5.0/100 = 0.05 6.0/100 = 0.06 7.0/100 = 0.07000000000000001 I got no idea why when I divide 7.0/100 I got that result when its suppose to be 0.07. Is it