Technical Indicators - page 6

It would be awesome, before using IndicatorCreate, to get a total/count of the indicator's input parameters. Where can I get this in MQL5
hi. when i want to copy 100 number of rsi information to buffer , it copy all time information to buffer and plot unwanted line in all time. //+------------------------------------------------------------------+ //| 3 time.mq5 | //|
This one burned a full three days dogging it. I've been trying to call this iCustom indicator. No matter what I do, it keeps returning zeros -- no data. I've coded these many times before and haven't had a problem. What's been more mind-boggling, the indicator works just fine when added to a chart
Hey Guys, Able to help create a notification for this indicator? (Alert & Push Notifications) This indicator shows a up or down arrow base on this, Moving Average 50 > Moving Average 100 & Moving Average 100 > Moving Average 200 & MACD > 0 & Stochastic < Oversold = UP ARROW Moving Average 50 <
It's got type and values, why not let us say that the internal name of the variable is? It would really help in check if we got things out of order, and besides, it's just polite, don't you think? But the real rub here is: What do you do about an indicator you're trying to set up that wants a
I've written an indicator for the Ulcer Performance Index, also known as the Martin Ratio. It works, but on chart refresh, it often doesn't recalculate and update the display correctly. I used code from the Ulcer Index to try to prevent constantly recalculating the whole thing, but it still has
i have the code below for creating simple order blocks. however it throws an index out of range error once i shift to higher time frames. Can you help me understand where i got it wrong: 2024.04.13 08:29:06.242 AM_Fractal_OrderBlock (AUDUSD,MN1) array out of range in 'AM_Fractal_OrderBlock.mq5'
I just wanted an indicator that would give me each bar's index value, to make debugging easier. Simple code is at the bottom of the post. I know rates_total is significantly more than the oldest bar that shows on the chart. What I don't know is whether the chart is just limited to 99998 bars (or
The question has been dogging me for a while, are there any advantages/disadvantages one over another? I'd just as soon use _Symbol and _Period, are there any downsides
Hi, I am trying to convert an indicator from MQL4 to MQL5. I am struggling with the last part of it, which collects the highest and lowest prior values. This indicator is suppose to add and subtract the ATR to the high and low of each bar, and from a given lookback period select the largest or
Good morning I have a problem with testing it for one of my codes and I cannot test it in the debugger because it generates an out of range, but not on the terminal where it works Here is the code gf_TfNumberbars = Bars ( gf_Symbol, gf_TFDef); g_message += StringFormat ( "Number of bars retrieved =
I've been looking at the Custom Moving Average.mq5 code that is in the Indicators\Examples folder. My understanding of the calculation of a simple moving average is as follows: Simple Moving Average (SMA): This is the most common type. The formula for calculating an SMA is : SMA = (X1 + X2 + X3 +
Hello all, I've made this simple indicator from the Heikin Ashi template of Metaquotes and added some code to plot 2 EMAs calculated from heikin ashi close price and to plot bullish and bearish cross over signals from the two EMAs. However when I modify the code (pasted below) to change appearance
Dear Members I have failed to identify the cause 'array out of range' error in my custom indicator code as below: I understand that custom indicators handle the array sizing on it own, and hence did not attempted to set the size. input int
Does anyone know of such a screener, or could someone create one for me as a paid job ? I'm looking for a multi-timeframe, multi pairs scanner that can be customised for things like MSS, FVG etc. Thanks
to import an indicator into my ea should I make it a resource? or would the effort to change my indicator into an include file, be worth it? NOTE: i will be using the ea on several symbols + charts. NOTE II: working on a mt5 ea
  Zigzag indicators  (646   1 2 3 4 5 ... 64 65)
Different zigzag's indicators please post here
Getting the ChartID is easy. You'd think there would be a corresponding human-readable name or description or at least that little readout at the top left corner of every chart: Anything would be better than nothing. How can I get that info out of a function or the terminal given the ChartID
Hello Everyone, I am currently in the process of translating one of my mt4 codes to mt5. I've noticed something unusual when working with my code and its that when having an event take place in OnChartEvent, the event isn't processed until after a new tick. The code below shows the isolated
  iCustom not working  (15   1 2)
Hello everyone I can't get the call to iCustom to work. The called indicator is located in the \Indicators folder. It returns INVALID_HANDLE. I have also tried the path "\\Indicators\\Bollinger_bands_1b.ex5" and "Indicators\\Bollinger_bands_1b.ex5". The calling indicator program is in the Indicators
Does anyone has a MQL5 version of the Chande Kroll Stop indicator willing to share? I found the MQL4 version of it, but before start translating, wanted to ask if maybe someone already has it and is willing to share/post it
Is there any way to do this, such as maybe the indicator could run a script that kills the indicator somehow, or tells the terminal to do it? There are times I'd like a logic path to end in "quit" or "KillMe" or something
  ATR Trailing Stop - Help  (98   1 2 3 4 5 ... 9 10)
Hi everyone: I have absolutely no coding experience in mq4 indicators, and am asking for help in creating an indicator. The volatility trailing stop that uses a multiple of ATR has been of great use to me in Metastock when I used to trade equities, and I've been looking for an equivalent in
int OnInit () { cMASlow = new CiVWMA(gSymbol,gTimeFrame,MAPeriodSlow,VWMA_AppliedPrice,VWMA_MAMethod); cMAMid = new CiVWMA(gSymbol,gTimeFrame,MAPeriodMid,VWMA_AppliedPrice,VWMA_MAMethod); cMAFast = new
What and where is the setting/function that stops the input parameters panel from popping up when I add my indicator to a chart? I was surprised to see it because my indicator has no input parameters declared. I thought there would be an #property that controls if it's displayed or suppressed, but I
Learning for MQL5 coding for the past two weeks. This is how far I have gotten trying to translate a pine script code. It is working but not giving me the signals as in the TradingView version. What did I do wrong? Trying to convert this Pine Script: //@version=4 //Full credit to AlexGrover: study(
Hello guys please I need help in fixing a bug i've been having a problem with for some time now. So basically i'm trying to build a portion of code that helps me to identify peaks in the market and store them in a 2D array so that I can access them later to use them in drawing trendlines and
Never seen the like. I have a simple test for a boolean value... // bDoDirPvt = false ; iPvtTrdIX = - 1 ; if (bIs1stPsn == false ) { if (iTrdIX > 0 ) bDoDirPvt = (iaTrdDir[iTrdIX- 1 ] !=
Unfortunately, in the strategy tester of MQL5, the crosshair does not display the price change, as the crosshair does in the main chart. This is critical to quantify changes in prices while debuging codes. As such, I am exploring the option of creating an indicator that performs the function of the
I am proud of myself with how far I have come with my coding knowledge without any experience and relying only on YouTube and Google for help. I have been trying to convert an indicator from Trading View Pine Script into a MT5 indicator and have learned so much along the way. I have learned how to