Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 4/17/2008(UTC) Posts: 21 Location: Houston, TX
Thanks: 2 times
|
Hi Roy,
I mean last calender month.
My solution for week changes:
WeekOpen:= If(DayOfWeek() = 1, Ref(O,-5), If(DayOfWeek() = 2, Ref(O,-6), If(DayOfWeek() = 3, Ref(O,-7), If(DayOfWeek() = 4, Ref(O,-8), Ref(O,-9)))));
WeekClose:= If(DayOfWeek() = 1, Ref(C,-1), If(DayOfWeek() = 2, Ref(C,-2), If(DayOfWeek() = 3, Ref(C,-3), If(DayOfWeek() = 4, Ref(C,-4), Ref(C,-5)))));
{This is the correct formula
writeif(WeekClose - WeekOpen > 0,"UP","DOWN")
But writeif() doesn't work...}
If(WeekClose - WeekOpen > 0,1,0)
Thanks,
|