各位大虾进来帮帮忙,MA指标只显示三根K线?!
以下是BIAS指标的原码,但BIASMA只能显示三根K线,我是新手,找不出原因,麻烦各位大虾帮忙指出下,谢谢!! #property indicator_separate_window #property indicator_buffers 2 #property indicator_level1 0 #property indicator_color1 LightSeaGreen #property indicator_color2 Red extern int BIAS=6; extern int BIASMA=6; double BIASBUFFER[]; double BIMABUFFER[]; double TEMPBUFFER[]; int draw_begin1=0; int draw_begin2=0; int K=0; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators IndicatorBuffers(3); SetIndexBuffer(2, TEMPBUFFER); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0, BIASBUFFER); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1, BIMABUFFER); IndicatorShortName("BIAS"); SetIndexLabel(0,"BIAS"); SetIndexLabel(1,"BIASMA"); return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); int i; // caculate MA6; if(counted_bars0) counted_bars--; int limit=Bars-counted_bars; for( i=0;i |
打赏
最新创建圈子
- 新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1