TB代碼轉(zhuǎn)金字塔 [金字塔]
-
咨詢內(nèi)容:
Params
?Numeric Length(21);
Vars?
?NumericSeries TmpValue;
?Numeric SumVol;
?Numeric CMFValue;
Begin
?If(High > Low)
??TmpValue = ((Close - Low) - (High - Close)) / (High - Low) * Vol;
??? SumVol = SummationFC(Vol, Length);
?If(SumVol <> 0)?
???? CMFValue = SummationFC(TmpValue, Length) / SumVol;
?PlotNumeric("CMF", CMFValue);
?PlotNumeric("Ref", 0);
End;?
請(qǐng)修改成金字塔指標(biāo)
?
-
金字塔客服:
?INPUT:Length(21,1,100,1);
VARIABLE:TmpValue:=0;
TmpValue:=IF(H<>l,((Close - Low) - (High - Close)) / (High - Low) * Vol,0);
SumVol:=IF(H<>L,sum(Vol,Length),0);
CMFValue:=IF(SumVol<>0,sum(TmpValue, Length) / SumVol,0);
CMF:CMFValue;
僅供參考。
有思路,想編寫(xiě)各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號(hào):cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫(xiě)!
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容