ao+ momentum indicator.afl

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

AFL
45
字号
//------------------------------------------------------------------------------
//
//  Formula Name:    AO+ Momentum indicator
//  Author/Uploader: Steve Wiser 
//  E-mail:          slwiserr@erols.com
//  Date/Time Added: 2001-07-05 19:06:27
//  Origin:          
//  Keywords:        
//  Level:           semi-advanced
//  Flags:           indicator
//  Formula URL:     http://www.amibroker.com/library/formula.php?id=55
//  Details URL:     http://www.amibroker.com/library/detail.php?id=55
//
//------------------------------------------------------------------------------
//
//  Supports the William's Alligator Trend following system
//
//------------------------------------------------------------------------------

/* Exploration, System and Indicator */
    Author: Steve Wiser
   Email address: slwiserr@erols.com
   May 5, 2001 */

outsidebar = outside();
insidebar = H <= Ref(H,-1) and L >= Ref(L,-1);
upbar = H > ref(H,-1) and L >= ref(L, -1);
downbar = L < ref(L,-1) and H <= ref(H,-1);
barcolor=iif(outsidebar, 1, 
               iif(downbar,   4, 
               iif(upbar,        5, 
               iif(insidebar,6, 0 ) ) ) );

/*barcolor=
      iif(outsidebar, 1, iif(downbar, 4, iif(upbar,5, 0) ) );*/


var1=ma( A , 34);
var2=ma( A,5);
graph0=var2-var1;
Graph0Style=2+4;
graph1=wilders(var2-var1,5);
Graph1Style=4+1;
Graph0BarColor=Barcolor;

⌨️ 快捷键说明

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