What is wrong with the below simple code? the text :wekness detected is not displayed on chart. not sure why?
DEFPARAM DRAWONLASTBARONLY = true
DEFPARAM CALCULATEONLASTBARS=200
c1=high[1]>BollingerUp[20](close) and close>BollingerUp[20](close)
c2=high>BollingerUp[20](close) and high>high[1] and close<BollingerUp[20](close) and close<close[1]
if c1 and c2 then
DRAWTEXT("Weakness Detected",high,c2)
endif
RETURN
Because you draw on last bar only. If you want to have your code working on the whole share history, delete your first line. And please use the insert code button next time, thank you.