Disliked{quote} thankyou for your reply :-) i was able to find answers here https://www.youtube.com/watch?v=i7GPCjmphAI if anyone else has misunderstanding of the differences between IMA and IMAONARRAY i know this is another noob question but i cant find clear answers. does anyone know the standard way of achieving color change on a moving average so that bullish is green and bearish is red etc. thankyouIgnored
1. Have 3 Buffers for color - one for Uptrend, one for DownTrend, one for sideway
2. Have 1 Buffer for MA value
2. Define your TrendThreshold value ( in TMA ATR, it uses 0.01 )
3. Now, get slope of MA depending on your period, you can compare value from previous MA to current MA ( 1 - PrevMA/CurMA )
4. Fill the buffer based on slop value ( if more than your trend threshold, fill green, less- fill red, otherwise, fill sideway buffer )
1