//+------------------------------------------------------------------+ //| TDFibo.mq4 | //| Copyright 2016, QQ:125808047 | //+------------------------------------------------------------------+ #property copyright "www.125808047.com" #property link "http://www.125808047.com/" #property indicator_chart_window #property indicator_buffers 4 #property indicator_color1 Silver #property indicator_color2 White #property indicator_color3 Red #property indicator_color4 Pink extern int count=200; double HighBuffer[]; double LowBuffer[]; double MedianBuffer[]; double Fib618[]; int init() {IndicatorBuffers(5); SetIndexBuffer(0,HighBuffer); SetIndexBuffer(1,MedianBuffer); SetIndexBuffer(2,LowBuffer); SetIndexBuffer(3,Fib618); SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE); SetIndexStyle(2,DRAW_LINE); SetIndexStyle(3,DRAW_LINE); SetIndexLabel(0,"High"+count); SetIndexLabel(1,"Median"+count); SetIndexLabel(2,"Low"+count); SetIndexLabel(3,"61.8"); string shortname="斐波那契"; IndicatorShortName(shortname); IndicatorDigits(Digits); return(0); } int start() { int limit; int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i