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

[spam] Re: [amibroker] Question for Moderator



PureBytes Links

Trading Reference Links

Albert,



do you mean something like this:



MovingAverage=MA(C,28);

Plot(C,"Close",colorBlack,styleCandle);

Plot(MovingAverage,"MovAvg",colorRed,styleLine);

//Ribbon

Plot( 100, /* defines the height of the ribbon in

percent of pane width */

"Ribbon",

IIf( C > movingAverage, colorGreen,IIf(Close < MovingAverage,colorRed, 0 )),

/* choose color */

styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );



Anthony

----- Original Message ----- 
From: "quantum69_70" <quantum69_70@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, January 30, 2004 7:35 AM
Subject: [amibroker] Indicator to highlight above MA


> Hi All,
>
> Can someone point me in the right direction on developing an
> indicator that can highlight sections of a chart that's above an MA?
>
> I'm also hoping to be able to set criteria of highlighting secitions
> of the chart that are X number of days above the MA, and that X
> number can vary or even be different numbers with different numbers
> being highlighted as different colours. eg. 10days=yellow,
> 8days=purple, etc.
>
> I'm looking into AFL, and it looks like I would need to do it by
> using a starting reference time which crossed MA and then looping
> forwards or backwards in time until the next time it crosses. This
> would be the obvious solution of doing this.
>
> Any assistance would be greatly appreciated.
>
> Albert
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/