Forum

How can I code this guys

I want to build an indicator which signals: buy when the stochastic(red) is above the trend line (green) sell when the stochastic(red) is below the trend line i have no idea of comparing this indicators so that they satisfy the two conditions above for example when i considered the return values