Technology Sector Trading Strategy (Amibroker And Tradestation Code)

The original article can be found here.

In plain English:

  1. Today’s IBS must be 0.05 or lower.
  2. If 1 is true, then buy at the close.
  3. Sell at the close when the IBS is more than 0.75.

Amibroker code:

Buy= ibs<0.05;
buyprice=Close;
Sell= ibs>0.75 ;
sellPrice=Close;

Tradestation code:

{
Strategy 123 - technology sector trading
Today's IBS must be 0.05 or lower.
If 1 is true, then buy at the close.
Sell at the close when the IBS is more than 0.75.
}

Inputs:
	BuyTreshold(0.05),
	SellTreshold(0.75);
	
Vars:
	ibs(0);

ibs=(C-L)/(H-L);

if ibs<BuyTreshold Then
	Buy this bar at close;
	
if ibs>SellTreshold  Then
	Sell this bar at close;