I'm new to programming.
I'm attempting to develop a strategy that sends signals on trend pullbacks.
My main logic is that i can buy or sell on the first and second pullback of the trend, but stay out on the 3rd and wait for a new trend.
I want to add the following to my code:
If pullback is detected based on my code. count it as 1 and trade
if pullback 2 is detected. trade
if pullback 3 is detected. return to the beginning.
Can someone help?
Thank you
Comment