- 精华
- 0
- 在线时间
- 194 小时
- UID
- 38084
- 积分
- 323
- 帖子
- 71
- 阅读权限
- 50
- 注册时间
- 2011-5-6
- 最后登录
- 2022-1-26
- 精华
- 0
- UID
- 38084
- 积分
- 323
- 帖子
- 71
- 主题
- 26
- 阅读权限
- 50
- 注册时间
- 2011-5-6
- 最后登录
- 2022-1-26
|
插入一小时
Params
Numeric length(10);
Vars
Numeric MA;
string strkey;
string strValue;
Begin
MA = AverageFC(Close,length);
strKey = timeToString(hour);
strValue = Text(MA);
SetTBProfileString("DayMA",strKey,strValue);
PlotNumeric("MA",MA);
End
插入五分钟的
Vars
NumericSeries DayMAValue;
StringSeries strKey;
string strValue;
Begin
If(hour!=hour[1])
{
strKey = timeToString(hour[1]);
}Else
{
strKey = strKey[1];
}
strValue = GetTBProfileString("DayMA",strKey);
If(strValue != InvalidString)
{
DayMAValue = Value(strValue);
}Else
{
DayMAValue = DayMAValue[1];
}
PlotNumeric("DayMA",DayMAValue);
End
五分钟只显示直线。 |
|