a:=(c-ref(c,1))/ref(c,1)*100;b:=c>o and between(a,0.6,1.6);aa:=(c-ref(c,1))/ref(c,1)*100;bb:=c<o and between(aa,-0.6,-1.6);xg:ref(b or bb,1) and (b or bb) and max(o,c)<min(ref(o,1),ref(c,1));(已测试) 20210311
{按楼主要求:5日均线,向上为红色k柱,向下为绿色k柱}tyx:=ma(c,5);stickline(c>=tyx and c>o,h,l,0,0),color0000ff; stickline(c>=tyx and c>o,c,o,12,0),color0000ff;stickline(c<tyx and c<o,h,l,0,0),color00ff00;s...
t1:=ref(c,2)/ref(c,3)>1.03;t2:=ref(o,1)>ref(o,2) and ref(c,1)<=ref(c,2);t3:=o>ref(o,2) and o<ref(o,1) and c<ref(c,1);xg:t1 and t2 and t3; 已测试,公式已做好,如果达到你的要求请及时采纳。