"Maximum number of orders (9000) was reached." のエラーが表示されます
このエラーは、注文発注や取引決済の回数がストラテジーで許容されている回数の上限に達したことを示しています。

このエラーを回避するには、Pineスクリプトv6にストラテジーのコードを変換してください。v6では上限を超える注文はすべてトリミングされます。つまり、新規注文が「トレード一覧」に表示されると同時に、注文数の上限を超えた注文が、古いものから順に削除されることになります。
または、注文条件に時間範囲の確認を入れることによって、ストラテジーが注文を発注する期間を制限することもできます。下記スクリプトの例では、現在のバーの時刻が2つのタイムスタンプの間にあるかどうかをチェックすることによって注文発注の時間範囲を設定しています。
//@version=6
strategy("My strategy", overlay = true)
enableFilter = input(true, "Enable Backtesting Range Filtering")
fromDate = input.time(timestamp("20 Jul 2023 00:00 +0300"), "Start Date")
toDate = input.time(timestamp("20 Jul 2099 00:00 +0300"), "End Date")
tradeDateIsAllowed = not enableFilter or (time >= fromDate and time <= toDate)
longCondition = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))
shortCondition = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))
if longCondition and tradeDateIsAllowed
strategy.entry("Long", strategy.long)
if shortCondition and tradeDateIsAllowed
strategy.entry("Short", strategy.short)