Codes

Non Repainting Supertrend Indicator for MetaTrader 4

This is a new implementation of the SuperTrend indicator for MetaTrader 4. The SuperTrend indicator is an application of the concept of MAE (maximum adverse excursion), which was introduced by John Sweeney in the mid-nineties

Forum

Clarifications on Indicatiorcounted() and EMA

Hi can anyone give me clarification of Indicatorcounted funtion. In the below function Does Indicatorcounted plays any major role in EMA function. If yes how the below function differs from normal EMA plotting int li_4 = IndicatorCounted (); if (li_4 < 0 ) return (- 1 ); if (li_4 > 0 ) li_4--; int

What is the difference between the two EMA funtions

funtion 1: for (int i = 0; i < bars-1; i++) { ind[i] = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE, i); } funtions 2: ind = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE, i);