- 精华
- 0
- 在线时间
- 26 小时
- UID
- 110217
- 积分
- 36
- 帖子
- 11
- 阅读权限
- 10
- 注册时间
- 2012-4-26
- 最后登录
- 2022-2-13
- 精华
- 0
- UID
- 110217
- 积分
- 36
- 帖子
- 11
- 主题
- 5
- 阅读权限
- 10
- 注册时间
- 2012-4-26
- 最后登录
- 2022-2-13
|
当在开仓的K线(日线)上用
Commentary("mark"+text(MarketPosition));
查看其值为0,下根K线的值才为1。
但在程序中用下面代码记录MarketPosition的值,在开仓的K线记录的却是1.
IF (date<>Date[1])
{
tpkey=DateToString(date)+TimeToString(time);
if (marketposition==1) SetTBProfileString("ru1d",tpkey,"1");
Else If(marketposition==0) SetTBProfileString("ru1d",tpkey,"0");
Else If(marketposition==-1) SetTBProfileString("ru1d",tpkey,"-1");
}
|
|