forex forum for traders and developers

What is the code to get the Moving Average indicator value
Hello I have been rejected as a seller and I am not sure why. MQL was not able to give reason for this, so in this case I am unable to rectify what the cause might be? Is there a list of reason why this might be so and in this case I can filter then=m to find what it may be. Best Regards and thanks
  Line segments  (6)
Hi, I would like to draw a line on the chart. Or rather a line segment. After some searching I found that I could draw nice line with Object Create and OBJ_TREND. However these lines are infinite. I would like to draw a line with a definite start and end point. I have searched this frum for some
I run more than a few devices on the cloud network to be sold, but in the last couple days one device on my list dropped in PR by half. From 225 to 112, an i9 10900k@5.1GHz all core. There's also a mobile i7 10800h on it that's getting 187 for PR however it did not change at all. I'm trying to
Any one knows the settings please help
The system says You are going to pay for MQL5 services Confirm your payment But I only want to upload funds to my balance Thank you! It is the first time I upload funds in this way
  VPS invoice  (1)
Hi, is there any solution to get an invoice from my VPS's subscription
  Swing Trading ideas  (476   1 2 3 4 5 ... 47 48)
thread rules only daily charts any currency must Sl and TP try to explain trade reason No bickering
Dear experienced market leader It shows: Validation state: Validation completed with errors. But no error shown. Do you know anything about this case? Thank you in advance and best regards
Hi friends. What's your idea about some developers that distribute signals or products that haven't any similarity to explained or promised performance? It's true and acceptable that the responsibility of purchasing products lies with buyer, but it's also plausible that seller must be
  Compling error  (1)
Keep getting the error below when I try to complie a sinper robot code variable 'Ls_unused_0' not used
Hy guys, Does anyone know what a hell some times when backtesting the indicator does not show up in the chart and some times it does? For me, most of the times the indicator doesn´t show but using exactly the same code some times it does, is there some way to force it? I know I can use a template
What is the best way to extend rectangles on mql5? Thank you
Hello Friends, I'm new to trading and have searched far and wide without success for a means to add a balance column to my statements so as to see and appreciate my journey in trading. please any ideas
hi, all I am having issue with my AMP future Account, my EA was working fine on MNQZ20 and MESH20 index future symbols and it works fine on MNQH21 and MESH21 until yesterday (JAN 20 2021) but suddenly its just stop working , its not opening any order on any of new symbol of future index, if anyone
i am a professional trader that have been in the marketplace since 9 years ago . check tens of thousands of EAs , indicators , strategies like price action , ichimuko etc... and can assure you 99% of them not work in long term. because market is unpredictable and full of uncertainty. so no one can...
Hi. It is simple trading system. Indicator Stochastic oscillator standard setting Indicator Alligator for TP. Time M15 TP 100-200 SL 100-200 Check reault
  Kevinator 5m retracement system  (88   1 2 3 4 5 ... 8 9)
