ergodic oscillator.afl

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

AFL
34
字号
//------------------------------------------------------------------------------
//
//  Formula Name:    Ergodic Oscillator
//  Author/Uploader: Prakash Shenoi 
//  E-mail:          
//  Date/Time Added: 2006-08-10 10:08:00
//  Origin:          
//  Keywords:        
//  Level:           basic
//  Flags:           indicator
//  Formula URL:     http://www.amibroker.com/library/formula.php?id=672
//  Details URL:     http://www.amibroker.com/library/detail.php?id=672
//
//------------------------------------------------------------------------------
//
//  Ergodic Oscillator uses a double-smoothed ratio of the difference between
//  the Close and Open prices and the difference between High and Low. The
//  default periods of average1 is between 11 and 32 and the default of
//  average2 ranges between 4 and 13, which can be varied by right clicking the
//  Param function.
//
//------------------------------------------------------------------------------

/*Ergodic Oscillator */

/*Coded by Prakash Shenoi */

x=Param(" Average 1",11,2,32);
y=Param(" Average 2",4,3,12);
erg=(EMA(EMA(C-O,x),y)/EMA(EMA(H-L,x),y))*100;
Sg=EMA(erg,5);
Plot (erg,"Ergodic Oscillator ",styleLine,1);
Plot (Sg,"Signal",colorRed,styleLine,1);
GraphXSpace=3; 

⌨️ 快捷键说明

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