以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请老师帮忙转换代码 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=149624) |
-- 作者:13142159 -- 发布时间:2017/3/24 9:58:06 -- 请老师帮忙转换代码 文华代码转换成金字塔 N:=BARSLAST(TIME=0900)+1; NN1:=BARSLAST(DATE<>REF(DATE,1))+1; N=1&&ISUP,BK;//BK N=1&&C<=O,SK;//SK C<=BKPRICE-15,SP;//SP止损 C>=SKPRICE+15,BP;//BP止损 C>=BKPRICE+65,SP;//止盈 C<=SKPRICE-65,BP;//止盈 TIME>=1451,CLOSEOUT; AUTOFILTER; |
-- 作者:qq代人发帖 -- 发布时间:2017/3/24 10:03:14 -- BKPRICE SKPRICE CLOSEOUT 这3个是什么意思? |
-- 作者:13142159 -- 发布时间:2017/3/24 10:06:02 -- BKPRICE 返回数据合约最近一次买开信号价位 SKPRICE 返回数据合约最近一次卖开信号价位 CLOSEOUT 清仓指令 |
-- 作者:qq代人发帖 -- 发布时间:2017/3/24 10:14:22 -- 交易k线是几分钟周期? 用的固定时间间隔还是走完一根k线? [此贴子已经被作者于2017/3/24 10:14:30编辑过]
|
-- 作者:13142159 -- 发布时间:2017/3/24 10:23:07 -- 1分钟周期 走完一根K线 |
-- 作者:qq代人发帖 -- 发布时间:2017/3/24 10:30:23 -- 在金字塔里最近一次买开信号价位和最近一次卖开信号价位都是用enterprice表示,不分多空
if TIME>=1451 then begin //清仓 |