-- 作者:yuefei227
-- 发布时间:2013/11/1 10:13:40
--
stopprice := l - stopnum;
if aspect = 0 then
begin
//多头处理
if l <= stopprice then
begin
//多反空
aspect:= 1;
stopprice := h+stopnum;
end
//处理移动的底部
if l - stopnum > stopprice then
stopprice := l-stopnum;
end
if aspect = 1 then
begin
//空头处理
if h >= stopprice then
begin
//空反多
aspect:= 0;
stopprice := l-stopnum;
end
代码是这个 请问怎么定义 突破时 的价格 然后按这个价格 下单开仓
//处理移动的底部
if h + stopnum < stopprice then
stopprice := h+stopnum;
end
//画线
PARTLINE( aspect = 0, stopprice , colorrgb(255,0,0));
PARTLINE( aspect = 1, stopprice , colorrgb(0,255,0));
|