//+------------------------------------------------------------------+ //| AKF.mq4 | //+------------------------------------------------------------------+ #property copyright "Привалов" #property link "Skype privalov-sv" #property indicator_separate_window // Индик. рисуется в основном окне #property indicator_minimum -1.0 // Границы окна #property indicator_maximum 1.0 #property indicator_level1 0.0 // линия нуля #property indicator_buffers 1 // Количество буферов #property indicator_color1 Red // Цвет линии extern int History=1440; extern bool WriteToFile=true; double AKF[]; // Открытие индикаторных массивов double X[],Y[],Mu[]; datetime CountedBar=0; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { ArrayResize(AKF,History+1); ArrayResize(X,History+1); ArrayResize(Y,History+1); ArrayResize(Mu,History+1); //-------------------------------------------------------------------- IndicatorDigits(8); SetIndexBuffer(0,AKF); // Назначение массива буферу SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1);// Стиль линии //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int i,m; int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; int limit=Bars-counted_bars; if(counted_bars==0) limit--; if(counted_bars