Technical Indicators - page 31

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
//+------------------------------------------------------------------+ //| RSI.mq5 | //| Copyright 2009-2017, MetaQuotes Software Corp. | //| http://www.mql5.com |
[Deleted]
Hey, I'm trying to plot a custom ADX line that plots a different coloured ADX line based on DI+ > DI- or vice versa. For some reason it wont change the colour when plotting on chart, could someone give me an example on how to do that? thank you for your time
[Deleted]
I am trying to fix an indicator which i converted into mq5 from mq4 however there is some error which breaks flags with error "array out of range" when i change period to 8 or switch timeframe, any help on fixing this is appreciated
Hello, It's the firs time im writing on this as a thread, I don't know if its correct but someone knows about having the normal ATR(14) indicator on the Daily period to count the past data without the current open candle? because it can mislead the calculations of the ATR if i look at it after 2h of
Hi i wrote this indicator starting from another more simple one... When i lauch it or changing TF or refreshing everything is fine, but after that moment the result are wrong. i've made a comparison of values between a freshly launched one and another one running for a while and results are
Dear Experts I'm new in programing and i need the maximum Upper Williams Fractals between 6 last Upper Fractals @ daily timeframe. So i tried to code these lines below: double Fractals_Daily_UPPER_LINE[] ; double Fractals_Daily_LOWER_LINE[] ; ArraySetAsSeries (Fractals_Daily_UPPER_LINE, true )
Couldn't find the calculations online. Does anybody know where I can find this
Hello everyone, I'm a new member. I hope you can help me to solve this problem. I would like to create a daily channel using .csv data format I create this data using excel and would like to use it in my charts. To be clear, I'm posting an image. Thank you for your attention and help. Paul
Hi all, I was having an issue with a HTF moving average calculating the entire rates_total on every loop due to a badly designed for loop. I have created an indicator to help debug this and redesign the loop so that I am only calculating the most recent bar (after the intial loop through the whole
  PLOT_ARROW  (1)
In indicators, you can use a code function to change the drawing type of the points on the chart. In fact, this happens using the following function: PlotIndexSetInteger(0, PLOT_ARROW, 230); Where can I get the list of these numbers and the shapes that appear on the chart by applying each of these
I'm trying to use SetSymbol indicator on MT5. After attaching indicator everything seems to work but then suddenly indicator disappears from the chart. Indicator window still shows indicator and also there is no error showing. SetSymbol.cpp #define PROPERTY_COPYRIGHT "Copyright © by iDiamond @
  RSI Cross  (3)
Hi Guys I was wondering if anyone has an indicator that draws an arrow when the RSI cross above the OB and below the OS. All i can find is arrows or alerts when the RSI enters the OB or OS zone. Im after an indicator that draws when the RSI exits the zones and candle closes. Many Thanks
Hi I'm looking to someone that can convert this indicator into an MT5 : If you help me, I will share my strategy with you :-D Thanks // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // @version=5 indicator( 'Test' , overlay= true
Hi, I have create a new indicator, it is my first one and I have an issue to display the value in my chart. The value is stock in my array Buffer_yhat1 and the value comes from my function -> nadaraya(close, ArraySize(close), h) Can you help me ? Here is the code
Hello, can anyone code fractals indicator counter? If lower fractal is lower then previous lower fractal then number is 2, if another lower fractal is lower then previous fractal then number is 3 and so on. If lower fractal is higher then previous lower fractal then number is 1 again. It will be