|
[pre]#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 DimGray #property indicator_color2 DimGray double ExtMapBuffer1[]; double ExtMapBuffer2[]; extern int TimeFrame=1440; extern int DH=1000; double buf1,buf2; int init() { SetIndexBuffer(0,ExtMapBuffer1); SetIndexBuffer(1,ExtMapBuffer2); SetIndexStyle(0,DRAW_LINE,STYLE_DOT,1); SetIndexStyle(1,DRAW_LINE,STYLE_DOT,1); return(0); } int start() { datetime TArray[]; int i=0,y=0; int counted_bars=IndicatorCounted(); double HArray[]; double LArray[]; ArrayCopySeries(TArray,MODE_TIME,Symbol(),TimeFrame); ArrayCopySeries(LArray,MODE_LOW,Symbol(),TimeFrame); ArrayCopySeries(HArray,MODE_HIGH,Symbol(),TimeFrame); for(i=0,y=0;i<DH;i++) { if (Time<TArray[y]) y++; ExtMapBuffer1=HArray[y]; ExtMapBuffer2=LArray[y];} } return(0);[/pre] |
无法显示
指标发布