[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Custom volume indicator (was Re: Visible bars)



PureBytes Links

Trading Reference Links




Could you also write this 
as straight afl without the loop
 
HighestVolume = 
highestsince(barindex()==Barvisible);
Titletext = Writeif( 
highestvolume>999999," (x1000)", "" );
 
 
Cheers,Graham<A 
href="">http://groups.msn.com/ASXShareTrading<A 
href="">http://groups.msn.com/FMSAustralia 


  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: William Peters 
  [mailto:williampeters@xxxxxxxxxxxx] Sent: Monday, 17 November 2003 
  10:36 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
  [amibroker] Custom volume indicator (was Re: Visible 
bars)
  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 
  size=2>/* 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 
  face="Courier New"> BarVisible = <FONT 
  color=#0000ff>Status( <FONT 
  color=#ff00ff>"barvisible"<FONT 
  color=#000000> ); HighestVisibleVolume = <FONT 
  color=#0000ff>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 
  face="Courier New"> ); <FONT 
  color=#800000>if ( HighestVisibleVolume > 
  999999<FONT 
  color=#000000> )    TitleText = <FONT 
  color=#ff00ff>" ( x1000 )"<FONT 
  color=#000000>; else<FONT 
  face="Courier New">    TitleText = 
  ""<FONT 
  color=#000000>; Title<FONT 
  color=#000000> = "Volume: "<FONT 
  color=#000000> + NumToStr<FONT 
  color=#000000>( AdjVol, 5.0<FONT 
  size=3> ) + 
  TitleText; Plot( 
  round( AdjVol ) , 
  "Vol" + TitleText, 
  colorTeal, 
  styleHistogram + 
  styleThick 
  ); Regards,William Peters<A 
  href="">www.amitools.comSend 
  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.