The trading simulator generates signals using closing prices only. However, market entry may be deferred if the Next day open or Next day if model is selected. The criteria for closing a position are also checked only by closing prices, and market exit may be deferred if the Next day open model is selected.
A position can be opened within the day/bar only if the Next Day If model is selected. A position can be closed within the day/bar only using a stop loss, trailing stop loss, or take profit level. A vacant place in the portfolio can be taken by a new position only at the closing of the trading session.
For intraday periods, the backtester works using the closing prices of the corresponding periods (bar closing prices). For example, if you use hourly periods, the backtester will enter the market at closing prices of hourly periods. Intra-hour price movements will not be taken into account. In other words, hourly periods are used identically to the daily period, with the only difference being that in the first case, one bar is one hour, and in the second case, one bar is one day.
|