|
int counted_bars = IndicatorCounted(); // Check for errors if ( counted_bars < 0 ) { return( -1 ); } // Last bar will be recounted if ( counted_bars > 0 ) { counted_bars--; } int limit = Bars - counted_bars; ----- for ( xctr = 0; xctr < limit; xctr++ ) { ATRBuffer[xctr] = iATR( NULL, 0, ATRPeriod, xctr ); //1号缓冲 } 我的理解是 limit 每次Bars - counted_bars;都返回1用处就是刷新当前数据;这个功能在自动交易系统里面都会实时刷新的,所以在自动交易里以上所有代码只需要: ATRBuffer[] = iATR( NULL, 0, ATRPeriod,0); 就可以了 这样对吗? |
关于指标 转 智能系统
回复:0 浏览:760
- 楼主admin 圈主
- 2019-05-05 12:13