- 精华
- 0
- 在线时间
- 569 小时
- UID
- 826
- 积分
- 1407
- 帖子
- 118
- 阅读权限
- 60
- 注册时间
- 2007-11-25
- 最后登录
- 2013-12-24
- 精华
- 0
- UID
- 826
- 积分
- 1407
- 帖子
- 118
- 主题
- 46
- 阅读权限
- 60
- 注册时间
- 2007-11-25
- 最后登录
- 2013-12-24
|
问题在什么地方?
插入小时周期图表的技术指标:
Params
Numeric N(25);
Numeric M1(4);
Numeric M2(3);
Numeric M3(3);
Vars
NumericSeries RSV;
NumericSeries FASTK;
NumericSeries MA;
NumericSeries MA1;
string strkey;
string strValue;
string strValue1;
Begin
RSV= (CLOSE-Lowest(LOW,N))/(Highest(HIGH,N)-Lowest(LOW,N))*100;
FASTK=SMA(RSV,M1,1);
MA=SMA(FASTK,M2,1);
MA1=SMA(MA,M3,1);
strKey = timeToString(hour);
strValue = Text(MA);
strValue1 = Text(MA1);
SetTBProfileString("DayMA",strKey,strValue);
SetTBProfileString("DayMA1",strKey,strValue1);
PlotNumeric("MA",MA);
PlotNumeric("MA1",MA1);
End
插入15分钟周期图表的技术指标:
Vars
NumericSeries DayMAValue;
NumericSeries DayMAValue1;
StringSeries strKey;
StringSeries strKey1;
string strValue;
string strValue1;
Begin
If(hour!=hour[1])
{
strKey = timeToString(hour[1]);
}Else
{
strKey = strKey[1];
}
strValue = GetTBProfileString("DayMA",strKey);
strValue1 = GetTBProfileString("DayMA1",strKey1);
If(strValue != InvalidString)
{
DayMAValue = Value(strValue);
DayMAValue1 = Value(strValue1);
}Else
{
DayMAValue = DayMAValue[1];
DayMAValue1 = DayMAValue1[1];
}
PlotNumeric("DayMA",DayMAValue);
PlotNumeric("DayMA1",DayMAValue1);
End
可放到图表里感觉就不对,请帮我看看问题在什么地方好吗? |
|