Bobokus Fibs

 

I modified a bobokus fib custom indicator to automatically draw the daily, weekly, and monthly fibs on a chart. It is working pretty good. However, I cannot draw yearly fibs.

The problem is that there is not a PERIOD_Y1 constant to pass to the period variable

int shift = iBarShift(NULL,period,Time[0]) + 1; // yesterday

I couldn't think of a work around. Any ideas? I tried entering a number (like the others) but it didn't work.

I want these yearly fibs to show up on the weekly chart.

Larene


if (autoDrawDaily)
{
DrawFib(DailyColor, "Daily", PERIOD_D1, OBJ_PERIOD_H1);
}
if (autoDrawWeekly)
{
DrawFib(WeeklyColor, "Weekly", PERIOD_W1, OBJ_PERIOD_H1 | OBJ_PERIOD_H4);
}
if (autoDrawMonthly)
{
DrawFib(MonthlyColor, "Monthly", PERIOD_MN1, OBJ_PERIOD_H1 | OBJ_PERIOD_H4 | OBJ_PERIOD_D1);
}

 
Yes, I have the same problem, since I wanna make fibo as well for PERIOD_Y1 which doesn't exist? Any CodeBase master or someone from Metaquote can help please? Thanks in advance.
 
jhp 2025:
Yes, I have the same problem, since I wanna make fibo as well for PERIOD_Y1 which doesn't exist? Any CodeBase master or someone from Metaquote can help please? Thanks in advance.

Do not double post.

Your other post will be deleted.

Reason: