This is a simple trading strategy based using fast period 3 vs slow period 21 by default. I am with , big believer of the open price. So by default, this strategy using the open price. However, feel free to use anything to your particular setup.
It should generate an entry signal when and only when both both moving average are trending up, NOT BY CROSSOVER!
New to pine editor, and working on entry signals/stop or TP.
Alternatively, You should have a much better chance by entering into a trade when fast is turning into the same color as the slow .
e.g. green fast + green slow = buy.