請問,我所查到的鱷魚線公式如下
中值 : (當日最高價+當日最低價)/2
顎線 : 13天每日中值平均值 (往右偏移8天)
齒線 : 8天每日中值平均值 (往右偏移5天)
唇線 : 5天每日中值平均值 (往右偏移3天)
所以,我寫出了下列公式,但是不知道(往右偏移?天),這段該怎麼寫?
因為,跑出來的線型與主圖內建的鱷魚線不同
variable:Jaws(0), Lips(0), Teeth(0);
settotalbar(300);
Jaws = Average(((high + low)/2), 13)[8];
Teeth = Average(((high + low)/2), 8)[5];
Lips = Average(((high + low)/2), 5)[3];
Plot1(Jaws, "顎");
Plot2(Teeth, "齒");
Plot3(Lips, "唇");
4 評論