以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 策略编写求助区 (http://www.weistock.com/bbs/list.asp?boardid=11) ---- 老师帮我写下 (http://www.weistock.com/bbs/dispbbs.asp?boardid=11&id=74811) |
|
-- 作者:dalunihao -- 发布时间:2015/1/21 17:30:45 -- 老师帮我写下 客服老师你好;下面的思路,我从来没有写过,麻烦您帮我写下。
<!--[if !supportLists]-->①,<!--[endif]-->按自然月来算,如果本月净利润超过2万(或本金的8%),则本月停止交易,
<!--[if !supportLists]-->②,<!--[endif]-->按自然月来算,如果本月亏损超过5万(或本金的10%),则本月停止交易,
<!--[if !supportLists]-->③,<!--[endif]-->按自然月来算,【如图】,如果本月利润已经超过2万了,但是利润从最高点回撤1万(或回撤本金的3%),本月终止交易。下月继续交易。
<!--[if !supportLists]-->④,<!--[endif]-->日内模型:当日连续亏损5次(或亏了本金的5%),当日停止交易,次日重新开始计算。
<!--[if !supportLists]-->⑤,<!--[endif]-->日内模型:当日净利润超过1万(或赚了本金的5%),当日停止交易,次日重新开始计算。 |
|
-- 作者:dalunihao -- 发布时间:2015/1/22 10:11:31 --
|
|
-- 作者:dalunihao -- 发布时间:2015/1/22 16:56:24 -- 客服老师,如果您先麻烦,你帮我写这个吧:①,按自然月来算,如果本月净利润超过2万(或本金的8%),则本月停止交易, |
|
-- 作者:yukizzc -- 发布时间:2015/1/27 9:36:55 -- variable:n=0; 月初资产:VALUEWHEN(month<>ref(month,1),asset); if asset-月初资产>20000 then n:=1; if month<>ref(month,1) then n:=0;
if n=0 then //n满足时才进行下面的交易 begin sell(); buy(); ... end |