C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- Var1:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;
- Var2:=(OPEN-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;
- Var3:=(HIGH-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;
- Var4:=(LOW-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;
- STICKLINE(CLOSE>=OPEN,Var3,Var1,0.7,1), , ;
- STICKLINE(CLOSE>=OPEN,Var2,Var4,0.7,1), ,;
- STICKLINE(CLOSE<OPEN,Var3,Var2,0.7,1), , ;
- STICKLINE(CLOSE<OPEN,Var1,Var4,0.7,1), , ;
- STICKLINE(CLOSE=OPEN,Var1,Var2,7,1), , ;
- STICKLINE(CLOSE>OPEN,Var1,Var2,7,1), , ;
- STICKLINE(CLOSE<OPEN,Var2,Var1,7,1), , ;
- Var5:=REF(CLOSE,1);
- RSI1: SMA(MAX(CLOSE-Var5,0),5,1)/SMA(ABS(CLOSE-Var5),5,1)*100, , ;
- RSI2: SMA(MAX(CLOSE-Var5,0),10,1)/SMA(ABS(CLOSE-Var5),10,1)*100, , ;
- STICKLINE(MIN(Var2,Var1)=0 AND RSI1<20 OR Var4=0 AND RSI1<20,0,80,2,1), , ;
- STICKLINE(MAX(Var2,Var1)=100 AND RSI1>80 OR Var3=100 AND RSI1>80,100,20,2,1), , ;
- 20;
- 80;