| 
 PureBytes Links 
Trading Reference Links 
 | 
 You are using data with a time frame less than hourly 
and then switch the time frame for V to hourly but leave the time frame for C, 
H, L unchanged.  So your buy/sell is for streaming/realtime data and V is 
for hourly or if you include the commented out sections you are mixing 
streaming/realtime with hourly which I assume is not what you 
want.  Having C, H, L reference the same time frame as 
V requires using timeframe type functions for C, H, L to expand the 
arrays to hourly (or whatever) and then define the buy/sell conditions.  
See if that does what you want. 
  
Bill 
  
----- Original Message -----  
Sent: Sunday, February 24, 2008 12:58 
AM 
Subject: [amibroker] Re: volume 
count  
  > 
thax bill, i m posting please add how can i compare current volume  > 
with  average current volume of 15 
days:-               
 > BREAKOUTPOINT_UP = Ref(H,-1)+0.05; > BREAKOUTPOINT_DOWN = 
Ref(L,-1)-0.05; >  > HourlyVol = 
TimeFrameGetPrice("V",inHourly,-1,expandLast); >  >  > Buy = 
IIf(C>Ref(H,-1) AND Ref(C,0)>Ref(L,-2)  /*AND Ref(V,0)>(MA 
 > (V,21) )*/,  True, False); > Sell = IIf(C<Ref(L,-1) AND 
Ref(C,0)<Ref(H,-2)  /*AND Ref(V,0)>(MA  > (V,21) 
)*/,   True,False); > Filter = Buy OR Sell ; > 
//AddColumn(C, "BUY" ,0, colorDefault, IIf(Buy,colorGreen,  > 
colorBlack)); > //AddColumn(C, "SELL",0,colorDefault, 
IIf(Sell,colorRed,colorBlack)); > AddColumn(C, "CMP",0,IIf( 
Buy,colorDefault,colorRed),IIf > (Sell,colorDefault,colorDefault) 
); > AddColumn(BREAKOUTPOINT_UP,"LONG",0,colorDefault, IIf > 
(Buy,colorGreen, colorBlack)); > 
AddColumn(BREAKOUTPOINT_DOWN,"SHORT",0,colorDefault, IIf > 
(Sell,colorRed,colorBlack)); > AddColumn( V, "volume",1.0,colorDefault); 
 > AddColumn( MA(V,21), "AvgVol",15.0,C); > AddColumn(HourlyVol, 
"Last hour Volume"); >  >  >  > Please note that this 
group is for discussion between users only. >  > To get support from 
AmiBroker please send an e-mail directly to  > SUPPORT {at} 
amibroker.com >  > For NEW RELEASE ANNOUNCEMENTS and other news 
always check DEVLOG: > http://www.amibroker.com/devlog/ >  > For other support material please check also: > 
http://www.amibroker.com/support.html >  > Yahoo! Groups Links >  > <*> To 
visit your group on the web, go to: >    http://groups.yahoo.com/group/amibroker/ >  > <*> Your email settings: >    
Individual Email | Traditional >  > <*> To change settings 
online go to: >    http://groups.yahoo.com/group/amibroker/join >    (Yahoo! ID required) >  > <*> To 
change settings via email: >    mailto:amibroker-digest@xxxxxxxxxxxxxxx  >    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx >  > <*> To unsubscribe from this group, send an email 
to: >    amibroker-unsubscribe@xxxxxxxxxxxxxxx >  > <*> Your use of Yahoo! Groups is subject 
to: >    http://docs.yahoo.com/info/terms/ >  >  >  > --  > No virus found in this 
incoming message. > Checked by AVG Free Edition.  > Version: 7.5.516 
/ Virus Database: 269.20.9/1294 - Release Date: 2/22/2008 6:39 PM > 
 >
__._,_.___
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: 
http://www.amibroker.com/devlog/ 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
  
     
    
 
      
   
__,_._,___
 |