ATR荊輪指標(biāo) [文華財(cái)經(jīng)]
:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> ATR := MA(TR,N);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> T:=BARSLAST(STARTDATE=DATE AND STARTTIME=TIME);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> m1:=if(t<m,t+1,m);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> 多止:LLV(L,M1)+RATIO*ATR*(T);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> 空止:hhv(h,m1)-RATIO*ATR*(T);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> 參數(shù)::="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> 參數(shù)名 缺省 最大 最小 步長(zhǎng):="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> stardate 1 999999 0 1:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> startime 0 999999 0 1:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" /> m 10 999999 0 1:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />
?
文華技術(shù)人員:?參考:
STARTDATE:=200102;
STARTTIME:=0900;
M:=10;
N:=10;
RATIO:=1;
TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR := MA(TR,N);
T:=BARSLAST(STARTDATE=DATE AND STARTTIME=TIME);
M1:=IF(T<M,T+1,M);
多止:LLV(L,M1)+RATIO*ATR*(T);
空止:HHV(H,M1)-RATIO*ATR*(T);
文華客服:
?謝謝!
網(wǎng)友回復(fù):
?帶入之后沒有顯示??我哪里出錯(cuò)?
網(wǎng)友回復(fù):
?需要加載到小周期上查看的,您也可以調(diào)整下時(shí)間
比如200102就是2020年1月2日,0900就是9點(diǎn)
文件名:12.jpg
?
?來源:程序化99
STARTDATE:=200102;
STARTTIME:=0900;
M:=10;
N:=10;
RATIO:=1;
TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR := MA(TR,N);
T:=BARSLAST(STARTDATE=DATE AND STARTTIME=TIME);
M1:=IF(T<M,T+1,M);
多止:LLV(L,M1)+RATIO*ATR*(T);
空止:HHV(H,M1)-RATIO*ATR*(T);
?
?來源: www.kzuj.com.cn
?
?
比如200102就是2020年1月2日,0900就是9點(diǎn)
文件名:12.jpg
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號(hào):cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫!
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容