Guide
How does the Backtest Engine strategy work ?
This script is a powerful template designed to speed up the process of backtesting your trading ideas. Instead of building a full strategy from scratch, you only need to define your specific entry and exit conditions in the code. The engine handles all the complex parts for you.
It comes with several built-in, customizable features:
- Take Profit & Stop Loss: Set your TP and SL targets as percentages directly in the settings menu.
- Custom Timeframe: Define the exact start date and duration for your backtest period.
- Signal Management: Prevents opening multiple positions if your entry condition remains true over several bars, ensuring one trade per signal.
The code uses a 50/200 SMA crossover as a placeholder to demonstrate functionality. Your job is to replace these example conditions with your own custom strategy logic to see how it performs.