龙听期货论坛's Archiver

龙听 发表于 2018-10-20 08:53

[转载]线上牛(通用源码,适用任何时间段包括分时)

源码如下:[code]
{参数:N:0 100 5; M:0 100 21参数可调N越小灵敏度越高;M亦同。}
LC:=REF(C,1);
DF:=C-IF(C>LC,MIN(L,LC),MAX(H,LC));
AD:SUM(IF(C=LC,0,DF),0),LINETHICK1;
AD5:EXPMEMA(AD,N),COLORYELLOW;
MAD:EXPMEMA(AD5,M),COLORRED;
STICKLINE(AD>AD5,AD,AD5,0.001,0),COLORWHITE;
STICKLINE(AD5>MAD,AD5,MAD,0.001,0),COLORRED;
STICKLINE(AD
STICKLINE((AD
{/用法:短线看AD,中线看MAD;买卖看线柱。《迷糊鱼2010》}
{/通用源码,适合任何时间段包括分时}
[/code]

日线图:
[attach]4636[/attach]

页: [1]