Hi,
I tried to develop a screener for the Donchian Bias Determinator as posted in the libray two days ago. The screener needs to screen for the last candle (not the current one) which is closed above the upper (as well as the MA200). The screener seems to pick any candle within the range of HIGHEST [20]. The goal is to build a screener which screens for a daily close of yesterday’s candle above the Highest[20].Has anybody of you an idea how to solve this?
//Donchian Bias Screener
//07-11-2017
//Marcel van Vliet
majorcondition = (C1)
Upper = HIGHEST[20](HIGH[1])
c1=Average[200]<upper and close>upper
screener [ majorcondition[1] ]
Code is read from top to bottom, you should put your “majorcondition” variable definition at the very last line and before the SCREENER instruction.