PAT Automation: Backtesting Parameters

This article covers the basic parameters that will affect the backtesting results you get when using the PAT Automation.
Backtesting Parameters
The PAT Automation uses the following default backtesting properties:
Initial Capital
Starting capital of the backtest
By default: 100,000
Base Currency
Currency used in calculations and backtest results. If ‘Default’ is selected the ticker’s currency is used
By default: Default
Order Size
The number of contracts/shares/lots/units per trade, or the amount in base currency, or a percentage of available equity.
By default: 1 Contract
Pyramiding
The number of successive entries allowed in the same direction.
By default: 1
Please note if you change the pyramiding value, you must also update the pyramiding input under the ‘Inputs’ tab in the Backtesting (PAT) settings.
%2520(7).png%3Falt%3Dmedia&w=3840&q=75)
Commission
Fees paid for each entry and exit.
By default: 0%
Slippage
The amount of ticks to be added to the fill price of market or stop orders.
By default: 0 Ticks
Margin for Long Positions
The percentage of equity required to fund long positions
By default: 0%
Margin for Short Positions
The percentage of equity required to fund short positions
By default: 0%
Backtesting Window
%2520(1).png%3Falt%3Dmedia&w=3840&q=75)
The Backtesting Window allows users to choose the starting and end dates for backtests. If the Backtesting Window is disabled, all available data will be used for backtests. This is usually ~10,000 bars back.
When Deep Backtesting is enabled, this is around 100,000 bars.
%2520(2).png%3Falt%3Dmedia&w=3840&q=75)
Important Notes
TradingView has limitations when running advanced backtests, resulting in the following restrictions:
Computation Errors
The computation of using MTF features and viewing several tickers is very intensive on TradingView. This can sometimes cause calculation timeouts. When this occurs simply force the recalculation by modifying one indicator’s settings or by removing the PAT Automation and adding it to your chart again.
If you are constantly running into calculation timeout issues, try decreasing the ‘Max Distance to Bar’ setting under the ‘Backtesting’ section.
%2520(8).png%3Falt%3Dmedia&w=3840&q=75)
Disclaimer
Backtests do not guarantee future performance. Testing strategies on synthetic data may produce misleading results that do not accurately reflect a strategy's effectiveness. For reliable insights, backtesting should be conducted using real closing price data. Learn more here.
CFTC RULE 4.41 – HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.