//+------------------------------------------------------------------+ //| GG-RiverFlow.mq4 | //| Copyright © 2009, GGekko | //| http://www.fx-ggekko.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2009, GGekko" #property link "http://www.fx-ggekko.com" #property indicator_chart_window extern string ___IndicatorSetup___ = ">>> Indicator Setup:<<<"; extern string Help_for_TFNumbers = "Maximum: 7"; extern int TFNumbers = 7; // max 7 extern int MA_Shift = 1; extern string ___DisplaySetup___ = ">>> Display Setup:<<<"; extern color UpColor = YellowGreen; extern color DownColor = Tomato; extern color FlatColor = Gold; extern color TextColor = CadetBlue; extern string Help_for_Corner = "LeftTop:0, RightTop:1, Not used:2,3!"; extern int Corner = 0; extern int PosX = 0; extern int PosY = 0; extern int Unique_Id = 52725; int tframe[]={1,5,15,30,60,240,1440}; string tf[]={"1","5","15","30","H1","H4","D1"}; int ma_period[]={2,3,5,8,13,21,34,55,89,144}; string ind[10]; double ma0_1[],ma0_2[]; double ma1_1[],ma1_2[]; double ma2_1[],ma2_2[]; double ma3_1[],ma3_2[]; double ma4_1[],ma4_2[]; double ma5_1[],ma5_2[]; double ma6_1[],ma6_2[]; double ma7_1[],ma7_2[]; double ma8_1[],ma8_2[]; double ma9_1[],ma9_2[]; double IndVal[10][7]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- if(Corner==0) { for(int w=0;wma0_2[x]) IndVal[0][x]=1; else if(ma0_1[x]ma1_2[x]) IndVal[1][x]=1; else if(ma1_1[x]ma2_2[x]) IndVal[2][x]=1; else if(ma2_1[x]ma3_2[x]) IndVal[3][x]=1; else if(ma3_1[x]ma4_2[x]) IndVal[4][x]=1; else if(ma4_1[x]ma5_2[x]) IndVal[5][x]=1; else if(ma5_1[x]ma6_2[x]) IndVal[6][x]=1; else if(ma6_1[x]ma7_2[x]) IndVal[7][x]=1; else if(ma7_1[x]ma8_2[x]) IndVal[8][x]=1; else if(ma8_1[x]ma9_2[x]) IndVal[9][x]=1; else if(ma9_1[x]