Is it possible to have a condition that says after a new 52 week high is reached to wait for a pullback to the 20 SMA and then enter the position?
Size:
Color:
Size:
Color:
Anything is possible! The question is, "how do you code it". Since the requirements are vague, I'll assume you're only interested in the
first pullback to the 20 SMA. So, once the SMA 20 is breached after a 52-week high, we'll ignore the condition until a new 52-week high occurs.
CODE:
Please log in to see this code.
Size:
Color: