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@yahoogroups.com [mailto:[EMAIL PROTECTED]
Behalf Of Rakesh Sahgal
  Sent: Thursday, March 06, 2008 1:25 AM
  To: amibroker@yahoogroups.com
  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 <[EMAIL PROTECTED]> 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@yahoogroups.com [mailto:[EMAIL PROTECTED]
Behalf Of Mr. Valley
      Sent: Wednesday, March 05, 2008 7:37 PM
      To: amibroker@yahoogroups.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);




  

Reply via email to