Registered User Joined: 5/14/2018 Posts: 1
|
Hi,
Still learning and like trying to figure out stuff myself but I need a little nudge here ty!!...
I have a simple true/false condition: C<C1 and C<C2 and C<3 and when this condition was last true over the last 10 bars, I would like to return the close value of that bar.
So if this condition was met 6 times in the last 10 bars, I only wanted the value of the most recent bar when this condition was last true.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I am going to assume that is a type and the third term is actually C < C3 and just just C < 3 .
IIF(C < MINC3.1, C, IIF(C1 < MINC3.2, C1, IIF(C2 < MINC3.3, C2, IIF(C3 < MINC3.4, C3, IIF(C4 < MINC3.5, C4, IIF(C5 < MINC3.6, C5, IIF(C6 < MINC3.7, C6, IIF(C7 < MINC3.8, C7, IIF(C8 < MINC3.9, C8, IIF(C9 < MINC3.10, C9, 1 / 0))))))))))
-Bruce Personal Criteria Formulas TC2000 Support Articles
|