金字塔交易系统:
开盘第一根阳线确立下一个K线开盘价格开多,n点止盈m点止损 (参数可调)
开盘第一根阴线确立下一个K线开盘价格开空,n点止盈m点止损 (参数可调)
带资金曲线显示
{开盘第一根阳线确立下一个K线开盘价格开多,n点止盈m点止损 (参数可调)
开盘第一根阴线确立下一个K线开盘价格开空,n点止盈m点止损 (参数可调)
}
input:n(30,1,100,1),m(20,1,100,1);
IF TODAYBAR = 1 AND ISUP THEN
BEGIN
BUY(1,1,MARKETr);
END
IF TODAYBAR = 1 AND ISDOWN THEN
BEGIN
buyshort(1,1,marketr);
end
if holding>0 then//持有多仓
BEGIN
if c - enterprice >= n*MINDIFF THEN
begin
多赢:sell(1,0,marketr);
end
if enterprice - c >= m*MINDIFF then
begin
多损:sell(1,0,marketr);
end
end
if holding < 0 then//持有空仓
BEGIN
if enterprice - c >= n*MINDIFF THEN
begin
空赢:sellshort(1,0,marketr);
end
if c - enterprice >= m*MINDIFF then
BEGIN
空损:sellshort(1,0,marketr);
end
end
当前持仓:HOLDING,COLORGRAY,LINETHICK0;
当前资产:ASSET,NOAXIS,COLORGRAY;
n点止盈,指的是n个最小变动价位
如有什么问题,可以发我站内信息