![]()  | 
 
Average Daily Volume - 3 months | 
 
    Post Reply   
   | 
  
| Author | |
   
   
   cwb  
   
   Newbie  
   Joined: 27 May 2010 Location: Townsville Posts: 9  | 
  
   
      Post Options
    
        Quote   Reply
   
     Topic: Average Daily Volume - 3 monthsPosted: 03 Mar 2013 at 4:32pm  | 
 
| 
   
   
    
   
I am wanting to write a simlpe script for the average daily volume for say the last 90 periods - any help would be appreciated - thanks 
    
   
   
   | 
 |
![]()  | 
 |
   
   
   cudderbean  
   
   Regular  
    
   Joined: 02 Oct 2006 Location: Thailand Posts: 40  | 
  
   
      Post Options
    
        Quote   Reply
   
     Posted: 15 May 2013 at 10:58pm | 
 
| 
   
   
    mavol := ma(volume,90,simple);mavol; 
A useful tip: if a similar indicator already exists, double click or right click the indicator, then look at how BC has written the formula in the "Formula" tab, then adapt it to suit your own purposes. You can of course make the above variable inputs. 
You can do the same thing with a scan that you construct using BC easy language Create a Scan. When complete, click the tab 4 Advanced, then click Generate Scan Bullscript to see what it looks like in Bullscript...a great learning aid to help you write your own Bullscript. 
Edited by cudderbean - 15 May 2013 at 10:59pm  | 
 |
![]()  | 
 |
    Post Reply   
   | 
  
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |