- 精华
- 0
- 在线时间
- 214 小时
- UID
- 5027
- 积分
- 587
- 帖子
- 100
- 阅读权限
- 50
- 注册时间
- 2009-8-5
- 最后登录
- 2016-1-30
- 精华
- 0
- UID
- 5027
- 积分
- 587
- 帖子
- 100
- 主题
- 7
- 阅读权限
- 50
- 注册时间
- 2009-8-5
- 最后登录
- 2016-1-30
|
If(MarketPosition==1)
{
If(Condition3)
{
entprice=Open;
Buy(0,entprice+2);
SetTBProfileString(stopprice,keypreentprice,Text(gentprice));
SetTBProfileString(stopprice,keygentprice,Text(entprice));
Commentary("gentprice="+Text(entprice));
Commentary("preentprice="+Text(gentprice));
}
if(low<=preentprice) BuyToCover(0,preentprice);
}
我保存了当初开仓价和上一次开仓价,想加仓后用用一次开仓价作为止损。但保存的值只在开仓BAR上可以看到,其它的BAR看不到。怎么把这个值传递到每个BAR啊 |
|