Headsup01 Osc - Afl
Headsup01 Osc - Afl
Headsup01 Osc - Afl
ini Script
created by Chas Richards. This script modified for AB by Ken Close 3/9/02*/
/*1A: Calculate RSI/Stochastics (using 13/21 Stochastics AND RSI-14)*/
/* Modified 5/11/02 to include Buys/Sells on crossing Score extreme levels */
/* RISK MANAGEMENT*/
Capital = 100000;
Risk = RiskPer * Capital;
PositionSize = (Risk / (StopLoss * Open)) * BuyPrice ;
Shares = PositionSize / Open;
Filter=1;
Filter = Ref(C,-1) != C;
NumColumns = 14;
Column0 = C;
Column0Name = "Close";
Low1=LLV(C,21);
High1=HHV(C,21);
FastStoc=(EMA(100*(Close - Low1)/(High1 - Low1),13)/2) + (RSI(14)/2);
Column1 = FastStoc;
Column1Name = "FastStoc";
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);