PureBytes Links
Trading Reference Links
|
<SPAN
class=868365115-14022004>I often use these two together (watch out for line
wrap):
<SPAN
class=868365115-14022004>
<SPAN
class=868365115-14022004>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;}
///////// TRY THISTitle =
Name() + " - " + fIntervalStr() + " " + Date() + " : " +
fOHLCStr(True);Plot(C, "Close", colorDefault);
///////// OR COMMENT THOSE
OUT, AND USE THIS INSTEAD//Plot(C,
fIntervalStr() + " " + Date() + " : " + fOHLCStr(False),
colorDefault);
<FONT face="Courier New" color=#0000ff
size=2>Make sense?
<FONT face="Courier New" color=#0000ff
size=2>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 face="Courier New" color=#0000ff
size=2>
<FONT face="Courier New"
color=#0000ff size=2>Title = "Bollinger Oscilator - " +
Title;
<FONT face="Courier New" color=#0000ff
size=2>
<FONT face="Courier New" color=#0000ff
size=2>Dave
<FONT face="Courier New" color=#0000ff
size=2>
<BLOCKQUOTE dir=ltr
>
<SPAN
>Hello
Dave,
<SPAN
>
<SPAN
>This seems to be
pretty nice, but how can I use this in the title
?
<SPAN
>I have tried with
writeval (sResult()) but this doesn’t work.
<SPAN
>
<SPAN
>Do you have any idea
?
<SPAN
>
<FONT face="Courier New"
color=navy size=2><SPAN
>Best regards
/ Liebe Grüße
<FONT face="Courier New"
color=navy size=2><SPAN
>
<FONT face="Courier New"
color=navy size=2><SPAN
>Thomas
Zmuck
<FONT face="Times New Roman"
color=navy size=3><A
href=""><SPAN
>http://www.tradingbasis.com/
<FONT face="Times New Roman"
color=navy size=3>messenger: <A
href="">tz_01@xxxxxxxxxxx
<FONT
face="Times New Roman" size=3>
<SPAN lang=DE
>Von:<FONT
face=Tahoma size=2>
Dave Merrill [mailto:dmerrill@xxxxxxx] <SPAN
>Gesendet: Samstag, 14. Februar 2004
16:34An:
amibroker@xxxxxxxxxxxxxxx<SPAN
>Betreff: RE: [amibroker] Is there any way
to write the selected interval (h,d,w,m) in the title bar ?<SPAN
lang=DE>
<SPAN
>
<SPAN
>Try this,
from my standard #include file:
<SPAN
>
<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
>
<SPAN
>Dave
<BLOCKQUOTE
>
<SPAN
>Is there any way to do that
?
<SPAN
>
<FONT face="Courier New"
size=2>Best
regards / Liebe Grüße
<FONT face="Courier New"
size=2><SPAN
>
<FONT face="Courier New"
size=2>Thomas
Zmuck
<FONT
face="Times New Roman" size=3><A
href=""><SPAN
>http://www.tradingbasis.com/
<FONT
face="Times New Roman" color=navy size=3><SPAN
>messenger: <A
href="">tz_01@xxxxxxxxxxx
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.
|