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

RE: [amibroker] Two CSI databases in AB (was Code challenge)



PureBytes Links

Trading Reference Links

Jim,

I sent you the same solution...look again...I have Line=1;

Line = 1;//IIf( High > Low, 1,0 );

Plot(Line,"1",colorBlue,styleLine);

Anthony

----- Original Message ----- 
From: "wd" <wdjd@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 02, 2004 7:13 PM
Subject: Re: [amibroker] Code help


>
> Anthony,
> It worked on mine also, but that was crude and forcing a '1'.
> Nigel (Thanks Nigel) sent what I wanted to know...Plot(1, "1", colorBlue,
> styleLine);
> which is how to plot a horizontal line at 1 (or whatever).
> Thanks
> Jim
>
>
> > Jim,
> >
> > This works on my machine:
> > col = IIf( Close > Ref( Close, -1 ), colorBrightGreen,colorRed );
> >
> > Vol= Volume;
> >
> > Avg=MA(Volume,20);
> >
> > VA=Vol/Avg;
> >
> > Plot(VA,"Volume", col, styleHistogram );
> >
> > Line = 1;//IIf( High > Low, 1,0 );
> >
> > Plot(Line,"1",colorBlue,styleLine);
> >
> > Anthony
> > ----- Original Message -----
> > From: "wd" <wdjd@xxxxxxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Tuesday, March 02, 2004 6:29 PM
> > Subject: [amibroker] Code help
> >
> >
> > > I'm new to AB and in need of some code help. I looked through the help
> > > section, online tutorials, archives, etc. and cannot find anything
about
> > my
> > > problem.
> > > I'm trying to simply plot a line at "1". I've tried everything I can
> think
> > > of and nothing worked, so I just forced the code using
> > > Line = IIf( High > Low, 1,0 );
> > > This does work, but there must be a better way. Below is the indicator
I
> > > want...and it does work in it's own crude way.
> > > Can anyone help with this?
> > > Thanks
> > > Jim
> > >
> > > col = IIf( Close > Ref( Close, -1 ), colorBrightGreen,colorRed );
> > > Vol= Volume;
> > > Avg=MA(Volume,20);
> > > VA=Vol/Avg;
> > > Plot(VA,"Volume", col, styleHistogram );
> > > Line = IIf( High > Low, 1,0 );
> > > Plot(Line,"1",colorBlue,styleLine);
> > >
> > >
> > >
> > >
> > >
> > > 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.583 / Virus Database: 369 - Release Date: 2/10/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
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> 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.583 / Virus Database: 369 - Release Date: 2/10/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/