///////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////// /////////////////// Ichimoku Kijun-sen Arrows TT //////////////////////// ///////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////// #property copyright "Copyright © october 2015, http://forexsystems.ru/" #property link "http://forexsystemsru.com/1053053-post108.html" #property description "Kijun-sen используется как показатель движения рынка. Если цена выше нее, вероятно, цены будут продолжать расти. Когда цена пересекает эту линию, вероятно дальнейшее изменения тренда." #property indicator_chart_window #property indicator_buffers 3 //#property indicator_color1 Lime //#property indicator_color2 Red //#property indicator_color3 DodgerBlue //#property indicator_width1 2 //#property indicator_width2 2 //#property indicator_width3 2 extern int Tenkan = 9; extern int Kijun = 26; extern int Senkou = 52; extern bool alert = false; string file = "alert.wav"; extern color colorKijun = DodgerBlue; // Lavender extern int type = 0; /////DRAW_ARROW; extern int style = 0; /////STYLE_SOLID _DOT _DASH; extern int size = 2; extern string __Type__ = "0 = линия @ 3 = xxxxx @ 12 = пусто"; extern int arrowsUPcode = 233; extern int arrowsDNcode = 234; extern color colorUp = Lime; ///White; /// DodgerBlue extern color colorDn = Red; ///Magenta; /// OrangeRed; extern int arrowsSize = 2; extern string arrowsCodes_42_120_110_108_117_121 = "139-149_171_172_174_181_203_85_86_91"; extern string _241_242_221_222_228_230_246_248 = "233-234_225-226_217-218_236-238_74-76"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////// double CrossUp[]; double CrossDown[]; int date1 = 999; int date2 = 999; int date6 = 999; int second = 20; string Name="Ichimoku TT"; double Kijun_Buffer[]; //---- int a_begin; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0, DRAW_ARROW, EMPTY, arrowsSize, colorUp); SetIndexArrow(0, arrowsUPcode); SetIndexBuffer(0, CrossUp); SetIndexStyle(1, DRAW_ARROW, EMPTY, arrowsSize, colorDn); SetIndexArrow(1, arrowsDNcode); SetIndexBuffer(1, CrossDown); //---- SetIndexStyle(2, type, style, size, colorKijun); SetIndexBuffer(2,Kijun_Buffer); SetIndexDrawBegin(2,Kijun-1); SetIndexLabel(0,"Open BUY"); SetIndexLabel(1,"Open SELL"); SetIndexLabel(2,"Kijun-sen"); //---- a_begin=Kijun; if(a_begin=1;i--) { high=High[i]; low=Low[i]; k=i-1+Kijun; while(k>=i) { price=High[k]; if(highprice) low=price; k--; } Kijun_Buffer[i]=(high+low)/2; if (Close[i]>=Kijun_Buffer[i] && Close[i+1]iOpen(Symbol(),NULL,i-1)) GSignalUP++; else BSignalUP++; } else if (Close[i]<=Kijun_Buffer[i] && Close[i+1]>Kijun_Buffer[i+1]) { CrossDown[i] = High[i]+5*Point; AllSignal++; SignalDOWN++; if (iClose(Symbol(),NULL,i-1)=Kijun_Buffer[i] && Close[i+1]Kijun_Buffer[i+1] && alert==true && date1!=date3 && date2!=date4 && date5!=date6 && Seconds()