PureBytes Links
Trading Reference Links
|
Hello Dave,
Thank you very much, this works excellent
!!
The suggestion to Tomasz about the title is
also good, i hope he will change this.
<font size=2
color=navy face="Courier New">Best regards / Liebe Grüße
<font size=2
color=navy face="Courier New">
<font size=2
color=navy face="Courier New">Thomas Zmuck
<font size=3
color=navy face="Times New Roman"><a
href=""><span
>http://www.tradingbasis.com/
<font size=3
color=navy face="Times New Roman">messenger:
tz_01@xxxxxxxxxxx
<font size=3
face="Times New Roman">
Von:<font size=2
face=Tahoma> Dave
Merrill [mailto:dmerrill@xxxxxxx]
Gesendet: Samstag, 14. Februar
2004 17:06
An: amibroker@xxxxxxxxxxxxxxx
Betreff: RE: [amibroker] Is there
any way to write the selected interval (h,d,w,m) in the title bar ?<span
lang=DE>
<span
>I often use these
two together (watch out for line wrap):
<span
>function
fIntervalStr() {
IntervalSecs = Interval();
if(IntervalSecs == in1Minute) sResult = "minute";
if(IntervalSecs == in5Minute) sResult = "5 minute";
if(IntervalSecs == in15Minute) sResult = "15 minute";
if(IntervalSecs == inHourly) sResult = "hourly";
if(IntervalSecs == inDaily) sResult = "daily";
if(IntervalSecs == inWeekly) sResult = "weekly";
if(IntervalSecs == inMonthly) sResult = "monthly";
return sResult;
}
function fOHLCStr(IncludeClosePrice) {
t = "Open = " + NumToStr(O, 1.2) + ", Hi = " +
NumToStr(H, 1.2) + ", Lo = " + NumToStr(L, 1.2) + ",
Close";
if(IncludeClosePrice) { // typically true for use in Title, false for
Plot name
t = t + " = " + NumToStr(C, 1.2);
}
return t;
}
<span
>///////// TRY
THIS
Title = Name() + " - " + fIntervalStr() + " " + Date() +
" : " + fOHLCStr(True);
Plot(C, "Close", colorDefault);
<span
>///////// OR
COMMENT THOSE OUT, AND USE THIS INSTEAD
//Plot(C, fIntervalStr() + " " + Date() + " : " +
fOHLCStr(False), colorDefault);
<span
>Make sense?
<span
>Personally, I
don't like to set the Title myself, so I can just Plot anything and have its
value read out automatically. I've suggested to Tomasz that we be able to
do both, by appending to the automatic title, maybe like this:
<font size=2 color=blue
face="Courier New">Title = "Bollinger Oscilator - " + Title;
<span
>Dave
Hello Dave,
This seems to be pretty nice, but how can
I use this in the title ?
I have tried with writeval (sResult()) but
this doesn’t work.
Do you have any idea ?
<font size=2
color=navy face="Courier New">Best regards / Liebe Grüße
<font size=2
color=navy face="Courier New">
<font size=2
color=navy face="Courier New">Thomas Zmuck
<font size=3
color=navy face="Times New Roman"><a
href=""><span
>http://www.tradingbasis.com/
<font size=3
color=navy face="Times New Roman">messenger:
tz_01@xxxxxxxxxxx
<font size=3
face="Times New Roman">
Von:<font size=2
face=Tahoma> Dave
Merrill [mailto:dmerrill@xxxxxxx]
Gesendet: Samstag, 14. Februar
2004 16:34
An: amibroker@xxxxxxxxxxxxxxx
Betreff: RE: [amibroker] Is there
any way to write the selected interval (h,d,w,m) in the title bar ?<span
lang=DE>
<span
>Try this, from my
standard #include file:
<span
>function
fIntervalStr() {
IntervalSecs = Interval();
if(IntervalSecs == in1Minute) sResult = "minute";
if(IntervalSecs == in5Minute) sResult = "5 minute";
if(IntervalSecs == in15Minute) sResult = "15 minute";
if(IntervalSecs == inHourly) sResult = "hourly";
if(IntervalSecs == inDaily) sResult = "daily";
if(IntervalSecs == inWeekly) sResult = "weekly";
if(IntervalSecs == inMonthly) sResult = "monthly";
return sResult;
}
<span
>Dave
Is there any way to do that ?
<font size=2
face="Courier New">Best
regards / Liebe Grüße
<font size=2
face="Courier New">
<font size=2
face="Courier New">Thomas
Zmuck
<font size=3
face="Times New Roman"><a
href=""><span
>http://www.tradingbasis.com/
<font size=3
color=navy face="Times New Roman">messenger:
tz_01@xxxxxxxxxxx
Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<font
size=2 face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
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 Sponsor
ADVERTISEMENT
Click Here
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 the Yahoo! Terms of Service.
|