PureBytes Links
Trading Reference Links
|
CS,
Thank you very much. Adding a few line breaks in the right places
got me exactly what I wanted for the pop up "hover box".
Plot( C, "\n O:" + O + "\n H:" + H + "\n L:" + L + "\n C:" + C
+"\n\n V:" + WriteVal(V,1) + "\n\n", col, styleBar);
Complete code is below:
//Price chart:
col=IIf(C>O AND C>Ref(C,-1),colorBrightGreen,IIf(C<O AND C<Ref(C,-
1),colorRed,colorYellow));
Plot( C, "\n O:" + O + "\n H:" + H + "\n L:" + L + "\n C:" + C
+"\n\n V:" + WriteVal(V,1) + "\n\n", col, styleBar);
Title= EncodeColor (colorWhite) + Name ()+" "+WriteIf(Interval()
==86400,"Daily",WriteIf(Interval()==432000,"Weekly",WriteIf(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 );
This is exactly what I was after in my original post. Thank you
everyone. Plus I have learned quite a bit from the process.
Jim :)
---------------------------------------------------------------------
--- In amibroker@xxxxxxxxxxxxxxx, "CS" <res1wgwl@xxxx> wrote:
> Line returns (\n) work within PLOT too.
>
> Try:
> Plot(C, "\n O:" + O + ", H:" + H + ", L:" + L + ", C:" + C +" \n
V:"+ WriteVal(V,1) + "\n\n", mycolor, styleCandle);
>
> -CS
> ----- Original Message -----
> From: Jim
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Monday, January 12, 2004 6:57 PM
> Subject: [amibroker] Re: A couple ?'s
>
>
> Graham,
>
> Wow, you just totally blew my mind here. I had no idea we could
> make our own words with their own definitions. This changes
> everything. I read the User's guide a couple of times and I
never
> caught that fact.
>
> Anyway, I will work with my new knowledge and figure out how to
put
> what you have given me into my code. I may choose a different
word
> than doodle, but I like the definition. That is so cool what we
can
> do with this software.
>
> Thanks for the enlightenment.
>
> Jim
> -----------------------------------------------------------------
----
> --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx>
wrote:
> > Jim
> >
> > Easy first:
> >
> > As far as showing the price arrays in the pop up box,
> >
> > mycolor=IIf(C>O, colorBlue, IIf(C<O,colorRed,colorBlack));
> >
> > Plot(C, ", O:" + O + ", H:" + H + ", L:" + L + ", C:" + C +"
V:"+
> > WriteVal(V,1), mycolor, styleCandle);
> >
> > Got my curiosity on the chart title, here is a "doodle" I
quickly
> put
> > together
> >
> > doodle =
> > Min(Ref(DateNum(),-1)-Ref(DateNum(),-2),Ref(DateNum(),-2)-Ref
> (DateNum(),-3))
> > ;
> >
> > ChartSetting = WriteIf(doodle<7,"daily",WriteIf(doodle>=7 AND
> doodle<20,
> > "weekly", "Monthly"));
> >
> > Title =EncodeColor(SelectedValue(mycolor))+ Name()+"
> > "+Date()+Chartsetting+", O:" + O + ", H:" + H + ", L:" + L
+ ",
> C:" + C +"
> > V:"+ WriteVal(V,1) +"; "+SectorID(1)+" / "+IndustryID(1);
> >
> >
> >
> >
> >
> >
> > Cheers,
> > Graham
> > http://groups.msn.com/asxsharetrading
> > http://groups.msn.com/fmsaustralia
> >
> > -----Original Message-----
> > From: Jim [mailto:bankedout@x...]
> > Sent: Tuesday, 13 January 2004 10:11 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > 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/
>
>
>
> 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 Sponsor
> ADVERTISEMENT
>
>
>
>
>
> -------------------------------------------------------------------
-----------
> Yahoo! Groups Links
>
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> b.. To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service.
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/
|