Technical Indicators - page 27

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
  Missing alerts  (1)
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
[Deleted]
  done  (1)
done
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
#property strict #property indicator_chart_window #property indicator_buffers 17 //--- input parameters enum ENUM_WORK_MODE { DAILY, WEEKLY, MONTHLY }; input ENUM_WORK_MODE workMode=DAILY; input int StartHour= 3 ; input int lineWidth= 1 ; input ENUM_LINE_STYLE lineStyle=
kindly help, how to add buy or sell text on mt5 indicator when stochastic cross each other
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
How can I create an indicator that has multiple MAs, but not showing all the MA options at once, but instead revealing the settings for the MA chosen by the first drop down menu? Would I use something like this? enum MAchoice { MA1, // blah MA2, // blah MA3, // blah }; input MAchoice MAmethod = MA1;
Why is this happening? do I need to re-install Metatrader/MetaEditor completely from scratch? Am I supposed to add an #include file? What's going on here? I searched the internet and I can't seem to find a similar issue anywhere. I'm using it in the OnCalculate area. I've tried typing it in other
im trying to add this value of the indicator: speed as buffer , please help! i did SetIndexBuffer , but then what i have to do ? //+------------------------------------------------------------------+ //| Speedometr.mq5 | //|
Hello, my MTF (multi-timeframe) indicator works fine on opened market (when new ticks are received -> starting OnCalculate() function). E.g.: I see D1 moving average values on 10min chart... Problem is on the closed market where no new ticks are received. I get error 4806 (BarsCalculated function...
Please how can I fix the following errors in the below code? 1.'if' expressions are not allowed on a global scope. 2.'}'expressions are not allowed on a global scope. 3.'if'open parentheses expected. 4.'first'-undeclared identifier 5.'}'-not all control paths return a value
I used the default MetaTrader Parabolic SAR and ADX in an EA but wasn’t working. Then I backtests each indicator and observed that neither of the indicators are reading data. The data window is blank even the ADX didn’t load at all only the ADXW did. What could be wrong
Hi there? Please inform me how I can solve these 9 errors Line 1: OnCalculate function not found in the custom indicator Line 52: 'AbsMOMBuffer'- undeclared identifier Line:52: ' AbsMOMBuffer'- variable expected Line 52
This indicator will simply be a list of 5-6 different indicator values, each followed by a Green up arrow or a Red down arrow. This indicator should show in the window below the chart
  beginner  (2)
Hello I start in programming mode under mql5 I look at the following code https://www.mql5.com/en/code/491 and I look for the line number where the program draws the blue or pink point in the function int OnCalculate(const int... thanks