Quote:
Originally Posted by ahmad.ariffin
Finally, I can upload. So, here are the screenshot, uptrend and downtrend.
UPTrend
DOWNTrend
Look at the UT SS. In both situation where TrendCCI goes below 0, the trend still UT. Coz the 6th bar doesn't complete. The level of TrendCCI (mark by line) is positive, then again TrendCCI fall below 0 and tried to establish DT but again, the 6th bar is not completed, the trend remain UT.
Now at DT SS. The TrendCCI going up, above 0 and tried to establish UT but the TrendCCI fall below 0 before 6th bar is complete and the trend continue. But, the indicator tell that TrendCCI re-establish DT while it not suppose to since the trend remain DT.
Uh, I'm not good in English.. hope you can understand what I tried to explain Linuxser.
|
Ahmad, if you using your changes (post 96
http://www.forex-tsd.com/180610-post96.html ):
if(TrendCCI[i-1] > 0 && TrendCCI[i] < 0) {
if (trendDown > Trend_period) trendUp = 0; }
then no wonder - you set it to read bars from the future (which it doesn't know) but it would repaint history and lye pretty well so...
see, if you improved something else too - it causes such a mess, don't even go there ...