CCI 通道指數




1.算法:
        中價與中價的N日移動平均的差 除以 N日內中價的平均絕對偏差

2.中文註解:
        ( 1)跌破負 100之后,如果股指繼續創新低而該指標連續反彈,則可能出現短底。
        ( 2)升破負 100、以及升破 100,屬于短多信號、以及空頭停損信號。
        ( 3)強勢市場中跌破 100、以及弱勢市場中跌破負 100,可能產生波段性調整。
        ( 4)升破 100之后,如果股指繼續創新高而該指標連續下行,則可能出現短頂。
        ( 5)上述四個作用中,第一和第四個更有準確度。

3.TS語法:

{*******************************************************************
Description      : This Indicator plots CCI Average
Provided By     : Omega Research, Inc. (c) Copyright 1999
********************************************************************}

Inputs: Length1(20), Length2(10), CCILong(100), CCIShort(-100);

Plot1(CCI(Length1), "CCI" );
Plot2(CCIlong, "CCIlong" );
Plot3(CCIshort, "CCIshort" );
Plot4(Average(Plot1, Length2), "CCIAvg" );

{Alert Criteria}
If Plot1 > Plot2 Then
        Alert("CCI is in overbought territory")
Else
        If Plot1 < Plot3 Then
                Alert("CCI is in oversold territory");

If Plot1 Crosses Over 0 Then
        Alert("CCI has crossed over zero")
Else
        If Plot1 Crosses Under 0 Then
                Alert("CCI has crossed under zero");

{CCI Average Expert Commentary}
#BeginCmtry
        Commentary(ExpertCCI(Plot1 ,Plot2 ,Plot3 ));
#End;

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 millertime2 的頭像
    millertime2

    miller投資小站~程式交易、外匯期貨研究操作

    millertime2 發表在 痞客邦 留言(0) 人氣()