Indicator compiles fine but when loaded gets error stating 'zero divide in line 190.' Looks like volumes are returning a value of 0 in the divisor. Using iVolumes to retrieve volume not sure what is missing. Please help
I have re-coded an indicator that I used previously with TC2000. When I run it on history, it only plots every value either above or below 0 but not both. I set it up with test data that definitely had positive and negative values, it showed the 2 different colors, but still would plot ALL values
Hi, how to get the below metaquotes indicator to draw bars without gaps ? where all "open" equals to previous "close". Can someone please help on this //+------------------------------------------------------------------+ //| ColorBars.mq5 | //|
Hello. I am a beginner in programming. I heard that MQL5 is based on the concept of the C++ programming language, so I searched the net for C++ and learned about it, but I just couldn't understand the following, so I asked in the forum. Please help me. I'm using a translation tool to convert it to
Hi everyone I'm pretty new into coding with MQL. I'd like to creat a horizontal line and I have seen two ways to do it: I just see that the first option is just more code but easyer to analyse... Is there any difference for the compiler or something? First Option: ObjectCreate ( 0
I am trying to create a simple mt5 indicator which plot the sum of the all open positions on chart , for example if there is 3 open positions with 0.5 lot size, it must print "1.5 lot" on chart . can somebody help me please
Hi, How can I get the price of each Fibo level in this indicator
I bought a very sofisticated Indicator that has about 150 input parameters . iCustom has a limit of about 60 something. I want to use this indicator in my EA that I am writing. However, I need to change some of the default parameters when using the purchased indicator. When loading all of the
Hi, I created a custom indicator that doesn't update or move along with new candles on the chart. I think it has something to do with the way I am using rates_total and prev_caculated but I'm not sure. Currently, my array buffers are "TRUE" for ArraySetAsSeries() and I have tried several different
Hi, Just testing to draw dots on the chart in its simplest way. So i wrote this simple piece of code : void OnTick () { SetParameters(); static datetime bar_time= 0 ; datetime this_bar_time= iTime ( Symbol (), PERIOD_M1 , 0 ); if (bar_time!=this_bar_time) {
Hi, I am a complete noob, and trying to learn how to code an indicator. At the moment I am simply trying to draw an arrow when a moving average cross occurs. It is working, except that I would like the colour of the arrow to correspond with the direction of the cross. I have tried the simplest
Hi, I created a realtive complex indicator. It is drawn in the graph, but when a candle is added, it is not calculated. I used to create indicators that were slower but they were calculated on a next candle
Hi guys, If you can help me with this, I will be really grateful! I need a simple code which prints on the screen as Comment() the following parameters: TotalProfit Max Drawdown These 2 values should be calculated over all the history for orders with the same Magic # I couldn't find anything similar
Dear MT-friends, I programmed a simple clock-indicator that should show the current time in HH:MM:SS-format in the right upper corner of the chart. So far so good. The problem is that this clock is supposed to update every second ( EventSetTimer(1) ), but it doesn't: there are many, frequent
Hey guys please do anyone know the name of this indicator that show the pips of running trade and the % generated by the trade like on this picture. Thanks
Hello, my name is João and I am studying the programming language of MT5 for approximately 5 months. I got a source code on the internet to test and see if I was learning the language, I fixed all the errors in the code, until finally I managed to compile the indicator without any error, but at the
Hi guys, I would need an indicator to be applied to the chart that inserts a line every time that from one price to another price there is a variation of consecutive points inserted by input. ex. 190 points have passed from point X to point Y, without the price going into stop loss of tot point this
Hi, I have created an indicator that makes multiple calls (50+) to iCustom. I am pretty new to coding but feel maybe this isn't an optimal way to do it. Is there a better way
Hi, Unfortunately my search didn't yield any results in the MQL5 constants/functions. Is there any way to read out the current value that was put into the one click trade panel? Your help is much appreciated. I am getting back to MQL5 programming after some time of absent, so please be patient with...
Hello, I have about 1-50 mb data in memory and for access/analysis I need fast access to this memory. I have to inserts my Array of structs (sometimes 60 double pairs) in the large Array, move memory around and so on. struct stMyStruct { double dblD1; double dblD2; }; ... stMyStruct mySt;
Hello, I'm new to the programming world and I have a doubt about how to put the audible alert with notification on the 3 Level ZZ Semafor indicator for MT5. I saw that the indicator for MT4 has the alert but the version for MT5 does not. I tried to insert comparing the two codes but there was an
There is the well-known problem of separating the trend from the flat, as many trading systems work well in a trend and start losing in a flat, I would like to raise the question of different approaches to solving this problem. I have found only 2 tools so far: 1. The difference between two long and
Hi, Whilst considering a shift from MT4 to MT5, there have been a few issues with the standard MT5 ZigZag code. The images below show a ZZ set at 12,5,3. Notice how the white ZZ highs and lows in no way match the underlying price bars. When the chart is refreshed, they reset OK. By refreshed, I mean
Sometimes Parabolic SAR changes direction after 2 dots and a buy trend can become sell. Is there any other indictor can be used which will highlight the change in direction
Build an indicator that shows the points and shows the buy and sell signal on the chart
Evening, I am trying to apply the RSI formula to another indicator instead of the price, and i have an issue understanding the value it takes. Here is the official formula : //--- calculate first visible value ExtPosBuffer[ExtPeriodRSI]=sum_pos/ExtPeriodRSI;
Hello, does anyone know which two indicators make up the 100pips Momentum_1.4 indicator? One indicator is as far as I know the Hull Moving Average, but I don't know the other one
This is my first post, I love this forum! Thanks for all of the shared information and indicators. Does anyone have an mt4 indicator that will plot pivot information for previous days, not just the current day? I am specifically looking for: Open Pivot R1, S1 But if you have an existing one that
Hello everyone. I want to use the vertex indicator in MT5 but i could not find the indicator in MQL5 format. Someone could please convert this indicator for me? Thanks. Happy 2019!
Hi, I tried to import entry points (buy/sell) calculated externally from a csv file and plot on a chart. However the data reading (for newly updated data in CSV) from the CSV/ arrow plotting only works whenever I refresh the chart/ switch to different timeframe manually. I have been trying to solve
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.