|
楼主 |
发表于 2013-4-7 03:50 AM
|
显示全部楼层
freestock 发表于 2013-4-7 01:12 AM
请教:
AUGEN indicator 你怎样加上的? 我在 Add Studies 里从来没见到过。 多谢。
Jeff Augen 本人有code,也有人针对ThinkorSwim写了code,这里不便提供其他网站链接,直接粘贴过来吧,供参考。
Jeff Augen is a very popular author in the options trading space. In his book The Volatility Edge in Options Trading , Augen outlines a clear cut alternative to traditional technical analysis. He focuses on measuring stock price movements in standard deviations, which is term most advanced option traders are familiar with.
Augen goes onto explain that option traders can exploit anomalies in option pricing by tracking the magnitude of stock movements in standard deviation price spikes. For years, I have scoured the internet searching for tutorials on how to re-create the rather complex equations into a study on my TOS Platform.
Well, I was able to find the thinkscript code to create the standard deviation spikes into a study in TOS. Go to the “Create a new study tab” inside your thinkorswim platform and Paste the following code:
# Thanks to Jeff Augen
# Price Spikes in Standard Deviations
# Updated 6 August 2010
declare lower;
input length = 20;
def closeLog = log(close[1] / close[2]);
def SDev = stdev(closeLog, length) * Sqrt(length / (length – 1));
def m = SDev * close[1];
def spike = (close[0] – close[1]) / m;
plot spike_limit = if spike > 3 then 3 else if spike < -3 then -3 else
spike;
spike_limit.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
spike_limit.AssignValueColor(if spike > 3.0 then Color.GREEN else if spike >
0 then CreateColor(0,102,255) else if spike < -3 then Color.RED else if
spike < 0 then CreateColor(128,128,128) else Color.YELLOW);
plot high = 2;
high.SetDefaultColor(CreateColor(51,51,51));
plot low = -2;
low.SetDefaultColor(CreateColor(51,51,51));
Once you paste the code, there should be no error messages. Name your new study and click “Save”. I hope you find this helpful.
。。。。。。 |
评分
-
1
查看全部评分
-
|