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

[amibroker] Re: volume count



PureBytes Links

Trading Reference Links

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/