Hello I will trade this system live so you will see how to trade it correctly.Please..leave the negative comments at the door and only constructive criticism allowed.Well lets begin............. 5m Kevinator retracement system Majors only (eurusd * usd / chf * gbpusd * aud / usd * usd / cad) 5 m...
Hi, I want to ask you how you use the TDI indicator according to your path. You can see one way to use it for position opening decisions like the picture, I took the picture in XAUUSD on January 14th 2021 TF 5 minutes. - First crossing. red circle. - Waiting for bouncing / touching the support -
Locked-in Range Analysis (abbr. LRA) is the futures market analysis method, described in the ebook "Locked-in Range Analysis: Why most traders must lose money in the futures market (Forex)" by Tom Leksey, which minimizes an uncertainty in the futures market. LRA is the method of interpreting the...
The railway tracks pattern forex trading strategy is another price action trading strategy that is based on analyzing the lengths of two candlesticks of similar lengths and one of the candlestick must be bullish and the other one is bearish.When you see them together they look like railways tracks
  Something Interesting to Read  (74   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...
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...
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...
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...
  SYNERGY Trading Method  (837   1 2 3 4 5 ... 83 84)
The Synergy Trading Method was developed by Dean Malone and is an effective Forex trading method developed to simplify trading decisions with high probability precision. It combines the market forces of Price Action, Trend, Momentum and Market Strength to produce higher probability trades. The...
In this thread we will build our own Bollinger Band strategy by combining our heads together. Let's discuss: DISCUSS: - what do you think is the best way to recognize RANGED and BREAKOUT? - what other indicators complement the Bollinger Band? - what is in your experience the best timeframe for...
Basically, I've been trying to set my TP in order to maximize my reward, which would be TP*P ( TP). After some math, taking into account the mean and Std deviation, I end up with a TP of 2.6 something pips, which, of course, maximizes the probability of hitting TP because is so small. On
How is the trading grid different from the Martingale trading system
Hi at all, After we develop basic of a strument, for to detect and analize the signals, how long to study it on historical data ? or on real data? 1 month ? 1 year ? 3 years ? ...more? I think the correct study period is relative to period we want use this strument, for example: if we want develop a
Hi, Do you guys know any broker which have at least the last 2 years of US500 history data with Real Volume
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...
New article Principles of Exchange Pricing through the Example of Moscow Exchange's Derivatives Market has been published: This article describes the theory of exchange pricing and clearing specifics of Moscow Exchange's Derivatives Market. This is a comprehensive article for beginners who want to...
  Cryptocurrencies  (9)
Dear To whom it may concern, How to add cryptocurrencies to the mt5
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
I'm quite new to COF trading. Anybody else here trading on Amazon, NVDA, Google, Netflix, Tesla, Facebook, Apple etc
I have a MT5 account with real stocks, no margin, no shortselling. My positions are separate, with each buy as a separate record. I recently wanted to partially close a position (i.e. Sell limit order on a partial number of stocks). However I realized I do not know how to do that. When I right click
  Order routing - EUREX  (12   1 2)
Hello everybody I trade FDAX with MT5 via AMP at EUREX. EUREX accepts stop-market orders for futures trading in addition to the native order types: market and limit. QUESTION: Does anybody know if the MT5 Gateway transmits a STOP-Market order to EUREX? Maybe we have to distinguish between simple
  Bonds  (4)
Introduction to Bonds (Part I) 1. Principal: This is the face value of the bond; the amount that the first bond buyer initially loaned to the company or government issuing the bond. This is also known as the par value. 2. Coupon Payment: This is the numeric amount of interest payments that are...
  LME product  (10)
Hello,Is their any broker who provide LME product to trade on mt5. Lead,zinc,aluminium, copper,nickel...
  Crypto Trading  (1)
Hi guys anyone have crypto trading ideas? Share knowledge to others
How do you determine Dow via ZigZag indicator, which settings best for you
I've searched Google and this forum but found no straightforward answer to this question. It seems like some U.S. stocks can be traded with CFD only. It seems like there's a IB plugin to use but it doesn't look like historical data is provided to backtest. Has someone ever tried it with success? I
I cannot see the crypto icon to add crypto pairs to my trading platform. Is there something I need to upload to a folder? I have read where I should be add to trade the main pairs, BTC/USD and ETH/USD as an example
Hello guys Is it possible to connect Nest trader to MT4 for real time data... for technical analysis in mt4? Please help
After download the "EA name removed" demo and doing some strategy testing. I found it was trading in the background of my demo broker account over night and lost almost $10,000. I just found this when my broker sent me a daliy confirmation email. there is no History of it in the toolbox History tab
#include<Trade\Trade. Mqh> CTrade trade; Void OnTick() { double Ask=NormalizeDouble(SymbolInfoDouble(_Symbol, SYMBOL_ASK), Digits) ; double Balance=AccountInfoDouble(ACCOUNT_BALANCE); double Equity=AccountInfoDouble(ACCOUNT_EQUITY) ; If (Equity==Balance) ; { trade.BuyStop(0.01,Ask+100*_Point
THE CODE I WRITTEN TO STOP LOSS is not working My purpose of using price close is to make transactions according to the last price of the bar. if((CountOpenedPositions("buy") !=0 && (((InitialBalance)-(PRICE_CLOSE) ))/InitialBalance >= ( CloseLossPercent)/100 ||
  EA with vps  (7)
Hi, I'm very new to all of this, I don't know it when I'm running bots in the vps (and its doing trading while having opend orders), and I configure a new templete and synchronize it, those orders that where opened before, the will get under control of the new template or I should close them...
hi everybody, I have (for my mind) a bit more of a complex solution. 1. I open a grid of five pending orders. 2. at some event i take all unopened orders away, so the ones which haven't been triggered 3. at another event I want to put the five pending orders again, apart from the ones which were
I'm trying to run some code if in a tester optimization. My code below doesn't seem to work and MQLInfoInteger(MQL_OPTIMIZATION) seems to be false. The function is called from OnTesterPass. Should that make a difference? Cheers E void WriteTestResultsToFile( string & parameters_list[], int pass
As dumb as the question is, I've spent nearly 3 hours looking for an answer. My OnTick function reads and stores 2 consecutive tick values in 2 variable A and B, I then want to store B somewhere and then compare it with the new value of A and B when a new tick occurs, and again store B and so on
Hi, i have a problem with backtesting that maybe someone would be willing to help me with. When i try to backtest my EA it cannot load an indicator, i tried with multiple custom and built-in, niether worked. I run backtests on multiple pairs, usually more than 20, on 10-15 years of daily data. The
some one tell me why my bot suddently not be able push notification? i trade on MT4 of IC Market. thanks alot
  trade.Buy help  (1)
Hi, I use this line of code to open a buy in mt5. trade.Buy(volumeSet,_Symbol,0,(candleOpen-slDifference),(candleOpen+tpDifference)); the issue I get is a new buy would overwrite the previous open position buy sl and tp. Is there a way to not have the overwriting? Any help is much appreciated
I'm still learning so I thought about printing the value of a tick as it occurs using this code: void OnTick () { double price = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); Print (price); } But Instead of Showing one tick value, it instead shows me all tick values from 2021-01-01 till now
Hello, I would like to create a descendant class of CExpertSignal. I plan to use make it callable by the EA wizard, as demonstrated here: . An instance of this class will be added as a filter in the CExpertSignal generated. In addition to giving a buy or sell
Hello, It's possible to check the price every second (or whatever time you whant) and register on an array? I wanna check the price of the last second and register it. If so, can anyone help me out? Thanks in advance
So I'm totally new to MetaEditor 5 and I've searched for this everywhere but couldn't really understand. All I want to do is to check the value of the last tick and store it in a variable and then store the current tick value on another variable, compare them, decide either to Buy/Sell and reset the
Hi folks, I would like to check every hour or every 30 minutes if VPS I'm using for my EA is working. I wrote the following code, but I think there is some better way to input "times" every time that the function was called, instead of one line for each hour. What do you guys think
Please help me identify the error why my custom indicator is displaying upside down. Dodger Blue line is original indicator and GoldenRod color my custom indicator in the attached screen shot. Also, I have not set LEVEL anywhere in code, yet in chart it is displayed. May be that is causing the
Good day, What happens when I call the Sleep function in the OnCalculate method in my Indicator? The reason I'm asking is due to an issue I'm picking up in multiple Symbol trading m(on a single PC) with my EA which seems to make erroneous trades (luckily not too often) that are not according to its
Hi friends I try to create a Pivot Standard Indicator as a practice. I want to set 7 level in this Indicator.(R3-R2-R1-P-S1-S2-S3) Do I need to set "indicator_buffers property =7 " AND "indicator_plots property=7" for these levels? if the answer is NO , How should I set property for my indicator
Hi! For some reasons, iMACD is returning 0 on GBPUSD, it's working on other pairs. Any idea why? double array1[]; double array2[]; int indicator = iMACD(_Symbol, MACD_timeframe, MACD_fast_ema_period, MACD_slow_ema_period, MACD_signal_period, MACD_applied_price); ArraySetAsSeries(array1, true);
Please tell us. I am using a translation tool to convert the data into English. Is it possible to load a single signal indicator into iCustom, for example, a buy signal when SMA20 and SMA80 cross golden and a sell signal when they cross dead? I was able to do this in mql4, but not in mql5, so I
Hello, I'm coding a basket indicator which alerts me when/if a pair from the list reaches a round number (000/500). I've been able to obtain the last 3 digits from each pair as string (with StringLen and StringSubstr) but when i try to convert them to double or integer all the zeros got removed from
Hello Everyone, I am currently in the process of translating one of my mt4 codes to mt5. I've noticed something unusual when working with my code and its that when having an event take place in OnChartEvent, the event isn't processed until after a new tick. The code below shows the isolated
Hi everyone, When we creat Fibonacci Retracement manually on chart, we can get its level value(50%, 100% etc) as below. Then how is it possilbe to get the actual price of each level value ? Thank you X :-) void OnChartEvent(const int id, const long&amp; lparam,...
  All John Ehlers Indicators...  (943   1 2 3 4 5 ... 94 95)
Hi all... I'm dedicating this thread to all indicators by John Ehler's in the hope that we can get/make as many of them for MT4 as possible. Please post any MT4 John Ehlers indicators that you have here as outlined in his books "Rocket Science for Traders", "Cybernetic Analysis for Stocks and...
  MACD indicator  (1515   1 2 3 4 5 ... 151 152)
We are continuing discussion about the indicators. We have the following thread: https...
Please, am having difficulty drawing from the edge of the chart, how do I go about it for point 1 and point 2 in picture below. Thanks
Hi, I'm looking for a Williams AD indicator that includes a SMA of the indicator values for mql5. I've ran across a mql4 version...hoping someone is kind enough to share if they have it. Thanks
Hello, may i ask why i can't set the height, width and position of a chart after opening it? This is the code i use: // General Variables bool ChartSetInteger (); // function void OnChartEvent ( const int id, const long &lparam, const double &dparam, const string &sparam) { if (id==
  Multi Timeframe Indicators  (12220   1 2 3 4 5 ... 1221 1222)
Hi all, I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to...
Hi, I am looking for an indicator which gives an alert when the price is touching or crossing the upper or lower BB line (using 50 BB with 1 devi). I dont know if its possible but it would be good to only show alerts when the price was outside the BB and then touches/crosses the upper or lower BB
The colored volumes (English Version) : Colored volumes at the bottom of the chart Author: ROMAN KIVERIN
  Experts: RSI EA  (21   1 2 3)
RSI EA: RSI EA - trading based on overbought/oversold zones determined by the iRSI (Relative Strength Index, RSI) indicator. ‌ Author: Vladimir Karputov
Smart Forex System Open Version : Force=((Bid-close)/close)*10000; Author: Szymon Palczynski
New article How to Buy a Trading Robot on MQL5 Market? is published: Now you also can use trading robots and any technical indicators with MetaTrader 5. All you need to do is to launch MetaTrader 5 trading terminal and open Market tab of Toolbox window. Author: MetaQuotes
  Indicators: NRTR  (1)
NRTR: A variation of a well-known Nick Rypock Trailing Reverse indicator. Author: MetaQuotes Software Corp.
Four clicks to draw an arc-shaped channel: A quick way to draw an arc-shaped channel in 4 mouse clicks. Author: Nikolai Semko
EasyAndFastGUI library for creating graphical interfaces: The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs. Author: Anatoli Kazharski
Flag and Pennant patterns: This indicator shows Flag and Pennant patterns. Author: fxborg
Weis Waves: Volume Wave indicator originally idealized by Richard D. Wyckoff. Author: Minions Labs
New article Brute force approach to pattern search has been published: In this article, we will search for market patterns, create Expert Advisors based on the identified patterns, and check how long these patterns remain valid, if they ever retain their validity. A neural network is essentially
New article Payments and payment methods is published: built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
Log4mql(mini) MT5 : A light header-only version of Log4mql that provides standardized logging. Author: lippmaje
Three Typical Candles: It calculates the Typical prices for bars #1, #2, and #3 Author: Vladimir Karputov
Daily Open Line: An simple Indicator displaying daily opening line. Author: Muhammad Syamil Bin Abdullah
Reversing Grid on Limit orders: Grid system with limit orders. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: Author: Andrey Barinov
If you try to use a multicurrency indicator like this one: Free download of the 'DXYvsEXY for MT4' indicator by '3rjfx' for MetaTrader 4 in the MQL5 Code Base, 2020.08.20 The results are distorted over time, as you can see from the images here attached. It is not possible to correctly verify the
  How do i shorten this code  (16   1 2)
I've been trying out things but i really can't seem to figure it out, i tried doing loops but i'm probably doing something wrong. What i wanted to happen is to only do a sell signal when all 10 candles is below the moving average. Here is the photo to visualize more : double
Greetings everyone, I try to get a specific symbol information (in my case it's GBPUSD) in a tester while testing another pair (EURUSD). When i try to get the information about how many symbol digits the GBPUSD pair has, i get '0'. The used code: SymbolInfoInteger(symbol,SYMBOL_DIGITS) Is it
Hi all, I am trying to write script for opening additional orders instead of setting stoploss. For example: 1 Buy Order is placed and it is going loss, if openprice is reaches the distance (eg:300pips), it will open another buy order. Then, Order 2 is making profit more than account balance or
Hi, I'm trying to stop the EA if the TimeCurrent is greater than a defined Date1. The program is working fine IF the two date are different , But once the dates are identical and the difference is only in time, it's not working (eg: TimeCurrent is: 2021.01.24 01:47 and Defined date is: 2021.01.24
I want to make EA like this EA takes position when price during above 20ma and does not exit before price once goes down below 20ma then exits when price comes back above 20ma. But my EA exits soon after taking position because price is above 20ma. If someone knows how to fix this, It would be very
I am trying to create EA(MQL4) And Critical error Array out of range in EA error appeared. In fact, I'm trying to turn an indicator into an expert. I have done this before. But in this case, I encountered an error in the title. This problem occurred after adding void FindZones (). This part of the
Please any Help is appreciated I am new to to MQL in General and I have been trying to figure out this problem. After opening a trade It does not close with my condition and I do not why? if(total<1){ if(dayOpen > dayClose && prevDayOpen > prevDayClose) { SellTrade(); } else if(dayOpen
Hello I am looking for the Bollinger bands indicator with color change of the sup and inf bands according to their direction for MT4 like the one below version mt5 thanks
  Will Code EA for Free  (41   1 2 3 4 5)
Hi all. I am new to this forum, but have been around trading and programming for over five years. I love both trading and programming. I was a trader first and learned to code to build my own trading systems. I have programmed in MQL4, Excel/VBA, C#.NET, and a little C++ I am looking to offer up...
Hi Guys, please help, none of my EA'S seems to be working? any suggestions would be appreciated
How can I calculate length of a trend line? I have a user created trend line on the chart. how can I get time1_price1 of the trend's first point, and time2_price2 of the trend's second point. anyone have idea
Hi All! I am having trouble calling the correct values from a downloaded custom indicator on MT4. The indicator is a Chandelier Stop indicator. I manage to use the iCustom function to call the value, which works when the price action is below the indicator value, however, when the price action is
Hi All, Looking for a little help as I've spent the previous two days going through the zero divide error threads in the forum and can't quite find a fix to my issue. Basically, my EA runs fine for several trades, but then I get a critical error closing the EA. It is a Zero divide error and it gives
Hey Everyone! I am having an issue, my EA is Working Fine in Live Market But when i run it on the Strategy tester it is not opening any trade and return Error is 138. I have tried to Fix this issue by Reading many threads And i Have tried everything that i can get my Hands on, but the issue is