Technical Indicators - page 13

Hello everyone, I hope you're well. I'm still a beginner and I'm finding that when I remove an expert advisor then I still see the comments, so I did a quick search and found this solution , so I added an empty comment in the OnDeinit function: void OnDeinit ( const int reason) { Comment ( "" );
Hello everyone, can anybody please explain to me, why there is a limitation of the width and size of objects within MQL5, where MQL4 didnt have these limitations? In MQL4 you can size objects like you want to, but within MQL5 there´s a limitation to width 5 for example. I can´t see the reason behind
for ( int i=start; i<rates_total && ! IsStopped (); i++) { ExtSignalBuffer[i]=( low[i]-open[i])* 1000000 ; if (open[i]-close[i] > 0 ) // in case bear indicator_type2 [i] = clrAqua ; //change color ExtSignalBuffer[i]=(low[i]-close[i])* 1000000 ; }
This indicator is similar to the RSI. The idea is to calculate net_profit / [sum(positive returns) + abs(sum(negative returns))] in a rolling window. But after I changed the code in the main loop, the terminal says: 'for' expressions are not allowed on a global scope //--- the main loop of
Hi, I'd like to use my Mt5 custom indicators also on Mt4. They compiled with 0 Errors on Metaeditor 4, however, when applied to a Mt4 chart I get the unspecific error message: "indicator on custom buffer is not supported yet" What does that mean? Thanks, Tim
  RSI MAKER  (3)
I want my indicator to mark all bearish candles that have RSI below 30 and all bullish candles that have RSI above 70. I'm not sure where the issue is. //+------------------------------------------------------------------+ //| RSI_Marker.mq5 | //|
hi guys . I'm new in indicator and English language too.I've tried to convert an indicator from MT4 to MT5 . i downloaded an include file ("<mql4_2_mql5.mqh>") to make my work easier . this is my code that give me "array out of range in Line ( 171:18 )" error will you help me to solve my problem
hi this code is mql5 script and print the ma value of D1 period and work as it expected: void OnStart () { int mahandle; mahandle= iMA ( NULL , PERIOD_D1 , 1 , 0 , MODE_SMA , PRICE_MEDIAN ); double mavalue[ 1 ]; CopyBuffer (mahandle, 0 , 0 , 1 ,mavalue); Print (mavalue[ 0 ]); } but same
Dear Fellow Members The documentation says: ERR_INDICATOR_WRONG_HANDLE 4807 Wrong indicator handle I have included following check, but still in live chart I get error 4807 though none of handles return no error: if (mHandleFast == INVALID_HANDLE || mHandleMid == INVALID_HANDLE ||
can anyone help with this datetime time6= D'2024.07.10 07:15' ; string symbol= "EURUSD" ; ENUM_TIMEFRAMES tf= PERIOD_M5 ; bool exact= false ; //--- If there is no bar at the specified time, iBarShift will return the index of the nearest bar int bar_index=iBarShift(symbol,tf,time6,exact);
Trying to convert an mql4 to mql5 breakeven indicator but nothing is drawn on the chart. My mql5 conversion What is wrong ? //+------------------------------------------------------------------+ //| Average Price v3.0.mq4 | //|
I have two custom indicators for MQL4 that both fluctuate with a median value of 0. When I put both these indicators into the same SUBCHART, their respective 0 lines do not overlap. Is there any way to overlap the 0 lines? The pic shows two 0 lines are not overlap. Thank you for your help in
Here's what I see when I start the MT5 terminal, also when its running but my internet connection is interrupted. The indicator plot shows briefly (subsecond) and then disappears: All I need to do is switch the timeframe of the chart to anything and then back and the window shows up like it should
Hi Not sure if this question is in the correct topic area. If not apologize for it I have a small script (NOT EA) and would like to apply chart templates when a change occurs. In the end I even tried FUL path yet I keep getting error 5002 (sometimes 5019) string templateFolder =
Hi. I've created a new indicator with MQL5 by using the wizard. I need three buffers for my logic, but only the first one is created. This is my code: #include <MovingAverages.mqh> //--- input parameters input uint ShortInterval= 10 ; input uint LongInterval= 30 ; //--- indicator buffers
Hello, recently I starting coding my own indicator and I'm stuck so I decided to post here as this site is where I got all the information and answers before by looking to other users questions. But now I can't find one solution in this forum that works for me and I would like to understand why is
  can not sync trend line  (15   1 2)
Hi, if someone faced this issue before. Please advise me. I created trend line indicator which has start date and end date of moving vertical line. Indicator works correct. I run it at 1h timeframe and it drawn trend line. Then I applied synchronizer at 1h and 5minute timeframe. trend line could
Hello. I am trying to get the pixel values from a chart to use in a convolutional neural network but I don't know where to begin. How do I get the pixel values
Here's what I print out when an iCustom() fails: ChartID < 133608959982095523> symbol < USDJPY > TF < PERIOD_M12 > : [Slope of MA Signals MJM.mq5 [OnInit] LINE 272 - Indy >>Slope(1) of iMA(7,CLOSE) < < failed! Error<4002> [WRONG_INTERNAL_PARAMETER] sSymbol < USDJPY > eChrt_TF < PERIOD_M12 >
Hi friends, I am doing a multisymbol indicator that is already working OK for two symbols that have the SAME market hours. My problem is for multi symbols with different market hours. At first I want just to plot the close price of the second symbol in a separated screen, but later on I want to
hi I want create MACD Classic in MQL 5. in this macd the signal line also should the create with Mode_EMA. (all of other indicator i find the Signal line in sma mode and can not be changed). My entire code is like below. I do not have the syntax error, But the indicator not run. please help
in Indicator Data window,the numbers (after dot) show bunch of zeroes: i need to be shown there only 2 decimals after dot. used this function , but still doesnt help, there are still ZEROes shown... double RoundNumber(double number, int digits) { number = MathRound(number * MathPow(10, digits));
Dear Traders, How do i create such indicators on the top screen shown in the screen shot? The one i have is for MT4. wanted to incorporated in MT5 kinda doing mapping and got tired to kept selecting the text button. wanted to establish a custom wording for my analysis. can any one help please
--------------------------------------------------------------+ //| adx screener.mq5 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2024, MetaQuotes Software Corp." #property
I need someone who can guide me on how to code indicators or who can teach me mql5 coding language. I tried to do some searching but I can't get the simple and fast way as a beginner. Thanks in advance for anyone who can give a helping hand
Hello ALL I have created CIndicatorBase, CiMA.mqh and iMA.mq5. The challenge I am facing is as how to use Moving Average Functions for calculating MA on a single Index. I have populated custom price array (for input to the function) for required number of bars needed for MAPeriod. I have tried to
Hi, I am just starting developing in MQL5, I am usually developing Pine Script Strategies. As a learning purpose, I am intending to replicate an Ichimoku EA I have developed in pine script. In my Pine Script EA I am merging the Kijun-Sen & Tenkan-Sen the following way : Pine Script 5 // Smoothing
Hi everyone, I created an expert advisor that loops among all open charts using MQL5's ChartFirst() and ChartNext() functions. The code is organized as follows: GraphId=ChartFirst(); while (GraphId > 0) { GraphSymbol=ChartSymbol(GraphId); // (process graph) GraphId=ChartNext(GraphId); } However, for
Dear all, I created the code for the indicator below, whose objective is to show a theoretical value for the minidollar (WINFUT, which is the USDBRL symbol) depending on the variation of the minidollar (WDOFUT, brazilian main index symbol). The rationale is: if WDOFUT is falling 0.5% I reverse the