Technical Indicators - page 11

What is the code to get the Moving Average indicator value
I searched everywhere in the documentation but didn't find a clear information about this: How does Metatrader 5 exactly handle the Chart ID? Are they numbered from 0 to 999? and what happens with the ID of chart number 1 if I close the chart number 0? does the chart 1 turn in to 0? And what is
Hi guys! I'm trying to code a simple indicator that identifies a pattern of 4 bullish/bearish candles in a particular order and whenever it finds one of the 3 patterns, it should set a buffer for buying/Selling at the Close price of the last candle, drawing arrows. But I can't make it work and I
Hello guys and girls, I'm trying to build an Indicator and please find the part of the code below I'm finding problems with. Hope you can help! The 2 errors are copied below the script. int OnInit () { // Link buffers with indicator data SetIndexBuffer ( 0 , currentBidBuffer, INDICATOR_DATA );
Hello and Thanks for your time to look at my post. I have tried a lot of different approaches to plot a simple arrow when bb middle line is above ma 200 and vice versa but It did not work or even plots. I hope you help figure out what I am missing Thanks
Hi, I have a question regarding MQL5 and stocks. Is there a way to make Financial indicators using MQL5 like ordering the companies based on the profitability or Net income. Many thanks
In one of my indicators, I am using the command ObjectSetInteger(0,name,OBJPROP_TIME,1,TimeCurrent()); to automatically extend an existing trendline up to the current time. Unfortunately, the slope is changed in the process, rendering the trendline unusable or requiring manual correction. Is this
Hello guys, i'm new to mt5 coding i am currently working on creating a system, does any one has an idea how to create a template or indicator that paints 1. Any TWO consecutive buy candlesticks a certain color 2.Any TWO consecutive candles red a certain color All other candles will not be affected
Hello, I am attempting to create an exponential moving average indicator but i am having an issue with the performance. I am using tradingview.com with the indicator "deloreanEMA" it has 5 EMA indicators. sample of 5, 13, 50, 200 and 800. The 15 minute chart below shows what the ema indicators look
I try to add heiken Ashi price close handle in IMA. But i don't know how to do. For example like this : ha = heikinashi(tickerid) ha_close = security(ha, res, close[1]) ma = ema(ha_close[1], 30) Thank you all
Hi, I'm trying to port ATR function with RMA smoothing from mt4. Code I have is below. I'm getting '{' - function definition unexpected ATR-RMA.mq5 108 3 error but can't find out why? I double checked { } and looks ok. I new to MQL5, have very small experience in MQL4. Could anyone help me solve
Hi all, Is it possible to send the horizontal levels in an indicator window to the background? It seems by default they show on top of the indicator. I'd like the indicator value to be on top and the horizontal in the background. I don't think this is possible, but wanted to check. TIA. Rob
[Deleted]
My code : int lowestbody_index= iLowest ( NULL , 0 , MODE_CLOSE , 50 , 1 ); It returns the index of Lowest Close but its a bullish candle, I am only interested if candle is bearish, How can i solve this
Hello, is it possible to show a chart of another symbol (same period) in the sub window? I want to see correlations and compare both symbols this way
I am new to MQL5, so as far as know, there are two types of indicators, one is a built-in indicator like `iMA` function, another is the custom's indicator which should be created by the trader themselves within a separate indicator file. My target is to show these two types of indicators onto the
hello everyone i have been receiving wrong values of an indicator when calling a custom indicator using the iCustom function as it gives me huge values not corresponding to the indicator ...anyone to offer assistance please
#property indicator_chart_window #property indicator_buffers 3 // Increase buffers to 3 #property indicator_plots 3 // Increase plots to 3 #property indicator_label1 "Daily open line" #property indicator_label2 "Above Open line" #property indicator_label3 "Below Open line" #property
Hi friends, I have a question. I have designed a personal indicator that I use the RSI indicator inside.When I first drop the indicator on the chart and set its initial parameters, it works fine . It shows the signals on the chart, but when I reset the input parameters, the indicator erases the
Good morning people, everything fine? I looked for an indicator to show on the charts or swap, but I didn't find it, only for Spread, but I would like one that shows both. If someone just has SWAP for me, it would help me a lot. - Remembering that it is for MT5. Thank you very much
Hello, Can someone please refer me to a plain and straightforward exponential moving average (EMA) indicator written in MQL5. As I am currently learning the ins and outs of the MQL5 language, I believe it would be beneficial to study and understand how things work with this specific type of
I need an indicator that plots 3 lines: a horizontal line from daily open to close, another line certain number of points above the daily open & another line certain number of points below the daily open. Be able to set number of days which to draw lines. Simple. Be able to set number of points to
Hello everyone, I'm learning how to get indicator data from another timeframe. Currently I'm still copying data one by one in a loop. // Call this function in a loop double CopyDataHandle( int &handle, datetime startTime, int bufferIndex= 0 ) { double data[ 1 ]; int copy; copy = CopyBuffer
Hello, Is there any code that Search for an Specific Object Description and replace the new "Description" on chart? for example, if an expert; create an "edit" object, with randome names; and same "Description"; how can I add an indicator on chart that replace my description on that "edit" object
#property link "" #property indicator_separate_window #property strict #property indicator_buffers 105 #property indicator_plots 105 #property indicator_color44 clrRed #property indicator_type44 DRAW_LINE #property indicator_width44 1 #property indicator_color45 clrOrange #property
Hi guys, I'm trying to understand one of Mladen fibo indicator calculations and plots. So todays fibo lines are calculated by yesterday range in this simple way: if ( Bars ( _Symbol , _Period )<rates_total) return (- 1 ); MqlRates dailyRates[]; int dailyRatesCopied= CopyRates ( _Symbol
Hello, I want to create an indicator that retrieves multi timeframe data of a custom indicator. Due to the original program is bulky so I have recreated it in a shorter version to reproduce the error, My intention is copy MACD data from different timeframes, the size of those buffers based on M1
Hello everyone I work on a custom indicator and begin learning coding following tutorials and articles, after several months some limitations persist and I thought getting your opinion could help me. Please excuse any possible beginner's mistakes, the basic idea of the indicator may seem simple
Hey, I have a Simple CDialog panel With Buttons on it, I am using it with an Indicator and Objects on the chart that I can Move and place on required price, I can't get it working in the BackTester(Visualisation), Searched on google but could not find Anything that helps, I would like to know how I
hi guy, why this code didn't work : #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Blue #property indicator_color2 Red input ENUM_TIMEFRAMES TimeFrame1 = PERIOD_M5 ; // Timeframe 1 input ENUM_TIMEFRAMES TimeFrame2 = PERIOD_M15 ; // Timeframe 2 input
I am currently using an indicator I found in the codebase. When it loads in the chart it displays fine (Left figure), but when I change the TimeFrame, the indicator disappear (middle figure); when I add any other indicator ,the original indicator appears with the updated change (left figure). Like