colored cci.afl

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

AFL
45
字号
//------------------------------------------------------------------------------
//
//  Formula Name:    colored CCI
//  Author/Uploader: Tom Supera 
//  E-mail:          tom_supera@utanet.at
//  Date/Time Added: 2001-07-20 15:46:27
//  Origin:          
//  Keywords:        
//  Level:           basic
//  Flags:           indicator
//  Formula URL:     http://www.amibroker.com/library/formula.php?id=79
//  Details URL:     http://www.amibroker.com/library/detail.php?id=79
//
//------------------------------------------------------------------------------
//
//  CCI is a trend-indicator.
//
//  In my formula i use the original, but with colored bars.
//
//  So you can faster see, if there's a uptrend, downtrend, or trading-range.
//
//  red bars : downtrend
//
//  green bars: uptrend
//
//  blue bars : trading-range
//
//------------------------------------------------------------------------------

T = 20;
title = "301-4  " + name () + "   "  + fullname() + "  " 
+ "CCI" + "   " + "periods:" + writeval(T);
maxgraph = 5;
graph2 = CCI (T);

Uptrend = 100;  Downtrend =  -100; 

graph2barcolor = IIF (graph2 > uptrend, 5, 
                                   IIF (graph2 < downtrend,4,6));


graph4 = graph2;

buy = cross (graph2, 0) and (ref (graph2,-1) < 0) and (ref (graph2,-2) < 0)and (ref (graph2,-3) < 0) and (LLV (rsi(9),10) < 30) and cross (rsi (9),50);

⌨️ 快捷键说明

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