以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 获取最后一次成交价格 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=87416) |
-- 作者:orca8 -- 发布时间:2015/11/18 10:07:29 -- 获取最后一次成交价格 公式编写中 怎么 获取 最近一次成交的 价格 方向 , enterPrice 取过来为-1 |
-- 作者:jinzhe -- 发布时间:2015/11/18 10:08:50 -- typebar(1,1)<typebar(1,3)最后一次为开多 typebar(1,1)>typebar(1,3)最后一次为开空
最近一次开仓价:enterprice,-1表示你前面没有开仓 |
-- 作者:orca8 -- 发布时间:2015/11/18 10:15:54 -- 前面? 但是我一直有开仓啊 |
-- 作者:orca8 -- 发布时间:2015/11/18 10:18:59 -- if typebar(1,1)=typebar(1,3) 是不是平仓呢
|
-- 作者:orca8 -- 发布时间:2015/11/18 10:20:42 -- if typebar(1,1)<typebar(1,3) then DRAWTEXTEX(1,0,5,80, \'开多 价格: \'+NUMTOSTR(enterprice,0),COLORWHITE); if typebar(1,1)>typebar(1,3) then DRAWTEXTEX(1,0,5,80, \'开空 价格: \'+NUMTOSTR(enterprice,0),COLORWHITE); if typebar(1,1)=typebar(1,3) then DRAWTEXTEX(1,0,5,80, \'平仓 价格: \'+NUMTOSTR(EXITPRICE,0),COLORWHITE); |
-- 作者:jinzhe -- 发布时间:2015/11/18 10:22:16 -- 有开仓,那么enterprice不会是-1 |
-- 作者:jinzhe -- 发布时间:2015/11/18 10:23:24 -- 什么叫“是不是平仓”? 平仓是你的平仓条件和平仓语句决定的啊,和开多周期开空周期没有关系 |
-- 作者:orca8 -- 发布时间:2015/11/18 10:41:58 -- 是没有,刚试了,只不过我是 人工开的单 |
-- 作者:jinzhe -- 发布时间:2015/11/18 10:43:11 -- 上面的都是图表函数,手工开单不能被获取 |