I have tried fixing my code to backtest my strategy and when I try to backtest it, it tells me that my code couldn't complete any trades. Please help I am in dire need.
Here is the code:
//@version=4
strategy("backtest #001", overlay=true, initial_capital=100000, currency='USD')
//backtest
fromYear = year > 2010
toYear = year < 2020
//inputs
mystoch =...