Friday, May 15, 2009

Price Oscillator with Overbought and Oversold Lines Free ThinkScript



Free scripts and profitable trades for you.
EASY!

Go long when The Price Oscillator crosses below and then back above the oversold level.

Go short when The Price Oscillator crosses above and then back below the overbought level.


#-------------------------------------------------------begin code
declare lower;

input colorNormalLen = 14;
input length = 14;
input price = close;
input OverBought_Value = 0.288;
input OverSold_Value = -0.288;

plot DPO = price - Average(price[length / 2 + 1], length);
def abs = AbsValue(DPO);
def normVal = FastKCustom(abs, colorNormalLen);
DPO.assignValueColor(createColor(255, (240 - (100 - if DPO > 0 then normVal else -normVal * 175 / 200)), 0));
plot baseline = 0;
baseline.setDefaultColor(GetColor(5));
plot OverBought = OverBought_Value;
Overbought.setDefaultColor(GetColor(1));
plot OverSold = OverSold_Value;
Overbought.setDefaultColor(GetColor(1));

#-------------------------------------------------------end code
blog comments powered by Disqus