Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:文华的指标,麻烦老师改成金字塔语言

1楼
岩泉自在 发表于:2021/4/29 13:58:08
SJ:=210424;
N1:=10;
A:="MIN$15$CLOSE";
VV:="MIN$15$V";
N:=BARSLAST(VV<>REF(VV,1))+1;
AA:=IF(N=1,A,0);
MAN1:(SUM(AA,SUMBARS(N=1,N1-1))+C)/N1;
MA10:MA(C,10);
DRAWCOLORKLINE(C>=O,COLORYELLOW,1);
DRAWCOLORKLINE(C<O,COLORYELLOW,1);
DRAWCOLORKLINE(C>MAN1&&C>MA10,COLORRED,1);
DRAWCOLORKLINE(C<MAN1&&C<MA10,COLORGREEN,1);
DRAWTEXT(CROSS(C>MAN1&&C>MA10,0.3),L,'买多'),COLORRED,VALIGN0;
DRAWTEXT(CROSS(C<MAN1&&C<MA10,0.3),H,'买空'),COLORGREEN;

2楼
FireScript 发表于:2021/4/29 14:34:08
 SJ:=210424;
N1:=10;
A:="CLOSE#MIN15";
VV:="VOL#MIN15";
N:=BARSLAST(VV<>REF(VV,1))+1;
AA:=IF(N=1,A,0);
MAN1:(SUM(AA,SUMBARS(N=1,N1-1))+C)/N1;
MA10:MA(C,10);
//这个绘制K线的部分无法实现。金字塔里没有能实现这个效果的函数。KLINE函数实现的效果不行。
//DRAWCOLORKLINE(C>=O,COLORYELLOW,1);
//DRAWCOLORKLINE(C<O,COLORYELLOW,1);
//DRAWCOLORKLINE(C>MAN1 AND C>MA10,COLORRED,1);
//DRAWCOLORKLINE(C<MAN1 AND C<MA10,COLORGREEN,1);
DRAWTEXT(CROSS(C>MAN1&&C>MA10,0.3),L,'买多'),COLORRED,VALIGN0;
DRAWTEXT(CROSS(C<MAN1&&C<MA10,0.3),H,'买空'),COLORGREEN;

3楼
岩泉自在 发表于:2021/4/29 18:32:31
谢谢老师

共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in .04688 s, 3 queries.