:="" 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'="" /> 參數::="" 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'="" />:="" 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'="" />
?
?
?來源:程序化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