Heiken Ashi Smoothed 均线代码

By tim2025 at 2020-09-13 • 0人收藏 • 1066人看过

适合金字塔交易系统

Ac:=(H+L+C+O)/4;   
ao:=c*0;   
fo:=o;   
ao[1]:=fo[1];   
for i=2 to datacount do ao[i]:=(ao[i-1]+ac[i-1])/2;   
AH:=max(H,Max(Ao,Ac));   
AL:=min(L,min(Ao,Ac));   
  
dd:=(ma(ao,2)+ma(ao,4))/2,linethick2;   
2*dd-1*ao,colormagenta;   
ma(ao,2),color00bb00;   
  
STICKLINE(AC>=AO,AH,AC,1,0),color225588;   
STICKLINE(AC>=AO,AH,AC,0,0),color66ccff;   
STICKLINE(AC>=AO,AO,AL,1,0),color225588;   
STICKLINE(AC>=AO,AO,AL,0,0),color66ccff;   
  
STICKLINE(AC>AO,AC,AO,8,0),COLOR225588;   
STICKLINE(AC>AO,AC,AO,7,0),COLOR226699;    
STICKLINE(AC>AO,AC,AO,6,0),COLOR3377aa;   
STICKLINE(AC>AO,AC,AO,5,0),COLOR3388bb;   
STICKLINE(AC>AO,AC,AO,4,0),COLOR4499cc;   
STICKLINE(AC>AO,AC,AO,3,0),COLOR44aadd;   
STICKLINE(AC>AO,AC,AO,2,0),COLOR55bbee;   
STICKLINE(AC>AO,AC,AO,1,0),COLOR66ccff;   
  
STICKLINE(AC<=AO,AH,AC,1,0),color888800;   
STICKLINE(AC<=AO,AH,AC,0,0),colorffff00;   
STICKLINE(AC<=AO,AO,AL,1,0),color888800;   
STICKLINE(AC<=AO,AO,AL,0,0),colorffff00;   
  
STICKLINE(AC<=AO,AC,AO,8,0),COLOR888800;   
STICKLINE(AC<=AO,AC,AO,7,0),COLOR999900;    
STICKLINE(AC<=AO,AC,AO,6,0),COLORaaaa00;   
STICKLINE(AC<=AO,AC,AO,5,0),COLORbbbb00;   
STICKLINE(AC<=AO,AC,AO,4,0),COLORcccc00;   
STICKLINE(AC<=AO,AC,AO,3,0),COLORdddd00;   
STICKLINE(AC<=AO,AC,AO,2,0),COLOReeee00;   
STICKLINE(AC<=AO,AC,AO,1,0),COLORffff00;


6 个回复 | 最后更新于 2020-10-07
2020-09-13   #1

Traders Dynamic Index代码

LC:= REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
MA1:=RSI/34;
UP:=MA1+1.6185*STD(RSI,34),COLORBLUE;
DN:=MA1-1.6185*STD(RSI,34),COLORBLUE;
MI:=(UP+DN)/2,COLORYELLOW;

MR:SUM(RSI,2)/2,COLORGREEN,LINETHICK2;
MS:SUM(RSI,7)/7,COLORRED,LINETHICK2;
K1:50,COLORWHITE,LINEDOT;
K2:68,COLORWHITE,LINEDOT;
K3:32,COLORWHITE,LINEDOT;


2020-09-13   #2

2个指标组合效果

Heiken Ashi.png

2020-09-13   #3

让交易变得简单,

Trading Made Simple,

2个指标组合使用可以参考 https://www.forexfactory.com/showthread.php?t=291622

u-chf.gif

2020-10-03   #4

是 Heiken Ashi 蜡烛图,或者 Heiken Ashi K线,标题写错了,不能改了。


2020-10-03   #5

适用通达信的代码如下

AC:=(H+L+C+O)/4;
AO1:=REF(AC,1)/2;
AO:=REF(AO1,1)+REF(AC,1)/2;
AH:=MAX(H,MAX(AO,AC));
AL:=MIN(L,MIN(AO,AC));
DD:=(MA(AO,2)+MA(AO,4))/2,LINETHICK2;
2*DD-1*AO,COLORMAGENTA;
MA(AO,2),COLOR00BB00;
STICKLINE(AC>=AO,AH,AC,1,0),COLOR225588;
STICKLINE(AC>=AO,AH,AC,0,0),COLOR66CCFF;
STICKLINE(AC>=AO,AO,AL,1,0),COLOR225588;
STICKLINE(AC>=AO,AO,AL,0,0),COLOR66CCFF;
STICKLINE(AC>AO,AC,AO,2.8,0),COLOR225588;
STICKLINE(AC>AO,AC,AO,2.5,0),COLOR226699;
STICKLINE(AC>AO,AC,AO,2.2,0),COLOR3377AA;
STICKLINE(AC>AO,AC,AO,1.9,0),COLOR3388BB;
STICKLINE(AC>AO,AC,AO,1.6,0),COLOR4499CC;
STICKLINE(AC>AO,AC,AO,1.3,0),COLOR44AADD;
STICKLINE(AC>AO,AC,AO,1,0),COLOR55BBEE;
STICKLINE(AC>AO,AC,AO,0,0),COLOR66CCFF;
STICKLINE(AC<=AO,AH,AC,1,0),COLOR888800;
STICKLINE(AC<=AO,AH,AC,0,0),COLORFFFF00;
STICKLINE(AC<=AO,AO,AL,1,0),COLOR888800;
STICKLINE(AC<=AO,AO,AL,0,0),COLORFFFF00;
STICKLINE(AC<=AO,AC,AO,2.8,0),COLOR888800;
STICKLINE(AC<=AO,AC,AO,2.5,0),COLOR999900;
STICKLINE(AC<=AO,AC,AO,2.2,0),COLORAAAA00;
STICKLINE(AC<=AO,AC,AO,1.9,0),COLORBBBB00;
STICKLINE(AC<=AO,AC,AO,1.6,0),COLORCCCC00;
STICKLINE(AC<=AO,AC,AO,1.3,0),COLORDDDD00;
STICKLINE(AC<=AO,AC,AO,1,0),COLOREEEE00;
STICKLINE(AC<=AO,AC,AO,0,0),COLORFFFF00;


2020-10-07   #6

适用通达信

XCLOSE:=(O+H+L+C)/4;
XOPEN:=(REF(O,1)+REF(C,1))/2;
XHIGH:=MAX(H,MAX(XOPEN,XCLOSE));
XLOW:=MIN(L,MIN(XOPEN,XCLOSE));
DRAWKLINE(XHIGH,XOPEN,XLOW,XCLOSE);


登录后方可回帖

登 录
信息栏

本社区严禁出现如下现象:

1、发布广告宣传、QQ微信群的帖子。

2、发布个人人身攻击的言辞,发回帖中出现严重的政治言论。

3、纯表情以及其他毫无意义的发贴回帖,标题党或发布严重误导的贴子。

祝大家早日达成目标。

Loading...