int counted_bars=IndicatorCounted();什么意思?
和讯外汇
|
10141 人阅读
|
31 人评论
|
2011-10-30
请求下面这个画曲线的代码里int Start后面的详解,谢谢!!!
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Blue
double ExtMapBuffer[];
int init()
{
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,5,Red);
SetIndexBuffer(0,ExtMapBuffer);
return(0);
}
int deinit()
{
return(0);
}
int start()
{
int counted_bars=IndicatorCounted();
int cnt;
if(counted_bars>0) counted_bars--;
int limit =Bars-counted_bars-1;
for(cnt=0; cnt |
|
|
|
|