以下是同花顺股市黑火药源码副图
一硝:(HHV(HIGH,9)+LLV(LOW,9))/2,colorred;
二黄:(HHV(HIGH,26)+LLV(LOW,26))/2,coloryellow;
硝酸钾:=MA(C,3);
硫磺:=MA(硝酸钾,5);
木炭:=MA(硝酸钾,60);
三木炭:=3*木炭-2*硫磺;
aa:=CROSS(二黄,三木炭);
bb:=CROSS(一硝,二黄);
DRAWTEXT(bb,二黄,\’火\’),colorred;
DRAWTEXT(aa,二黄,\’黑火药\’),colorwhite;