Technical Indicators - page 32

I'm working on an EA in MQL5. I have tried just about every variation of parentheses I can on these lines, and I keep getting some variation of "open parentheses expected" errors. Here's the minimalist version with only the parentheses required by if, plus one required by the logic grouping: if (bid
Hi. I am struggling on how to create a way to plot on the main chart lines showing the close prices of different timeframes in an indicator made on MQL5. Any tips? How to create an array to fill it with the close prices of different timeframes
Hi I have an indicator that processes a lot of data. It published successfully around a year to 18 months ago. Now I get Tester Takes Too Long during publish validation. The code is already highly optimised. Is there anything I can do to get it published? Thank you
how can i create multicolored in multi time like 3 clock time red ,4 clock time green
Hello, It's the 1st time i try to code in mql5 and i'm trying to calculate the total ask volume and bid volume of the previous candle. Is this value stored somewhere or i have to do a cycle for each previous candle and add each bid/ask value to a variable for every single tick of that candle? If
Hi I was wondering if anybody else has the same problem as me. When I create an EA using the Heiken_Ashi indicator in the \MQL5\Indicators\Examples folder my strategy tester freezes and says "waiting for update". If I try other EA's on the same symbol and time frame everything works fine. Also there
Hi guys. This is a question for people familiar with the Zig-Zag indicator . It's pretty old, but has its use. Multiple changes were made to the standard indicator, turning it into a custom indicator (hereby attached called "#BarsSinceLastZigZag_MOD2"): Instead of using High & Low of a bar, only
Hello everyone I designed an indicator , I put the same code for Alert and for sending notification, there is no error for Alert, but SendNotification() doen't work at all. I am not sure if this function works in indicator generally!? Can anyone help me ? Thanks if (SendNotify == true )
hi experts, I want to use 3 iMA indicators in my code and I want to set different color to them. How can I achieve this ?. This is how I start in OnInit() : thank you .. .. int OnInit () { //--- create timer EMA10Definition= iMA ( _Symbol , _Period , 9 , 0 , MODE_EMA , PRICE_CLOSE ) ;
Hello developers, Can someone explain the logic behind the 4TF HA arrow indicator, please. I know it uses 4 time frame HA, but seem like also use moving average. I have zero knowledge about programing or reading mql4 language. Thanks in advance
Hi all! SelfMAde MT4 Indicator for Auto Trend Lines. Indictor calculate the waves (impulses) and then pivot points. This indicator don't use any ZigZag algoritm. It ease for use and, I think, is very usefull.
I'm looking for a trailing stop that closes half a position, and is positioned in breakeven when the candle exceeds 30% what do you recommend? Machine translated from Italian to English by moderator
  MTF indicator  (6)
Hello, Greeting, Can you tell me how I can draw a MA indicator of a specific time frame in all higher and lower time frames, which means that for example how I can have a MA indicator of a 30-minute time frame without any problems on a 15-minute time frame and 1 hour time frame
int OnInit () { datetime prev_day = TimeCurrent () - PeriodSeconds ( PERIOD_D1 ); int prev_day_index = iBarShift ( _Symbol , PERIOD_D1 , prev_day, false ); //--- indicator buffers mapping SetIndexBuffer ( 0 ,high_buffer, INDICATOR_DATA ); SetIndexBuffer ( 1
Hi In an indicator's OnInit() how can I detect if the indicator has been loaded as a result of IndicatorCreate()? Rob
Hello everyone, I would like to post about an issue I encountered with the "DRAW_COLOR_CANDLES" indicator in MQL5. Depending on the values set, there can be significant delays in chart rendering. #property indicator_chart_window #property indicator_buffers 9 #property indicator_plots 1 double
[Deleted]
What is best way to detect any candlestick which breakouts any level for example as shown on screenshot. Please post the logic
Hello everyone, I am currently working on a custom indicator in MQL5, and I have a question regarding the CHART_EVENT_MOUSE_MOVE event. Specifically, I am wondering whether setting CHART_EVENT_MOUSE_MOVE to False in my custom indicator will prevent other indicators from receiving the MouseMove
Hello, as the title say. I need a function/event to check, if a chart (means a defined count of candles) is completely loaded and my calculations are valid. The CheckLoadHistory-Function, as described here: https://www.mql5.com/en/docs/series/timeseries_access is not usable, because indicators
Hi, I want to calculate lot size based on percentage of equity without thinking about stoploss. Does this calculation correct? and should I multiply the result with leverage? double PctAccountLotSize( string SymbolLoop, double pctRisk) { double accEquity = AccountInfoDouble ( ACCOUNT_EQUITY );
Hello everyone! I am coding a simple indicator that plots the slope of the moving average with given period. The code compiles without any errors and warnings. However it does not plot anything on the window. Can you point out my mistakes
Hi It appears that a program's OnInit() and OnDeinit() do not get called if there is an indicator handle opened with ChartIndicatorGet() and not yet released with IndicatorRelease(). My indicators and EAs need to retrieve indicators' buffer data whilst the main indicator/EA is running, hence
Hello MQL5 community, I'm working on a complex custom indicator project in MQL5, and I'd like to find a way to automate the process of saving the compiled ex5 file directly to the indicators folder upon compilation. I've noticed that the MetaEditor doesn't have a Directories tab in the Options menu
Hello Im a beginner at MQL5, so im trying to add the first deviation bands to a VWAP indicator code I found, but is not plotting on the chart, i am missing something? //+------------------------------------------------------------------+ //| VWAP
  Freeze problem  (2)
l load hundred instances of an indicator in same code. Chart freezes and it is normal. But when I close the chart MT is still in hang. How could this be? Does it mean all hundred instances are still there? Even after closing charts
[Deleted]
#property version "1.00" #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 0 int handle; int hix,lix,lvb,_fvb,_clb,fvb=- 1 ,clb=- 1 ; double buff[]; //+------------------------------------------------------------------+ //| Custom indicator initialization
Hi I need an indicator that is able to detect major and minor Swing highs and lows, I found a perfect one but they didn't set the buffer values right so It is not possible to read any values and I would like to be able to read the values to build an EA, anyone has a similar indicator that ouputs the
Hello Guys! The OnCalculate() function is called when a new tick is received. Is it possible to call it at a specific timing? Example: int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double...
Does anybody has or know where to find this indicator ( https://www.mql5.com/en/code/21161 ) for MT4 (preferably as mq4)? I was not able to find such a file anywhere... Thank you in advance. OK, after further search, found it here: https://fxcodebase.com/code/viewtopic.php?f=38&t=61233
  signal indicator  (1)
Hello, Greeting, I want to design a simple signal indicator at the of overbought and oversold of an oscillator on "indicator_separate_window" using arrow; Do you know a similar code in the CodeBase section? Or can you advise what keywords I should search for similar codes