持仓线走平选股
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);买1:=QJ0*(MIN(OPEN,CLOSE)-LOW);买2:=QJ0*(JJ-MIN(CLOSE,OPEN));卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ);卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE));DT:=((买1+买2)-(卖1+卖2))/10000;持仓线:SUM(DT,66),COLORMAGENTA;求老师编写持仓线走平或在一个区间内波动。波动区间最好可以自调。(不好意思,我试过自己计算波动区间,但能力有限,没发现有很好的方法。)

解答:

 设变量区间n,波动时间m

 
 
JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0*(JJ-MIN(CLOSE,OPEN));
卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ);
卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
DT:=((买1+买2)-(卖1+卖2))/10000;
持仓线:SUM(DT,66),COLORMAGENTA;
xg1:=n/100;
xg2:=持仓线>持仓线*(1-n) and 持仓线<持仓线*(1+n);
xg:sum(xg2,m)=m;

选股票看什么指标最好 >股票指标网