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

[amibroker] Filter Out Selling



PureBytes Links

Trading Reference Links


Greetings,

With valuable help from you great people, this Newbie's first 
Exploration is almost complete.

This time, my question is: How do I change my Filter to exclude 
Selling Volume Days.

Thanks

//Bollinger Bands Breakout

pds=20;//bollinger bands periods

shift=2;//bollinger band shift

ROCVOL=Volume-Ref(Volume,-1);

BTOP=BBandTop(Close,pds,shift);

BOTM=BBandBot(Close,pds-shift);

BGAP=BTOP-BOTM;

Breakout=(Close*100/BTOP*100)/100;

Day0= Ref(Close,-0)-Ref(Close,-1);

Day1= Ref(Close,-1)-Ref(Close,-2);

Day2= Ref(Close,-2)-Ref(Close,-3);

Day3= Ref(Close,-3)-Ref(Close,-4);

Day4= Ref(Close,-4)-Ref(Close,-5);



Filter=Day0 >0 AND Day1 >0 AND Day2 >0 AND Day3 < 0.01;



AddColumn(Volume,"Volume");

AddColumn(ROCVOL,"V_Dif");

AddColumn(BGap,"BGap");

AddColumn(Breakout,"Breakout");

AddColumn(BTOP,"BTOP");

AddColumn(Close,"Close");

AddColumn(Day0,"Today");

AddColumn(Day1,"Day-1");

AddColumn(Day2,"Day-2");

AddColumn(Day3,"Day-3");

AddColumn(Day4,"Day-4");

function padstring(string,size)

{
	local string,size;
	local padding,result;

	padding = "";
	for (i=0; i<size-StrLen(String); i++) {
			padding=padding + " ";
	}
	
	result=string + Padding;
	return result;

}

AddTextColumn(padstring(FullName(),80),padstring("Name",80),0);






------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/