I am creating an automated strategy and one of the indicators that I am using is called Short-Term Swings. The indicator file is attached. Basically it changes color to Green if the trens is up, red if the trend is down.
One of the things that I want incorporate in my automated strategy is to open buy when its green and to reverse the order once its red and so on.
What I am struggling with is how to come up with a statement that mentions 'go long if the color of the Short-Term Swings is green' and rev the position once the color changed to red.
Any ideas??
Greatly appreciate any help you can provide.
Comment