Forum

multi timeframe indicator

Hello, I have to create a multitimeframe indicator. My problem is to find iMA value for 5 different timeframe. As here: int counted_bars=IndicatorCounted(); if (counted_bars< 0 ) return (- 1 ); if (counted_bars> 0 ) counted_bars--; int limit= Bars -counted_bars; for ( int i = limit- 1 ; i

how to create a line that follows a value

Hi, I would like to create in the indicator a line that follows a calculated volume and that changes color (red when sell and green when buy). I tried with OBJ_TREND but I get a straight line (probably combining only two values) //primo punto datetime t1=Time[ 0 ]; double p1= Point * 100

how to add arrows to indicator

Hello, I need to develope and indicator who show arrow down with this condition: if (iMA(Symbol(),0,10,0,MODE_SMA,PRICE_CLOSE,1)<iMA(Symbol(),0,40,0,MODE_SMA,PRICE_CLOSE,1) && iMA(Symbol(),0,10,0,MODE_SMA,PRICE_CLOSE,2)>iMA(Symbol(),0,40,0,MODE_SMA,PRICE_CLOSE,2)) and arrow up with this condition