2013年9月13日 星期五

超過500%的code???

昨日的code似乎很多都寫錯
今日依然好懶,試了幾個組合
感覺都怪怪的

後來試了超過三十日高位買
連續六日低於十日平均線平倉
回測的return有500%以上......
是甚麼地方出錯了嗎

if averagefc(close,5)>averagefc(close,20) and averagefc(close,20)>averagefc(close,40)then begin
plot1("place a stock order","",red);
plot2(close,"",red);
alert(text("place a stock order"));
end else begin
plot1("");
plot2(close,"",green);
end;

姑且再為它寫個指標試試
If close>Highestfc(close,30)[1] then begin
plot1("place a stock order","",red);
alert(text("place a stock order"));
end;

If close[1]<averagefc(close,10) and
close[2]<averagefc(close,10) and
close[3]<averagefc(close,10) and
close[4]<averagefc(close,10) and
close[5]<averagefc(close,10) and
close[6]<averagefc(close,10) then begin
plot2("sell sell sell","",red);
end;

.............幹
為啥全都是place a stock order????
原本是打算加上marketposition>/=0的
但指標不允許


另外前幾天買的書到啦~
好快喔
之前自己都跟自己說: 哎,現在沒書,有書再想
現在打開書.....飆淚
要是我幾天就有書在手
就可以爬少好多文了

買了快易通、計量交易和海龜投資法則
一大堆書還未完成....
不知該從哪開始

下一次試試pivot point
我好像看到multicharts裏面有


沒有留言:

張貼留言