Forum

Calculation using 2 arrays indicator issue

Hi all, So i am building an indicator which stores 2 values in an array which are to be used for the shift function in the High, Low and the standard rsi indicator. However, i seem to be having an issue calculating the movement between the high and low and the rsi when using the shifts from each

Issue reading data from custom indicator

Hi all, Hoping someone can assist with my issue. I have a custom indicator which I created with 7 buffers: int start() { int counted_bars=IndicatorCounted(); int limit= Bars -IndicatorCounted(); int k; if (counted_bars< 1 ) for (k= 0 ; k<limit- 1 ; k++) k= Bars -counted_bars- 1

average high of a custom array within indicator

Hi all, So i'm needing a little advice to calculate the average high of a custom array set of the the last x candles. I calculate a live spread of 3 instruments which is held in an array called 'LiveSpread' and i then calculate the moving average of this which is held in a buffer: double livespread

iCustom multiple instances on strategy test - casting issue?

Hi all, So not looking for any free code, only a second set of eyes on the inputs for an indicator and EA :-) Usual issue, indicator works absolutely fine when applied to a chart, however when i attempt to use via iCustom in an EA I have multiple instances being applied on my back testing using the

Indicator Null/Empty Value

Hi all, So i have been going around in circles trying to use an indicator within an EA i have built, however i'm struggling to recognise the values behind 2 of the buffers are populated with a value. I'm fully aware of how EMPTY_VALUE works and have previously built EAs using indicators with this

Issue passing pair string input for indicator via EA

Hi all, So i'm having issues passing the pair string input for an indicator im trying to use within EA. When using the indicator directly on a chart and entering the required symbols as inputs I have no issues and the indicator displays as expected, however when calling the indicator via iCustom the

MT4 - Divide issue within indicator calculation

Hi all, Starting to play around with custom indicators more and I've hit a roadblock with the divide issue. I'm calculating the spread difference between a synthetic price and its underlying (dividing the close price of 2 pairs less the underlying currency pair) which is then displayed as a moving

Data Screen Technical Indicator - symbols input

Hi all, My first post here after standing on the sidelines. I'm more from a markets side rather than a coder/developer so apologies in advance for any shockers! I'm trying to amend a data screen technical indicator , currently the indicator displays all symbols in my MarketWatch thanks to