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

[amibroker] Re: Volume % indicator



PureBytes Links

Trading Reference Links

Regarding my first request, I think I may have solved my problem. I
added the following to my code

TimeFrameSet (inDaily) ;
EMAV30 = EMA ( V, 30 ) ;
TimeFrameRestore () ;

timeframe = Interval () ;
EMAV30_Day = TimeFrameExpand ( EMAV30, inDaily ) ;

EMAV30_Day_5min = ( EMAV30_Day * timeframe ) / (6.5 * 60 * 60) ;

sumavgvol = V / EMAV30_Day_5min ;

Sumavgvol1 = ( Sumavgvol - 1 ) * 100 ;


Plot ( abs (Sumavgvol1), _DEFAULT_NAME(), IIf (sumavgvol1 > 0,
ParamColor ("Above Avg", colorGreen), ParamColor ("Below Avg",
colorRed)), ParamStyle ( "style", styleHistogram | styleThick,
maskHistogram  ) );


Is this right?  It doesn't seem to work well when I place this on the
Day/Week/Month Charts.

thanks for the help

Tony

--- In amibroker@xxxxxxxxxxxxxxx, Tony Lei <yiupang91@xxxx> wrote:
> Hi all,
> 
> I have created this volume % indicator based on the 5min but how do
I make 
> it work for 1, 10, 15, 20, 30, 60, 90, 180, 240 min, etc?
> 
> Basically it compares the volume of each bar to the 30 day average
volume as 
> a fraction of the bar that is being studied.
> 
> For example,
> 
> x = 5min
> 
> Last 5min volume / [ ( 30 Day average volume * x ) / (6.5*60) ]
> 
> TimeFrameSet (inDaily) ;
> EMAV30 = EMA ( V, 30 ) ;
> TimeFrameRestore () ;
> 
> EMAV30_Day = TimeFrameExpand ( EMAV30, inDaily ) ;
> 
> EMAV30_Day_5min = ( EMAV30_Day * 5 ) / (6.5 * 60) ;
> 
> sumavgvol = V / EMAV30_Day_5min ;
> Sumavgvol1 = ( Sumavgvol - 1 ) * 100 ;
> 
> Plot ( abs (Sumavgvol1), _DEFAULT_NAME(), IIf (sumavgvol1 > 0,
ParamColor 
> ("Above Avg", colorGreen), ParamColor ("Below Avg", colorRed)),
ParamStyle ( 
> "style", styleHistogram | styleThick, maskHistogram ) );
> 
> I would also like to create another volume filter that will give me a 
> cumulative % vs the average.
> 
> Say I want find the % volume at 10 am vs the average:
> 
> last 30min volume / ( EMAV30_Day * 30 ) / (6.5 * 60) ;
> 
> Or at 12 pm
> 
> last 180min volume / ( ( EMAV30_Day * 90 ) / (6.5 * 60) ;
> 
> 
> I would appreciate your help
> 
> Thanks
> 
> Tony




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hdc910a/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123437107/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html";>Help tsunami villages rebuild at GlobalGiving. The real work starts now</a>.</font>
--------------------------------------------------------------------~-> 

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 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/

<*> 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/