Nice script and thank you. Quick question on this though. I see you use the dl (daily low) or weekly low as the main base point for calculations. Doesnt this value change if its in an uptrend or downtrend? ie: should use the dh or dl based on the trend? If so, how would that be accounted for in the code? TYIA.