金字塔能不能實(shí)現(xiàn)以下功能,比方說,
日振幅<x%,自動(dòng)切換到1分鐘周期,使用a參數(shù),日振幅>X自動(dòng)切換到5分鐘周期,調(diào)用B參數(shù)。
你可以考慮使用跨周期引用,
當(dāng)日振幅<x%時(shí),引用1分鐘周期的數(shù)據(jù)。
能不能請版主寫個(gè)范本出來?
這個(gè)功能能在圖表實(shí)現(xiàn)?
可以在圖表上實(shí)現(xiàn)
類似下面。
zf:(HIGH-CLOSE)/ref(CLOSE,1);
if zf<0.03 then BEGIN
a:STKINDI('SH600000','RSI',0,6,-1);;
end
if zf>0.03 then BEGIN
b:STKINDI('SH600000','RSI',0,6,-1);;
end