以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 金字塔软件问题提交 (http://weistock.com/bbs/list.asp?boardid=2) ---- 如何表述开仓后的最高价? (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=55468) |
-- 作者:kevinxuan -- 发布时间:2013/8/21 9:24:56 -- 如何表述开仓后的最高价? 如何表述开仓后的最高价? 从开仓K线算起 |
-- 作者:fly -- 发布时间:2013/8/21 9:28:26 -- variable:h1=0;
if con and holding=0 then begin buy(1,1,market); h1:=high; end
if holding>0 and high>h1 then h1:=high;//开仓后的最高价 |
-- 作者:kevinxuan -- 发布时间:2013/8/21 9:34:49 -- 这种写法,要把代码基本全变了吧。符合条件就开仓,那平仓语句是不是可以全写在一块? |
-- 作者:fly -- 发布时间:2013/10/8 16:04:55 -- 不用全变.这个只是记录开仓后的K线最高价
平仓语句不变
|