I'm working on a score strategy, based on several indicators. The script has no error, but when i add the score sistem i got "Study error: internal server study error"
score = 0
plot(score)
if ma_buy
score := score + 1
if st_buy
score := score + 1
if hs_buy
score := score + 1
if vortex_buy
score := score + 1
if vo_buy
score := score + 1
if ma_sell
score := score - 1
if st_sell
score := score - 1
if hs_sell
score := score - 1
if vortex_sell
score := score - 1
if vo_sell
score := score - 1
if score > 0
strategy.entry("Long", strategy.long)
if score < 0
strategy.entry("Short", strategy.short)
The problem was putting a plot before the calculations...