PureBytes Links
Trading Reference Links
|
Hi John,
Here's one version.
Graph1 = RSI(7);
Buy = Cross (RSI(7),20);
Sell = Cross (80,RSI(7));
Graph1Style = 3;
Graph1BarColor= IIf(Buy,5, IIf(Sell,4,6));
Hope it helps
Tom Supera
----- Original Message -----
From: <jmp23834@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, November 01, 2001 11:25 PM
Subject: [amibroker] Code help
> I am trying to change the BarColor of a graph when the buy/sell
> signal changes. The following codes gives me the results I want but I
> can't help think there is an eaisier way.
>
> Is there?
>
> BarColor =IIf(Ref(BarsSince(Buy),-1)<Ref(BarsSince(Sell),-1),5,4);
> Graph1 = TrailStop; Graph1Style = 512;
> Graph1BarColor=Barcolor;
>
> John Pyle
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
|