PureBytes Links
Trading Reference Links
|
Yuki,
Since the lines move a little when the plot window size is
changed, I added PARAM to easily move them where I need them.
If the ranges within the PARAM statements aren't quite right,
you can expand them.
Try this:
Min1=<FONT
color=#8b0000 size=2>Param(<FONT color=#00008b
size=2>"Month Min",<FONT color=#800080
size=2>0,-10<FONT
size=2>,10,<FONT
color=#800080 size=2>1<FONT
face=Tahoma>);
Min2=<FONT
color=#8b0000 size=2>Param(<FONT color=#00008b
size=2>"Day Min",<FONT color=#800080
size=2>0,-10<FONT
size=2>,10,<FONT
color=#800080 size=2>0.5<FONT
face=Tahoma>);
Max1=<FONT
color=#8b0000 size=2>Param(<FONT color=#00008b
size=2>"Month Max",<FONT color=#800080
size=2>7,0<FONT
size=2>,100,<FONT
color=#800080 size=2>1<FONT
face=Tahoma>);
Max2=<FONT
color=#8b0000 size=2>Param(<FONT color=#00008b
size=2>"Day Max",<FONT color=#800080
size=2>15,0<FONT
size=2>,100,<FONT
color=#800080 size=2>0.5<FONT
face=Tahoma>);<FONT face=Verdana color=#008000
size=2>
/*
minvalue AND maxvalue - (used by
styleOwnScale plots ONLY) define Plot minimum AND maximum values (lower AND
upper boundary for Y axis)
<FONT face=Tahoma
color=#000000>*/<FONT face=Verdana
color=#8b0000 size=2>
<FONT face=Tahoma
color=#000000>Plot<FONT
size=2>(IIf(<FONT
size=2>Month()!=Ref<FONT
size=2>(Month(),-<FONT
size=2>1),1<FONT
size=2>,0),<FONT
size=2>"",24<FONT
size=2>,styleHistogram|<FONT
size=2>styleOwnScale|<FONT
size=2>styleNoLabel<FONT
face=Tahoma>,Min1,Max1);<FONT face=Verdana
color=#8b0000 size=2>
<FONT face=Tahoma
color=#000000>Plot<FONT
size=2>(IIf(<FONT
size=2>DayOfWeek()<Ref<FONT
size=2>(DayOfWeek(),-<FONT
size=2>1),1<FONT
size=2>,0),<FONT
size=2>"",39<FONT
size=2>,styleHistogram|<FONT
size=2>styleOwnScale|<FONT
size=2>styleNoLabel<FONT
face=Tahoma>,Min2,Max2);
<FONT
face=Tahoma>
Now, just right-click on the
plot and use Parameters to move them where you need them.
-CS
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Yuki
Taga
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, March 04, 2003 3:26
AM
Subject: [amibroker] need a scaling
workaround
If there is a way to fix this, I'd sure appreciate knowing
how. ^_-GifA is what I get in some situations, due to the
following
code:Plot(IIf(Month()!=Ref(Month(),-1),1,0),"",24,styleHistogram|styleOwnScale|styleNoLabel,0,7);Plot(IIf(DayOfWeek()<Ref(DayOfWeek(),-1),1,0),"",39,styleHistogram|styleOwnScale|styleNoLabel,-0.55,14);I
really want to keep this code. The results are very nice,
exceptwhere there is interference with the display. Is there any way
tocreate a "buffer zone" between the top of the date display and
thebottom of the price chart information? I know I can scroll the
scaleup a bit, but if there is a way to do it automatically,
howwonderful.Yuki ^_^ Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|