请老师把(买卖指标)出现买入信号改成通达信选股公式谢谢,自己改了下但是选不出股 请老师帮忙 VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21)))); VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21)))); VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34)); DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),1); DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),2); DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'买入'),COLOR4440FF; DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'卖出'),COLORFFFF34; 年:MA(CLOSE,26),COLORGREEN;
爱约股解答:
{两个公式做成两个选股}
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
买入:(CROSS(VAR2,MA(VAR3,6));