PureBytes Links
Trading Reference Links
|
For those who are interested here is a custom volume indicator
which displays the volume in 1000's if any of the visible bars are greater than
999999.To use this open indicator builder, click the Add
button to create a blank custom indicator, give it a name then paste the
following code in the formula window.<FONT
face="Courier New" color=#008000>/* Custom volume code for indicator
builder. Displays volume in multiples of 1000 if visible volume is
greater than 999999. Created by: William Peters
Create Date: 16th Nov 2003 Contributions by: Gary
Serkhoshian and Bruce1r */<FONT
color=#000000> BarVisible = Status<FONT
color=#000000>( "barvisible"<FONT
face="Courier New"> ); HighestVisibleVolume =
LastValue( <FONT
color=#0000ff>Highest( <FONT
color=#0000ff>IIf( BarVisible, <FONT
color=#000000>V, <FONT
color=#ff00ff>0 ) )
); AdjVol = IIf(
HighestVisibleVolume > 999999<FONT
color=#000000>, V<FONT
color=#000000>/1000,
V<FONT
color=#000000> ); if<FONT
color=#000000> ( HighestVisibleVolume > <FONT
color=#ff00ff>999999
) TitleText = " ( x1000
)"; <FONT
color=#800000>else<FONT
color=#000000> TitleText = <FONT
color=#ff00ff>"";
Title =
"Volume: " + <FONT
color=#0000ff>NumToStr( AdjVol, <FONT
color=#ff00ff>5.0<FONT
size=2> ) + TitleText; <FONT
color=#0000ff>Plot( <FONT
color=#0000ff>round( AdjVol ) , <FONT
color=#ff00ff>"Vol" + TitleText, <FONT
color=#000000>colorTeal, <FONT
color=#000000>styleHistogram + <FONT
color=#000000>styleThick
); Regards,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.
|