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

RE: [AmiBroker] RE: IFF AND None for color conditions



PureBytes Links

Trading Reference Links

I don't think you can mix plot styles inline, try ...

Cond1 = StochD(7) > 70;
Cond2 = StochD(7) < 30;
Color = IIf(Cond1 ==1,5,IIf(Cond2 ==1,4,colorDefault));
Plot(Close,"Close",1, 4);
Plot(Close,"",Color,styleCloud );
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf Of Rakesh Sahgal
Sent: Thursday, March 06, 2008 1:25 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [AmiBroker] RE: IFF AND None for color conditions

Hi

Can a similar approach be adopted to modify the style of the plot??

For instance

Cond1=7 bar stoch >70;
Cond1=7 bar stoch < 30;

 if condition1 or condition2 is true the style should be thickline and dots and if not, then just thick line.

Thanks


Rakesh




On Thu, Mar 6, 2008 at 12:19 PM, Mr. Valley <valleymj@xxxxxxxxnet> wrote:
Cond1 = RSI(14) < 45;
Cond2 = RSI(14) > 55;
Color = IIf(Cond1 ==1,5,IIf(Cond2 ==1,4,ColorDefault));
Plot(Close,"Close",Color,64);
 
 
-----Original Message-----
From: amibroker@xxxxxxxxxps.com [mailto:amibroker@xxxxxxxxxps.com]On Behalf Of Mr. Valley
Sent: Wednesday, March 05, 2008 7:37 PM
To: amibroker@xxxxxxxxxps.com
Subject: [amibroker] RE: IIF AND None for color conditions

Cond1 =

RSI(14) < 45;
Cond2 =
RSI(14) > 55;
Color =
IIf(Cond1 ==1,5,IIf(Cond2 ==1,4,Null));
Plot(Close,"Close",Color,64);


__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___