
等级: 新手上路
- 注册:
- 2022-2-18
- 曾用名:
|

楼主 |
发表于 2024-4-24 17:20
|
显示全部楼层
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
if ref(cross(diff,dea),3) then BARSSET(1,high,1,0);
if ref(cross(diff,dea),4) then BARSSET(1,high,1,0);
if ref(cross(diff,dea),5) then BARSSET(1,high,1,0);
variable:a=0;
temp:=hhv(high,3);
if ref(cross(diff,dea),5) then
begin
BARSSET(1,high,1,0);
a:=temp;
end
drawtext(REF(close,0)>ref(a,3),low,'多',colorred);
我按照这个代码写下去 最后判断时 ref(a,3)这里 出现的“多”的那根K线,收盘价没有大于最左边一个分型的最高价,是哪里出错了嘛 图在下一楼 |
|