//+------------------------------------------------------------------+ //| cm trend info.mq4 | //| Copyright 2014, cmillion@narod.ru | //+------------------------------------------------------------------+ #property copyright "Copyright 2014, cmillion@narod.ru" #property link "cmillion@narod.ru" #property version "1.00" #property strict #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- indicator buffers mapping //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { for(int j=0; j