Milosz
September 11, 2017, 4:53pm
2
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:
Search the forum
It is good idea to search the forum before asking same questions over and over. To search the forum just use magnifying glass icon in the upper right corner
[image]
Also it is good idea to use Google and add +site:amibroker.com to your search term to limit the output to content of amibroker.com web site. Doing so will include results from Knowledge Base and Users' Guide
Enter the AFL code properly
It is of utmost importance as improperly formatted code results in syntax err…
3 Likes