[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Improvement of AFL on-line function reference and AFL library



PureBytes Links

Trading Reference Links

Jo wrote:

>I'm trying to refine a CCI indicator by changing the bar color after
>the 5th bar above or below the 0 line. The indicator is almost
>complete but I'm stuck on changing the histogram bar color.
>

Let's extend that idea a bit.  Given that the indicator has been below 
the 0 line for more than 5 bars and is therefore, say, red:

How do we keep it red if the indicator pokes back above the 0 line for a 
single bar?  (Assuming that we consider a one-bar recovery insignificant.)

How do we turn it to some neutral color--say, white--if the indicator 
pokes above the 0 line for long enough to make us wonder whether it is 
changing direction (say, for example, three bars or more), but has not 
yet reached our more-than-five-bar trigger point?

I actually played with this general notion, with a different indicator, 
a couple of years ago but (as is all too often the case) got too 
twisted-up in the logic to produce a viable answer.

Thanks.

Owen


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/