know sure thing.afl

来自「一个更精度的平滑涵数, 可用于股票交易系统.用于Amibroker 平台」· AFL 代码 · 共 34 行

AFL
34 行
字号
//------------------------------------------------------------------------------
//
//  Formula Name:    Know Sure Thing
//  Author/Uploader: Tomasz Janeczko 
//  E-mail:          tj@amibroker.com
//  Date/Time Added: 2001-06-16 08:42:59
//  Origin:          Originally developed by Martin Pring
//  Keywords:        rate-of-change,trend
//  Level:           basic
//  Flags:           indicator
//  Formula URL:     http://www.amibroker.com/library/formula.php?id=18
//  Details URL:     http://www.amibroker.com/library/detail.php?id=18
//
//------------------------------------------------------------------------------
//
//  Daily, Short-time Know Sure Thing indicator. This is smoothed version of
//  classical rate-of-change indicator.
//
//------------------------------------------------------------------------------

/*
** Daily, Short term KST 
** AFL formula by Tomasz Janeczko 
*/

p1 = ma( Roc(Close,10), 10);
p2 = ma( Roc( Close, 15), 10 );
p3 = ma( Roc( Close, 20), 10 ) ;
p4 = ma( Roc( Close, 30), 15);

kst = p1 + 2 * p2 + 3 * p3 + 4 * p4;
 
graph0 = kst / 10;
  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?