井字型死亡交叉

By | 2018-11-06

井字型死亡交叉是四個天期的移動平均線呈現兩條短天期均線向下,兩條較長天期均線向上的排列方式,可以用以下的圖來表示

C73

通常這種情況極有可能是一個作頭的訊號。

對應的腳本如下

variable:a5(0),a10(0),a20(0),a30(0);
a5=average(close,5);
a10=average(close,10);
a20=average(close,20);
a30=average(close,30);

if linearregslope(a5,5)<0
and linearregslope(a10,5)<0
and linearregslope(a20,5)>0
and linearregslope(a30,5)>0
then ret=1;