View Single Post
  #216 (permalink)  
Old 05-14-2008, 12:48 PM
frantacech's Avatar
frantacech frantacech is offline
Senior Member
 
Join Date: Sep 2006
Posts: 478
frantacech is on a distinguished road
Quote:
Originally Posted by SIMBA View Post
Hi Frantacech,

Thanks a lot for the tool,can you explain what it does?
I believe that it gives you the fibopivots and the Fibozones...BTW,today,jointly with the MSL,looks like it would have cloned the entry .

I have tried modified the timeframe,but don`t see any change....any comment ?

Regards
Simba
I do description and post it, wait please. All calc S/R or Fibo zones is independently from TF. Use only yesterday price.

Yes, classic Fibopivots and Fibozones + Comments - Daily Range, Average Range Used Long and Short AND .... Calc top/bottom average range

FiboZones
void Recalc()
{
double C=0, L=0, H=0;

if(DayOfWeek() == 1)
{
C = iClose(NULL, PERIOD_D1, 3); // Yesterday close
L = iLow(NULL, PERIOD_D1, 3); // Yesterday Low
H = iHigh(NULL, PERIOD_D1, 3); // Yesterday High
} else
{
C = iClose(NULL, PERIOD_D1, 1); // Yesterday close
L = iLow(NULL, PERIOD_D1, 1); // Yesterday Low
H = iHigh(NULL, PERIOD_D1, 1); // Yesterday High
}
double R = (H-L);

C = (H+L+C) / 3;
D = (R/2) + C;
B = C - (R/2);
E = R + C;
A = C - R;

B1 = C - ( R * 0.618 );
A1 = C - ( R * 1.382 );

D1 = C + ( R * 0.618 );
E1 = C + ( R * 1.382 );
}


ObjectCreate(FIB_SUP1, OBJ_RECTANGLE, 0, iTime(NULL, PERIOD_D1, 0), B, Time[0], B1);ObjectSet(FIB_SUP1, OBJPROP_COLOR, clrSup1);
ObjectCreate(FIB_SUP2, OBJ_RECTANGLE, 0, iTime(NULL, PERIOD_D1, 0), A, Time[0], A1);ObjectSet(FIB_SUP2, OBJPROP_COLOR, clrSup2);
ObjectCreate(FIB_RES1, OBJ_RECTANGLE, 0, iTime(NULL, PERIOD_D1, 0), D, Time[0], D1);ObjectSet(FIB_RES1, OBJPROP_COLOR, clrRes1);
ObjectCreate(FIB_RES2, OBJ_RECTANGLE, 0, iTime(NULL, PERIOD_D1, 0), E, Time[0], E1);ObjectSet(FIB_RES2, OBJPROP_COLOR, clrRes2);
__________________
RUN With The BULLS And HUNT With The BEARS - Nothing By Chance

Last edited by frantacech; 05-14-2008 at 12:58 PM.
Reply With Quote