ChartScript: Ian Woodward's %B Buy and Sell System

A forum for all EdgeRater users

Moderator: Chris White

Post Reply
Import
Posts: 21
Joined: Wed Dec 29, 2010 5:28 pm

ChartScript: Ian Woodward's %B Buy and Sell System

Post by Import »

Chris White wrote
Thursday, June 03, 2010 9:03 AM

These three Chart Scripts implement Ian Woodward's %B system. Add them to the 'MyScripts' area. See the documentation for details on adding a new Chart Script:

http://www.edgerater.com/documentation/ ... kstart.htm

Script Name: IanPctB

This script implements the base indicators that are used to drive the buy and sell signals. It can be dropped into its own chart sub area and will show the %B and Bandwidth with shaded regions where %B is below the Bandwidth.

Code: Select all

B: FML('PercentB(20,2)[B]');
BW: FML('BandWidth(20,2)[BandWidth]');
FillRGN(B < BW,B,BW),Brush#20800000;
Script Name: IanPctBUp

This script implements the buy side signals. It can be dropped into a chart sub area and can also be dropped into the 'Entries and Exits' design area to produce signals for all symbols that are in the current snapshot.

Code: Select all

B:= FML('My.IanPctB()[B]');
BW:= FML('My.IanPctB()[BW]');
Cond1:= C > SMA(C,9);
Cond2:= Count(Cross(B, BW), 5) > 0;
Cond3:= (B > .01) & (B < .6);
Cond4:= (B - Ref(B, 1)) > 0.08;
Cond5:="HV(10,262)" <= .67;

Event: Cond1 & Cond2 & Cond3 & Cond4 & Cond5;
Script Name: IanPctBDn

This script implements the sell side signals. It can be dropped into a chart sub area and can also be dropped into the 'Entries and Exits' design area to produce signals for all symbols that are in the current snapshot.

Code: Select all

B:= FML('My.IanPctB()[B]');
BW:= FML('My.IanPctB()[BW]');
FI:= FML('ForceIndex(13)[FI]');
Cond1:= (B - Ref(B, 1)) <= -.12;
Cond2:= B <= 1.2;
Cond3:= FI <= 0;
Cond4:= C < O;
Cond5:= C < SMA(C,9);
Cond6:= Count(Cross(B, BW), 40) == 0;
Cond7:= B < 0;
Cond8:= (B - Ref(B, 1)) <= -.5;

Event: (Cond1 & Cond2 & Cond3 & Cond4 & Cond5 & Cond6) | Cond7 | Cond8;
The scripts in action
IanPctBSystem.png
IanPctBSystem.png (67.67 KiB) Viewed 12770 times
This screenshot shows all of the scripts applied to a security chart of XLP with Entry point and Exit point highlighted for one of the trades.
Post Reply