//+------------------------------------------------------------------+ //| ForexMasterMaker.com | //| Pivots.mq4 | //+------------------------------------------------------------------+ #property copyright "ForexMasterMaker.com, 2005" #property link "http://www.forexmastermaker.com." #property indicator_chart_window //---- input parameters extern int GMTshift=7; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators //---- return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); //---- TODO: add your code here double day_high=0; double day_low=0; double yesterday_high=0; double yesterday_open=0; double yesterday_low=0; double yesterday_close=0; double today_open=0; double P=0,S=0,R=0,S1=0,H4=0,S2=0,R2=0,S3=0,L4=0,nQ=0,nD=0,D=0; double H3,H2,H1,L1,L2,L3; int cnt=720; double cur_day=0; double prev_day=0; double rates_d1[2][6]; //---- exit if period is greater than daily charts if(Period() > 1440) { Print("Error - Chart period is greater than 1 day."); return(-1); // then exit } //---- Get new daily prices & calculate pivots while (cnt!= 0) { cur_day = TimeDay(Time[cnt]- (GMTshift*3600)); if (prev_day != cur_day) { yesterday_close = Close[cnt+1]; today_open = Open[cnt]; yesterday_high = day_high; yesterday_low = day_low; day_high = High[cnt]; day_low = Low[cnt]; prev_day = cur_day; } if (High[cnt]>day_high) { day_high = High[cnt]; } if (Low[cnt]} tct .3tth|\hPV< |MFPp} @Phpj jhCCdDhpj4tijT3ÅthPEPEPEP%}+Vh @jX jGPu A }Vh0 뺄tjMj3 j_^[̋UVt @h jYY}uD$P}t%D$P} @Ph j} D$ Qh?L$R| jT} @Ph !j= L$ Q} t"u M6} @Php!j ^] ̋UQQE VWbt ,3\VhxHFPR}0=t @PFPh!jJj3eEPFP}$ @Ph "j 3jNeEPuI} @Wh"j ƋE;EM wj_^̋UVWu3EEuuuug;}( @Wh#jc M^g_^9uuut;u{Ћ@M ̋W3F ~(F,)(,m\`dhl_̋UVEt t jV(^]̋VW(F,2ltP'htP',9N 9_8^̋UHSVD$t @hP#jYYHuV,oU| @h#j^VYYD$D$f@`ffW ffU؅}Sh#j @ D$w \VH؅u؅h`$V؅*u vHP؅} @SVhp$jdd$ jj@jD$(PD$,*؅}Sh$ @j D$wP@-}0 @Ph@%jq D$P*.؅}Sh%먍D$/Eh؅h=؅u؅D$YYSh0(VD$ ;sh(ǍhQhP#؅}ShP)ōlPht$؅}Sh)3CSh`& @j L$W0ffE|h@9E}jE_^W|EPEPhFPl}jŋE\E`3jheeEPu UEEtPh *j @ CMuu P MPtWh*3EE3@ËeEE觨 ̋