Technical Indicators - page 10

Im working on this indicator, it draws swing points..I just need a more efficient way to perfom this task..my code appears messy to me...some times it misses a point. //+------------------------------------------------------------------+ //|
HI there , is there anyone here who know where to find a Script or Indicator for changing a Linear (Arithmetic ) Chart in MT4/MT5 into a Logarithmic Chart in MT4/MT5 ? I appreciate any help .Thanks Greeds Zack
//+------------------------------------------------------------------+ //| MondayBreak.mq5| //| Copyright 2024, MetaQuotes Software Corp. | //| https://www.mql5.com |
  QQE Cross over alerts on screen  (47   1 2 3 4 5)
Hi Can anyone modify the QQE to place an arrow when there is a crossover ? Thanks
  Moving Average  (1548   1 2 3 4 5 ... 154 155)
Post all MA indicators here
greetings fellas, I want to ask if anyone have reference about making symbol as indicator but other than this reference https://www.mql5.com/en/docs/customind/indicators_examples/draw_candles
Hello Friends Please Help me check while the Histogram isn't drawing properly. I'm trying to convert from mql4 to mql5. I'm getting correct buffer values but the drawings are not correct #property copyright "" #property link "" #property version "1.00" #property strict #property
Hi, I coded a small indicator that uses not only OHLC of the symbol where the indicator is placed, but it also uses OHLC from other symbols to generate signals. At the very first tick of a new candle I try to get the OHLC from the symbols with CopyRates into a MqlRates struct. MqlRates firstRates[];
The iTime() function (and no doubt other i____() functions) return 0 if they get an index that's greater than the TERMINAL_MAXBARS value returned by TerminalInfoInteger(). Rates_total, Bars(), and iBars() have no trouble returning bar counts that exceed TERMINAL_MAXBARS. The standard arrays passed
Hello, I want to have a chart with an indicator that will only display information that I give. So, for efficiency purposes I would like to know if there is a way to "kill" that chart and only respond to my functions. That way, it won't have to calculate anything nor draw anything except when I
Hi everyone I have written an expert that runs custom macdonrsi indicator on 3500 Renko charts with different size candles. In the end, when I want to delete the expert or change the profile, it automatically tries to close all these indicator handles at once, and that's why it hangs and I have to
  Forecasting indicators  (344   1 2 3 4 5 ... 34 35)
Please find some indicators which are forecasting something. First is i-DRProjections_v.0.1. This indicator shows the support and resistance of current day forecasting on the base of previous day. All the calculation is based on Thomas R. DeMark book "New Science of Technical Analysis".
Hi Can someone please help me have a look why is it on my computer(first image) the MCDX blue lines matching the bullish candlle which is WRONG, but the(second image) on someone elses computer the MCDX blue lines matching the bearish candle which is CORRECT, why is there 1 bar delay? Thanks in
Hello, refactoring my code I've found a place where instead of comparing two symbols with StringCompare, I was doing == of both ChartSymbol(chartID). Suposedly ChartSymbol() returns a string and when comparing two strings if == is used, only returns true if both string are pointing to the same
This indicator keeps track of the time remaining before the 4hr candle opens. The time can be specified by the user in intervals of 15 minutes such that the total time does not exceed 4 hours (i.e. 240 minutes). The indicator is supposed to draw a rectangle once the countdown to the remaining time
I'm trying to create a recency-weighted performance indicator that averages the annualized performance of various lookback periods. For each lookback period, it uses a 5-day moving average to avoid the problem of idiosyncratic results depending on the daily results of the specific lookback day. I'm
Greetings, Below I have a function intended to determine the intersection of 2 ('Object Trend') lines drawn on a chart. The issue is that the 'intersection time' being reported does not seem to equal what I am seeing visually on the chart. In the function the 'time' of the intersection is set as
Hello, I've been all morning stuck with this problem. My indicator has a function to draw a rectangle label and a label so it shows a label with background. The problem comes that when I use the ObjectGetInteger to get the xSize of the label to apply it to the rectangle label it doesn't work. Tried
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 | //|