ATR荊輪指標 [文華財經]
:="" 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ù)名 缺省 最大 最小 步長:="" 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'="" />
?
文華技術人員:?參考:
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)友回復:
?帶入之后沒有顯示??我哪里出錯?
網(wǎng)友回復:
?需要加載到小周期上查看的,您也可以調整下時間
比如200102就是2020年1月2日,0900就是9點
文件名: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.tumamayizhan.com
?
?
比如200102就是2020年1月2日,0900就是9點
文件名:12.jpg
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容