PureBytes Links
Trading Reference Links
|
Anthony,
Very nice, thank you! :)
I had to get rid of some line breaks when I pasted in the code to
indicator builder. It added a line break between one of the sets of
quotation marks and also it added a line break in between part of
one of the WriteIf functions. After those changes, it does exactly
what I wanted.
Maybe my last post didn't make sense to everyone. After looking at
it, in my code:
col=
Would be a new "word". Actually I just never knew what was going on
exactly. Someone had given me that code before I purchased
Amibroker. Then when I looked in the tutorial I saw similar code
for coloring bars. It too, used the "col" word. I just figured
that was some sort of function or something.
I think Amibroker's instructions aren't really suited for Newbies.
Maybe whoever wrote the instructions expected the users to have some
programming knowledge or something as a prerequisite of sorts.
Well, whatever.
Thanks for the help. I guess there are a number of ways to solve
the problem I was having.
Jim
---------------------------------------------------------------------
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
> Jim,
>
> Notice the Interval() function added.....
>
> //Price chart:
> col=IIf(C>O AND C>Ref(C,-1),colorBrightGreen,IIf(C<O AND C<Ref(C,-
> 1),colorRed,colorYellow));
>
> Plot( C, "Close", col, styleBar);
>
> Title= EncodeColor (colorWhite) + Name ()+"
> "+WriteIf(Interval()==86400,"Daily",WriteIf(Interval()
==432000,"Weekly",Writ
> eIf(Interval()==2160000,"Monthly",""))) + EncodeColor
>
> (colorDefault) + " O=$" + WriteVal (O, 1.2) + " H=$" + WriteVal (H,
>
> 1.2) + " L=$" + WriteVal (L, 1.2) + " C=$" + WriteVal (C, 1.2)
+ " "
>
> + WriteVal ((ROC(C,1)), 1.1) + "% " + WriteVal( DateTime(),
>
> formatDateTime );
>
>
>
> //Volume chart
>
> col=IIf(C>O AND Close>Ref(C,-1),colorBrightGreen,IIf(C<Open AND
C<Ref
>
> (C,-1),colorRed,colorYellow));
>
> Plot( V, "Volume", col, styleHistogram | styleThick );
>
> Title= EncodeColor (colorWhite) + Name () +"
> "+WriteIf(Interval()==86400,"Daily",WriteIf(Interval()
==432000,"Weekly",Writ
> eIf(Interval()==2160000,"Monthly","")))+ EncodeColor
>
> (colorDefault) + " Volume " + WriteVal (V, 1.0) + " " + WriteVal(
>
> DateTime(), formatDateTime );
>
>
>
> Anthony
>
> ----- Original Message -----
> From: "Jim" <bankedout@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, January 12, 2004 9:10 PM
> Subject: [amibroker] A couple ?'s
>
>
> > Hello,
> >
> > I have some trouble getting my custom colored price bars to
display
> > the same type of information as the "stock" price bars included
with
> > Amibroker.
> >
> > In the "stock" version, next to the ticker symbol at the top of
the
> > chart, it states the periodicity of the chart. For example if
you
> > are looking at a Daily chart, it says "Daily" next to the ticker
> > symbol. Weekly says Weekly, and Monthly says Monthly. I can't
> > figure out how to get that in my custom price chart.
> >
> > Second issue is that I'm having trouble getting information in to
> > the little hover box. That's not the real name I'm sure. Well,
> > let's say you are on a standard price chart in Amibroker. You
just
> > move your mouse pointer over a price bar. A little box pops up
> > telling you the Date, Value, Open, High, Low, Close, Volume, Open
> > Interest. In a few seconds or so, this box disappears. If you
move
> > your mouse cursor again, it appears with the new information you
are
> > pointing at (without clicking anything).
> >
> > Well, in my custom colored bar chart, my little hover box only
> > states Date, Value, Close. I don't get the Open, High, Low, or
> > Volume.
> >
> > My code for custom colored bars is below. Any help would be
greatly
> > appreciated.
> >
> > Thanks in advance,
> >
> > Jim
> >
> > **After you paste code, make sure Scaling is set to "Automatic",
and
> > in the Grid Lines section: "Middle" and "Show Dates" are
checked**
> > --This color scheme looks best with a black background IMHO--
> >
> > col=IIf(C>O AND C>Ref(C,-1),colorBrightGreen,IIf(C<O AND C<Ref
(C,-
> > 1),colorRed,colorYellow));
> > Plot( C, "Close", col, styleBar);
> > Title= EncodeColor (colorWhite) + Name () + EncodeColor
> > (colorDefault) + " O=$" + WriteVal (O, 1.2) + " H=$" + WriteVal
(H,
> > 1.2) + " L=$" + WriteVal (L, 1.2) + " C=$" + WriteVal (C, 1.2)
+ " "
> > + WriteVal ((ROC(C,1)), 1.1) + "% " + WriteVal( DateTime(),
> > formatDateTime );
> >
> > I use this volume below the chart, so the bar colors match:
> >
> > col=IIf(C>O AND Close>Ref(C,-1),colorBrightGreen,IIf(C<Open AND
C<Ref
> > (C,-1),colorRed,colorYellow));
> > Plot( V, "Volume", col, styleHistogram | styleThick );
> > Title= EncodeColor (colorWhite) + Name () + EncodeColor
> > (colorDefault) + " Volume " + WriteVal (V, 1.0) + " " +
WriteVal(
> > DateTime(), formatDateTime );
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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/
> >
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/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/
|