C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- P1 2 10 5
-
-
- MA1:EMA(CLOSE,3);
- MA2:EMA(CLOSE,5);
- MA3:EMA(CLOSE,8);
- MA4:EMA(CLOSE,10);
- MA5:EMA(CLOSE,12);
- MA6:EMA(CLOSE,35);
- MA7:EMA(CLOSE,40);
- MA8:EMA(CLOSE,45);
- MA9:EMA(CLOSE,50);
- MA10:EMA(CLOSE,60);
- PH:=TROUGHBARS(2,P1,1);
- LL:=HHV(H,PH);
- TJ1:=LL=HIGH AND LL<REF(LL,1);
- TS:=SUMBARS(TJ1,2);
- TJ:=PEAKBARS(2,P1,1)=1 AND TS>=PH;
- 警告灯:DRAWICON(TJ,HIGH*1.01+0.02,2);
- PL:=BARSLAST(TJ);
- 支撑:STICKLINE(BARSLAST(TJ1),REF(LOW,BARSLAST(TJ1)),REF(LOW,BARSLAST(TJ1)),4,0),POINTDOT,COLOREA91B5;
- 压力:STICKLINE(BARSLAST(TJ),REF(HIGH,PL),REF(HIGH,PL),4,0),POINTDOT,COLORYELLOW;
- TJ_2:=LOW>REF(REF(LOW,TS),PL);
- DRAWTEXT(COUNT(TJ_2,PL+1)=1,HIGH*1.005,'↓'),COLORFF00FF;{
- DRAWICON(BARSLAST(TJ1)=1,REF(LOW*0.995,BARSLAST(TJ1)),1);