Technical Indicators - page 34

I noticed that a MA and a CCI indicator gives some interesting early VISUAL signals if displayed in the same window, but the crossing lines have completely different scales and values. So I got this naive idea to merge the two and then wanted somehow adapt the different scales and use it in my EA. I
Hello im new to code , so can someone help me out to solve the errors given by the code bellow? Thanks. //+------------------------------------------------------------------+ //| CumulativeDeltaVolume.mq5 | //| Copyright 2021, Your Name Here
As title, i intend to build an indicator that all-in-one include rsi and moving average and parabolic SAR, like this below. But I know how to to include all the indicators into one file. I dont want to invoke too much files because it affect to backtesting time. Please any one give me some
Hey everyone, I am trying to build an EA that uses Detrended Price Oscillator. I am using the iCustom() function. I've read a lot of posts and the documentation as well, but it's not working and I cannot understand something. In the documentation it says: iCustom "[in] Custom indicator name. If the
Hi If an indicator uses multiple classes and functions, as one might have if writing a non-simplistic indicator, then the lack of support for array pointers makes it necessary to pass references to data arrays from class to class and function to function for every class and function that needs to
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