- 精华
- 0
- 在线时间
- 115 小时
- UID
- 113242
- 积分
- 3506
- 帖子
- 97
- 阅读权限
- 80
- 注册时间
- 2012-10-31
- 最后登录
- 2013-6-4
- 精华
- 0
- UID
- 113242
- 积分
- 3506
- 帖子
- 97
- 主题
- 11
- 阅读权限
- 80
- 注册时间
- 2012-10-31
- 最后登录
- 2013-6-4
|
Vars
NumericSeries HighValue;
//NumericSeries OpenValue;
NumericSeries lowValue;
NumericSeries CloseValue;
StringSeries strKey;
string strValue1;
string strValue2;
string strValue3;
//string strValue4;
Begin
If(date!=date[1])
{ strKey = DateTimeToString(Date[1]+151000);
}Else If(date==date[1])
{ If(Time%5==0)
strKey = DateTimeToString(Date+Time-0.0005);
If(Time%5!=0)
strKey =strKey[1];
}
strValue1 = GetTBProfileString2File("D:\\数据\\My5MinsHigh.txt","MyHigh",strKey);
strValue2 = GetTBProfileString2File("D:\\数据\\My5MinsLow.txt","Mylow",strKey);
strValue3 = GetTBProfileString2File("D:\\数据\\My5MinsClose.txt","MyClose",strKey);
//strValue4 = GetTBProfileString2File("D:\\数据\\My5MinsOpen.txt","MyOpen",strKey);
If(strValue1 != InvalidString&&strValue2 != InvalidString&&strValue3 != InvalidString)
{
HighValue = Value(strValue1);
LowValue = Value(strValue2);
CloseValue = Value(strValue3);
// OpenValue = Value(strValue4);
}Else
{
HighValue = HighValue[1];
LowValue = LowValue[1];
CloseValue = CloseValue[1];
}
PlotNumeric("HighValue",highvalue);
End |
|