月macd:="MacD#MONTH"(26,12,13);{引用月线数据}
日MACD:="MACD#DAY"(26,12,13);{引用日线数据}
日月:=月MACD>0 and 日MACD>0;{上升通道}
a:="MACD.MACD#MONTH";{月线的macd}
a1:=ref("MACD.MACD#MONTH",1);{上个月线的macd}
a2:=ref("MACD.MACD#MONTH",2);{两个前月线的macd}
d:="MACD.DIFF#MONTH";{月线的diff}
{ Gupang.com 股-旁-网_飞狐股票指标公式}
d1:=ref("MACD.DIFF#MONTH",1);{上个月线的diff}
d2:=ref("MACD.DIFF#MONTH",2);{两个前月线的diff}
DD:=a2>=a1 and a>=a1 and a>0 and a1>0 and a2>0 and d>0 and d1>0 and d2>0;
CC:=AMOUNT/V/100;JJ1:=EMA(CC,10);JJ2:=EMA(CC,20);
XG:日月 and DD and CLOSE>=jj2 and CLOSE<=jj1 and L>=JJ2;