it is giving an error in the last line stating too many parameters subhajit mukherjee
--- On Sat, 5/6/10, ram vel <r...@yahoo.com> wrote: From: ram vel <r...@yahoo.com> Subject: Re: [amibroker] Re: Request Is there any afl greencolor for bullish zone and red for bearish To: amibroker@yahoogroups.com Date: Saturday, 5 June, 2010, 3:55 PM Dear Mike Thank you and really appreciate your fast response. real nice of you regards rv --- On Sat, 6/5/10, Mike <sfclimb...@yahoo. com> wrote: From: Mike <sfclimb...@yahoo. com> Subject: [amibroker] Re: Request Is there any afl greencolor for bullish zone and red for bearish To: amibro...@yahoogrou ps.com Date: Saturday, June 5, 2010, 1:26 AM Here's one way to do it. Substitute your own definition of trend. Fast = MA(Close, 5); Medium = MA(Close, 25); Slow = MA(Close, 50); Plot(Close, "Price", colorBlack, styleBar); Plot(Fast, "Fast", colorDarkGreen, styleLine); Plot(Medium, "Medium", colorYellow, styleLine); Plot(Slow, "Slow", colorDarkRed, styleLine); UpTrend = Fast > Medium && Medium > Slow; DnTrend = Fast < Medium && Medium < Slow; Colors = IIF(UpTrend, colorGreen, IIF(DnTrend, colorRed, colorLightGrey)); Plot(1, "", Colors, styleOwnScale | styleArea | styleNoLabel, 0, 1, 0, -1); Mike --- In amibro...@yahoogrou ps.com, "rvlv" <r...@...> wrote: > > > Hi experts > > I remember having seen an afl > the chartspace is showing green color while price is uptrend and the chart > area gets red color if price becomes downtrend, and area gets ash or grey > color if price bars have no trend > > I am talking of chart area from top to bottom > > thanks for help > regards > rv >