PureBytes Links
Trading Reference Links
|
Thanks Gary and
Herman,
Below is my attempt at a
custom volume indicator the intended function of which is quite simply as
follows:
If there are any visible
volume bars over 999999 then format ALL visible volume bars as V/1000
otherwise leave as V.
At the moment it doesn't work
correctly when you scroll to the far right of a chart. Any insights
appreciated.
<FONT
size=2>BarVisible = Status(
"barvisible"<FONT
face="Courier New"> ); HighestVisible =
Highest(<FONT
color=#0000ff>IIf(BarVisible,<FONT
color=#000000>V,<FONT
color=#ff00ff>0<FONT
color=#000000>)); /* If the highest visible
volume bar is greater then 999999 then volume should be expressed as V/1000
otherwise express volume as V */<FONT
face="Courier New"> AdjVol = <FONT
color=#0000ff>IIf(HighestVisible > <FONT
color=#ff00ff>999999,<FONT
color=#000000>V/<FONT
color=#ff00ff>1000,<FONT
color=#000000>V<FONT
size=2>); TitleText = <FONT
color=#0000ff>WriteIf(HighestVisible >
999999, <FONT
color=#ff00ff>" ( x1000 )", <FONT
color=#ff00ff>""<FONT
color=#000000> ); Title<FONT
color=#000000> = "Volume: "<FONT
color=#000000> + WriteVal<FONT
color=#000000>(AdjVol , 1.0<FONT
face="Courier New">) + TitleText;
Plot( AdjVol ,
"Vol", colorCustom4,
styleHistogram + styleThick );
Many thanks,William
Peters<FONT
size=2>www.amitools.com
<FONT face=Tahoma
size=2>-----Original Message-----From: Gary A. Serkhoshian
[mailto:serkhoshian777@xxxxxxxxx]Sent: Saturday November 15, 2003
7:12 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re:
[amibroker] Visible bars
Hi William,
Try this:
Highest<FONT face=Arial
size=2>(IIf<FONT face=Arial
size=2>(Status<FONT
face=Arial size=2>(<FONT face=Arial color=#ff00ff
size=2>"barvisible"),H,<FONT
face=Arial color=#ff00ff size=2>0));
Regards,
Gary
William Peters <williampeters@xxxxxxxxxxxx>
wrote:
<BLOCKQUOTE class=replbq
>
Hello,
I'm writing an indicator
script that needs to take into account only the visible bars
in the chart pane. So for example I may need to determine the HHV of the
visible bars.
I'm sure someone wrote
an indicator which was using a similar procedure some time ago but can't
locate it. Any help/suggestions much appreciated.
Many
thanks,William Peters<A
href="">www.amitools.com
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.
|