I'm new to pinescript and I'm having difficulty writing conditions for stochastic crossovers
- Enter short positions with crossover above 80
- Enter long positions with crossover below 20
longCondition = crossover(sma(stoch(close, high, low, 13)), sma(15, 5) iff(close <=20))
*vice verse for shortCondotion