Backtests Are Broken
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// Copyright ©2022 and_then_it_CRASHED

//@version=5
strategy("Backtest Broken", overlay=true, margin_long=1, margin_short=1)

if strategy.position_size == 0 and math.random(0,100) < 5
    strategy.entry('Long', strategy.long)
    strategy.exit('Close Long', 'Long', trail_price = close+syminfo.mintick, trail_offset = 0)
