//+------------------------------------------------------------------+ //| JJN-BigTrend.mq4 | //| Copyright © 2012, JJ Newark | //| http:/jjnewark.atw.hu | //| jjnewark@freemail.hu | //+------------------------------------------------------------------+ #property copyright "Copyright © 2012, JJ Newark" #property link "http:/jjnewark.atw.hu" #property indicator_chart_window //+------------------------------------------------------------------------------------------------------------------+ // YOU CAN CHANGE THESE PARAMETERS ACCORDING TO YOUR TASTE: //+------------------------------------------------------------------------------------------------------------------+ int tfnumber = 5; // Number of the timeframes int tframe[] = {5,15,30,60,240}; // Timeframes in minutes double IndVal[][5]; // Be the second array-index equal with tfnumber int NumberOfPairs = 8; // Number of the pairs string Pairs[] = {"EURUSD","GBPUSD","AUDUSD","NZDUSD","USDJPY","GBPJPY","EURJPY","USDCHF"}; // Requested pairs //+------------------------------------------------------------------------------------------------------------------+ //+------------------------------------------------------------------------------------------------------------------+ extern int TrendPeriod = 55; extern int Ma_Price = PRICE_CLOSE; extern color UpColor = Lime; extern color DownColor = OrangeRed; extern color FlatColor = Gold; extern color FontColor = Black; extern int PosX = 20; extern int PosY = 20; double val_0,val_1; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- for(int w=0;w val_1 && iLow(Pairs[z],tframe[x],0) > val_0) // UPTREND { IndVal[z][x]=1; } else if (val_0 < val_1 && iHigh(Pairs[z],tframe[x],0) < val_0) // DOWNTREND { IndVal[z][x]=-1; } else IndVal[z][x]=0; // RANGING } } for(int q=0;q