金字塔公式 金字塔模型策略源码:runmode:0;
if holding=0 then begin
if weekday=2 then
buyshort(1,1,limitr,open);
end
if holding<0 then begin
sellshort(1,1,limitr,close);
end
收益:(asset-30000)/30000,noaxis,colormagenta;
次数:totaltrade,linethick0;
胜率:percentwin,linethick0;
连亏:maxseqloss,linethick0;
连赢:maxseqwin,linethick0;
复制上述代码粘贴到到公式管理器
源码解析:
输出RUNMODE:0
逻辑判断 HOLDING=0 THEN BEGIN 逻辑判断 星期=2 THEN BUYSHORT(1,1,LIMITR,开盘价)
ENDIF HOLDING<0 THEN BEGIN SELLSHORT(1,1,LIMITR,收盘价)
输出END收益:(ASSET-30000)/30000,NOAXIS,画洋红色
输出次数:TOTALTRADE,线宽为0
输出胜率:PERCENTWIN,线宽为0
输出连亏:MAXSEQLOSS,线宽为0
输出连赢:MAXSEQWIN,线宽为0