//+------------------------------------------------------------------+ //| USD Index.mq4 | //| Copyright © 2008, Adam Parusel | //| http://esolvix.de | //+------------------------------------------------------------------+ #property copyright "Copyright © 2008, Adam Parusel" #property link "http://esolvix.de" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Lime #property indicator_level1 82.0 //---- buffers double ExtMapBuffer1[]; string postfix = ""; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); postfix = StringSubstr(Symbol(),6,3); return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit; int counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars<0) return(-1); //---- the last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; //---- main loop for(int i=0; i