1.股票公式错误(当前公式 : 高低点 (指标画线公式)
2.两个ç¹åç´çº¿çè¡ç¥¨å
¬å¼
股票公式错误(当前公式 : 高低点 (指标画线公式)
{ 显示高低点}
顶周期:=TOPRANGE(H);
底周期:=LOWRANGE(L);
上内:=LLVBARS(H,股票功能公式股票工具codesys怎么获取源码顶周期);
上外:=LLVBARS(L,顶周期);
下内:=HHVBARS(L,底周期);
下外:=HHVBARS(H,底周期);
上力度:=HHV(L,上内+1)>LLV(H,上内+1);
下力度:=HHV(L,下内+1)>LLV(H,下内+1);
上包含:=COUNT(L>=REF(L,1),上外)>2 AND COUNT(H>=REF(H,1),上内)>2;
下包含:=COUNT(H<=REF(H,1),下外)>2 AND COUNT(L<=REF(L,1),下内)>2;
顶0:=顶周期 AND 上力度 AND 上包含 AND 上外>3;
底0:=底周期 AND 下力度 AND 下包含 AND 下外>3;
顶分天数:=BARSLAST(顶0);
底分天数:=BARSLAST(底0);
含中间K线:=IF(顶分天数=0,底分天数,顶分天数)>=3;
顶:=顶0 AND 含中间K线 AND H=HHV(H,BARSLAST(底0));
底:=底0 AND 含中间K线 AND L=LLV(L,BARSLAST(顶0));
NOTEXT上笔划线: DRAWLINE(底,L,顶,H,0),COLORLIRED,LINETHICK1;
NOTEXT下笔划线: DRAWLINE(顶,H,底,L,0),COLORLIGREEN,LINETHICK1;
分界点:=NOTEXT上笔划线 AND NOTEXT下笔划线;
位置调整:=
IF(PERIOD=,0.,{ 年}
IF(PERIOD=,0.,{ 季}
IF(PERIOD=9,0., { 多日}
IF(PERIOD=8,0.,{ 多分钟}
IF(PERIOD=7,0., { 月}
IF(PERIOD=6,0., { 周}
IF(PERIOD=5,0., { 日}
IF(PERIOD=4,0.,{ F}
IF(PERIOD=3,0.,{ F}
IF(PERIOD=2,0.,{ F}
IF(PERIOD=1,0.,{ 5F}
IF(PERIOD=0,0.,{ 1F}0))))))))))));
DRAWNUMBER(分界点 AND 顶,H+H*位置调整,H),COLORLIGREEN;
DRAWNUMBER(分界点 AND 底,L,L),COLORLIMAGENTA;
{ MACD常用}
DIF:EMA(CLOSE,)-EMA(CLOSE,),COLORGREEN;
DEA:EMA(DIF,9),COLORMAGENTA;
MACD:2*(DIF-DEA),LINETHICK0;
BB:=DIF>=REF(DIF,1);
IF(BB,DIF,DRAWNULL),COLORGREEN,LINETHICK2;
AA:=DEA>=REF(DEA,1);
IF(AA,DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,2.5,0),COLORAA;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,1.5,0),COLORCC;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,1,0),COLORDD;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,2.5,0),COLORAA;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,1.5,0),COLORFF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,1,0),COLORFFFF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,3,0),COLORFF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,2,0),COLORFFBB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,1,0),COLORFFFF;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,3,0),COLORFF;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,2,0),COLORFF;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,1,0),COLORFF;
两个ç¹åç´çº¿çè¡ç¥¨å ¬å¼
以ä¸ä¸ºé达信çä¾åï¼
1ãå¨å¾å½¢ä¸ç»å¶æ线段.
ç¨æ³:
PLOYLINE(COND,PRICE),å½CONDæ¡ä»¶æ»¡è¶³æ¶,以PRICEä½ç½®ä¸ºé¡¶ç¹ç»æ线è¿æ¥.
ä¾å¦: PLOYLINE(HIGH>=HHV(HIGH,),HIGH)表示å¨å天æ°é«ç¹ä¹é´ç»æ线ã
2ãå¨å¾å½¢ä¸ç»å¶ç´çº¿æ®µ.
ç¨æ³:
DRAWLINE(COND1,PRICE1,COND2,PRICE2,EXPAND),å½COND1æ¡ä»¶æ»¡è¶³æ¶,å¨PRICE1ä½ç½®ç»ç´çº¿èµ·ç¹ï¼å½COND2æ¡ä»¶æ»¡è¶³æ¶,å¨PRICE2ä½ç½®ç»ç´çº¿ç»ç¹ï¼EXPAND为延é¿ç±»åã
ä¾å¦:DRAWLINE(HIGH>=HHV(HIGH,),HIGH,LOW<=LLV(LOW,),LOW,1)表示å¨å天æ°é«ä¸å天æ°ä½ä¹é´ç»ç´çº¿å¹¶ä¸åå³å»¶é¿ã
以ä¸1å2æ¯å¨å ¬å¼ç¼è¾å¨éé¢ä½¿ç¨ã
3ãç¹å»ç»çº¿å·¥å ·éé¢çâ线段âï¼ç¶åéæ©ä½ è¦ç»ç两个ç¹ï¼çº¿å°±åºæ¥äºã
2024-12-25 23:38
2024-12-25 23:24
2024-12-25 22:58
2024-12-25 22:32
2024-12-25 22:20
2024-12-25 22:04
2024-12-25 21:48
2024-12-25 21:42