當平倉時當日總贏利超過20點不再開倉如何編寫?
作者:金字塔 來源:cxh99.com 發布時間:2016年06月25日
- 咨詢內容:
請教:我用軟件自帶的完振交易系統.運用于股指日內圖表交易.
當平倉時當日總贏利超過20點不再開倉如何編寫,如何補充進原自帶交易系統?
- 金字塔客服:
VARIABLE:a=0,n=0;
if date<>ref(date,1) THEN
a:=ASSET;
if 開倉條件 and n=0 and holding=0 THEN
buy(1,1,market);
if 平倉條件 and holding>0 then
sell(1,1,market);
yingdain:=(asset-a)/MULTIPLIER;
if yingdain>=20 then
n:=1;