等级: 免费版
- 注册:
- 2021-5-29
- 曾用名:
|
跨周期引用://30分钟B30:=STKINDI('','CCD2.B',0,4,-1);;
STICKLINE(B30>=0 , 5.5, 6.5,8,0, COLORRED);
STICKLINE(B30<0 , 5.5, 6.5,8,0, COLORGREEN );
//1小时
BHOUR:=STKINDI('','CCD2.B',0,5,-1);;
STICKLINE(BHOUR>=0 , 4, 5,8,0,COLORMAGENTA );
STICKLINE(BHOUR<0 , 4, 5,8,0, COLORGREEN );
//2小时
B240:=STKINDI('','CCD2.B',0,24,-1);
STICKLINE(B240>=0,2.5,3.5,8,0,COLORRED);
STICKLINE(B240<0,2.5,3.5,8,0,COLORGREEN);
//日
BDAY:=STKINDI('','CCD2.B',0,6,-1);
STICKLINE(BDAY>=0,1,2,8,0,COLORRED);
STICKLINE(BDAY<0,1,2,8,0,COLORGREEN);
//日
BWEEK:=STKINDI('','CCD2.B',0,7,-1);
STICKLINE(BWEEK>=0,-1.5,-0.5,8,0,COLORRED);
STICKLINE(BWEEK<0,-1.5,-0.5,8,0,COLORGREEN);
引用的原公式:VAR1:=LLV(CLOSE,10);//10日最低
VAR2:=HHV(CLOSE,10);//10日最大
F:EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,10), COLORGREEN;//价差
S:EMA(0.667*REF(F,1)+0.333*F,2) , COLORYELLOW;
B:F-S;
VAR3:=(2*CLOSE+HHV(CLOSE,2)+LLV(CLOSE,2))/4;//化解
VAR4:=LLV(CLOSE,34);//34日最低
VARA:=HHV(CLOSE,34);
VARB:=EMA((VAR3-VAR4)/(VARA-VAR4)*100,13);//价差
VARC:=EMA(0.667*REF(VARB,1)+0.333*VARB,2);
FJ:=VARB-VARC;
BC1:(VARB+VARC)/2;
BC:REF(BC1,1);
补充内容 (2021-7-19 10:42):
这个原公式CCD2
补充内容 (2021-7-19 10:43):
引用后的公式是XCCWEEK2 |
|