Previous Days First Bar High/Low

FBL = ValueWhen( Day() != Ref( Day(), -1 ), L, 2 );
FBH = ValueWhen( Day() != Ref( Day(), -1 ), H, 2 );

http://amibroker.com/guide/afl/valuewhen.html

... but when you make a post on this forum, always remember to enter the AFL code properly. Improperly formatted code might result in syntax errors. Read here:

3 Likes