首页 > > 详细

帮做指标公式、金字塔策略公式调试、代做公式选股、金字塔布林强盗交易系统源码-金字塔模型

模型策略源码:runmode:0;
input:bollingerlengths(50);
input:liqlength(50);
input:roccalclength(30);
mid:=ma(close,bollingerlengths);
upperband:=ref(mid+1.25*std(close,bollingerlengths),1);
lowerband:=ref(mid-1.25*std(close,bollingerlengths),1);
roccalc:=close-ref(close,roccalclength-1);
entrylongcond:=roccalc>0 and high>=upperband;
entryshortcond:=roccalc0 then begin
if entryshortcond then begin
sell(1,holding,limitr,min(open,lowerband));
buyshort(1,1,limitr,min(open,lowerband));
end
end
if holding0 then begin
liqdays:=liqdays-1;
liqdays:=max(liqdays,10);

end
ma1:=ref(ma(close,liqdays),1);
if holding>0 then begin
if ma1lowerband and high>=ma1 then
sellshort(1,holding,limitr,max(open,ma1));
end
盈亏:asset-50000,noaxis,colorred,linethick2;
 

联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。