//+------------------------------------------------------------------+ //| ind_aMU.mq4 | //| Yuriy Tokman (YTG) | //| yuriytokman@gmail.com | //+------------------------------------------------------------------+ #property copyright "Yuriy Tokman (YTG)" #property link "yuriytokman@gmail.com" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Green #property indicator_color2 Red #property indicator_width1 2 #property indicator_width2 2 extern int period_fast = 12; extern int period_slow = 21; extern int ma_shift = 0; extern int ma_method = 0; extern int applied_price = 0; extern string Advisers_free_of_charge = "ytg.com.ua";// EA FREE - ytg.com.ua double B0[]; double B1[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0, 4); SetIndexBuffer(0, B0); SetIndexStyle(1, 4); SetIndexBuffer(1, B1); GetAvtor(); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { //---- int limit , i;GetYTG(); int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i=0; i2)count = 0; color color_Y = Red; color color_T = Lime; color color_G = Blue; if(count==1){color_Y = Crimson;color_T = LimeGreen;color_G = DodgerBlue;} if(count==2){color_Y = OrangeRed;color_T = ForestGreen;color_G = RoyalBlue;} Label("ytg_Y","Y" ,3,40,20,25,"Arial Black",color_Y); Label("ytg_T","T" ,3,25,5,25,"Arial Black",color_T); Label("ytg_G","G" ,3,13,32,25,"Arial Black",color_G); } //----+