- 精华
- 0
- 在线时间
- 427 小时
- UID
- 28852
- 积分
- 651
- 帖子
- 153
- 阅读权限
- 60
- 注册时间
- 2011-3-15
- 最后登录
- 2022-1-5
- 精华
- 0
- UID
- 28852
- 积分
- 651
- 帖子
- 153
- 主题
- 42
- 阅读权限
- 60
- 注册时间
- 2011-3-15
- 最后登录
- 2022-1-5
|
以下是我的程序代码:
Params
Numeric length1(24);
Numeric length2(3);
Vars
NumericSeries Myclose90;
NumericSeries Myema;
NumericSeries Cmax90;
Numeric SC90;
Numeric XG90;
Bool con1;
String strkey90;
Begin
If(CurrentBar==0) Return;
Myema=XAverage(Close, Length1);
Cmax90=Highest(Close,length2);//90分钟周期前3根K线收盘价的最大值
con1=CrossOver(Close,Cmax90);
If(con1)
{
SC90=2;
}
If(Close>Close[1])
{
XG90=1;
}
strkey90=DateToString(Date)+":"+TimeToString(Time);
SetTBProfileString("Myclose90",strkey90,Text(close));
SetTBProfileString("Myema",strkey90,Text(Myema));
SetTBProfileString("Cmax90",strkey90,Text(Cmax90));
SetTBProfileString("SC90",strkey90,Text(SC90));
SetTBProfileString("XG90",strkey90,Text(XG90));
//PlotNumeric("Myclose90",Myclose90);
PlotNumeric("Myema",Myema);
PlotNumeric("Cmax90",Cmax90);
End
在数据管理的配置工具里面 SC90的值一直都为0 奇怪了 取不到,但是XG90取的到,如图:
SC90取不到,不知道什么原因,求解哦 |
附件: 你需要登录才可以下载或查看附件。没有帐号?注册
|