I hope you fixed the errors I made in my first post, with the corrections I posted later in the day.
This was the whole thing in the second post:
TD1: h-ref(h,-2)
TD2: l-ref(l,-2)
TD3: If((h>=ref(l,-5) or h>=ref(l,-6)) and (l<=ref(h,-5) or l<=ref(h,-6)),1,0)
TD4: If((Ref(h,-2)>=ref(c,-7) or ref(h,-2)>=ref(c,-8)) and (ref(l,-2)<=ref(c,-7) or ref(l,-2)<=ref(c,-8)),1,0)
TD5: If(Fml("TD3") + fml("TD4")>=1, fml("TD6"), 0)
TD6: Fml("TD1") + fml("TD2")
TD7: Abs(fml("TD1")) + abs(fml("TD2"))
TDREI Expansion Index: ((Fml("TD5") + ref(fml("TD5"),-1) + ref(fml("TD5"),-2) + ref(fml("TD5"),-3) + ref(fml("TD5"),-4))/ (Fml("TD7") + ref(fml("TD7"),-1) + ref(fml("TD7"),-2) + ref(fml("TD7"),-3) + ref(fml("TD7"),-4)))*100
Sorry about the errors in the first post.
Brooke |