Most of the indicators i tried are re-painting. Looking for a non-repaint indicator. If you know any non-repaint indicators, pleas suggest their names and if possible share the link too
Hello! While developing an expert advisor that is becoming quite complex, I thought it was a good idea to plot the profit of the positions in percent of the free margin. This indicator would help to understand visually what's happening in specific cases. It is intended to work in
Hello, I used the Indicator The class for drawing the Fractals using the ring buffer from Konstantin Gruzdev https://www.mql5.com/en/code/1422 Ghost arrows are displayed there with buffer values, but I can't find the error. Unfortunately, the error does not appear in the visual tester either, only
Hi all, Below is the (working) code to open a buy order if the close price of the previous bar is above the 20 moving average. However, i use M15 charts but want the moving average to be calculated on the D1 chart/time frame. How do i go about this? TIA #include <Trade/Trade.mqh> CTrade trade; input
Hello, I'm trying to create a exponential moving average on an array. I seem to get the correct values every time I refresh the chart, but not when I just let it run. The buyEMA returns 0.0 or an insanely high value, once I let it run. Below is my code snippet. I checked the buying_volume array, it
I am building my first indicator for MT5 except I have never done it before. Is there a way I can open the code on an already created indicator that is the same style as what I want to make to learn the code inputs? I have no idea what to enter to get any results so I'm trying to learn. Many thanks
Hey! Thanks for taking some time out of your day to read my question. So in my script I am calculating a few EMA's. With these EMA values I have to do some further calculations, but how would I do calculations with these values that are stored inside this array (buffer)? input int UMAPeriod = 9 ;
Hello,
why does the follwing happen with two simple custom indicators.
Indicator 1:
Print("calc1") in OnCalculate
Indicator 2:
Print("calc2") in OnCalculate
When called in Strategytester (anny settings), each indicator works as expected.
But when indicator1 loads icustom("indicator2") in...
Hello dear friends, In MQL5, How can I use functions iBands, iStochastic, iRSI and so on, on previous data (like 1 year ago)? I need price archive with some indicator values on it, How can I rich this data set? thanks in advance for your help
Hello everybody, I was working with MovingAverages.mqh when I saw that I also wanted a function to get the applied price. With the median, typical and weighted it seemed within good measure to store the results in a &dst_buffer[]. But it bothered me to do it with open, high, low and close because it
Greeings, I am new to MQL5 and this is my first post...! From the research I have been conducting I am unsure if this is possible... I have a need to enable detection of 'intersecting' lines on a chart. I believe it can be determined if lines intersect by obtaining the (X, Y) coordinates of the
When the indicator was running, it is observed that sometimes some of the alerts were missing. I ran the same indicator in 2 computers at the same time. Both setups were identical to each other. Surprisingly, the results were not the same. Some of the alerts were only displayed in one setup. Could
Hi, I'm experiencing a strange thing with a colorized indicator histogram. The histogram is defined like so: #property indicator_type1 DRAW_COLOR_HISTOGRAM#property indicator_color1 clrSteelBlue,clrRed#property indicator_style1 STYLE_SOLID#property indicator_width1 2 Note the two colors. In...
Hello guys; I have an issue, I am trying to code an Arrow indicator for Moving Average crossover, but I always encounter an "Array out of Range Error" on any line with [i+2], and when i cooment out this lines, I later have the same "Array out of Range Error" on any line with [i+1] && [i+3]. I have...
Hi. Could someone please suggest a way to stop an indicator from refreshing when changing the time frame of the chart in MT5. Whenever I change the timeframe of the chart, it refresh the indicator and generate the same alert again and again. Please suggest a way to avoid this. Thank you
Has anyone used skew/kurtosis indicators in trading? I've developed an indicator that calculates both metrics using a VWAP as the average to calculate skew/kurtosis. Visually it has been interesting but I've failed to see how I can develop this further. Anyone interested
Hello all, I have an indicator that draws rectangular objects on the chart, as shown in the picture. I would like to react to these, as soon as a rectangle is created I would like to process the points high, low and possibly the length. The objects are only under "show all" to find and also not
Hello. The custom indicator that i've created does not show historical values on chart. When i try to attach the indicator on any chart i can only see the values beginning from current bar. If i change the broker for some other company it works normal but if i change the symbols GBPUSD-GBPJPY to
I purchased an indicator on the website via the Marketplace. On the website I can see it in my list of purchases, and on the product page it indicates "This product already purchased." There is a link there "Install on the Terminal" that does nothing. When I go to the Market tab of the MT4 terminal
One issue I'm having modifying pre-existing indicators is the indicator plot on the graph will stop updating and return to zero, until I recompile or change timeframes and back again. I've been trying everything. What's the best code for an indicator loop? Here's my code, trying to combine Bears and
Hi. Could someone please explain whether is it possible to run a custom indicator without opening a chart for the particular instrument in MT5? I read that maximum of 100 charts can be opened in MT5 in a given time. If we want to run an indicator in more than 100 instruments at the same time and
Hi. I have been working with this news indicator and its working great for me but when someone far away uses it. The news don't comes in the right place. Can someone please have a look at the code and see if there is something that is not right. So here it makes the array with the news only...
For example, I want to connect any two points of the A/D indicator (my purpose is to detect divergence), but if there is a dip/top that exceeds the "trendline" between these two points, this drawing should not be accepted. Same goes for both prices. What I am trying to do is to create a trendline
Hi I wanted a script to open charts for all the "Unhidden" symbols in the Market watch. With some help, I tried the following code. But it opens all the symbols in the Market watch including the hidden ones. Could someone please help to filter only the "Unhidden (Showing)" symbols in the Market