//+------------------------------------------------------------------+ //| SlopeDirection_MTF.mq4 | //| Copyright © 2007, ASystem Group | //| asystem2000@rambler.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2007, Asystem2000" #property link "asystem2000@rambler.ru" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 LimeGreen #property indicator_color2 Red //---- input parameters extern int TimeFrame=0; extern int period=80; extern int method=3; // MODE_SMA extern int price=0; // PRICE_CLOSE extern string Note="Можете поменять имя инидикатора, если не совпадает"; extern string Indicator="Slope Direction Line"; //---- buffers double B_Up[]; double B_Dn[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { if (TimeFrame!=0) { if (TimeFrame