关于指标 转 智能系统
|
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); 就可以了 这样对吗? |
打赏
最新创建圈子
新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1
客服热线:

