OPEN-SOURCE SCRIPT
LANZ Strategy 6.0 [Backtest]

๐ท LANZ Strategy 6.0 [Backtest] โ Precision Backtesting Based on 09:00 NY Candle, Dynamic SL/TP, and Lot Size per Trade
LANZ Strategy 6.0 [Backtest] is the simulation version of the original LANZ 6.0 indicator. It executes a single LIMIT BUY order per day based on the 09:00 a.m. New York candle, using dynamic Stop Loss and Take Profit levels derived from the candle range. Position sizing is calculated automatically using capital, risk percentage, and pip value โ allowing accurate trade simulation and performance tracking.
๐ This is a strategy script โ It simulates real trades using strategy.entry() and strategy.exit() with full money management for risk-based backtesting.
๐ง Core Logic & Trade Conditions
๐น BUY Signal Trigger:
โ๏ธ Stop Loss / Take Profit Logic
SL can be:
Wick low (0%)
Or dynamically calculated using a % of the full candle range
TP is calculated using the user-defined Risk/Reward ratio (e.g., 1:4)
The TP and SL levels are passed to strategy.exit() for each trade simulation.
๐ฐ Risk Management & Lot Size Calculation
Before placing the trade:
๐ Manual Close at 3:00 p.m. NY
๐ Backtest Accuracy
โ Ideal For:
๐จโ๐ป Credits:
๐ก Developed by: LANZ
๐ง Logic & Money Management Engine: LANZ
๐ Designed for: 1H charts
๐งช Purpose: Accurate simulation of LANZ 6.0's NY Candle Entry system
LANZ Strategy 6.0 [Backtest] is the simulation version of the original LANZ 6.0 indicator. It executes a single LIMIT BUY order per day based on the 09:00 a.m. New York candle, using dynamic Stop Loss and Take Profit levels derived from the candle range. Position sizing is calculated automatically using capital, risk percentage, and pip value โ allowing accurate trade simulation and performance tracking.
๐ This is a strategy script โ It simulates real trades using strategy.entry() and strategy.exit() with full money management for risk-based backtesting.
๐ง Core Logic & Trade Conditions
๐น BUY Signal Trigger:
- At 09:00 a.m. NY (New York time), if:
- The current candle is bullish (close > open)
- โ A BUY order is placed at the candleโs close price (EP)
- Only one signal is evaluated per day.
โ๏ธ Stop Loss / Take Profit Logic
SL can be:
Wick low (0%)
Or dynamically calculated using a % of the full candle range
TP is calculated using the user-defined Risk/Reward ratio (e.g., 1:4)
The TP and SL levels are passed to strategy.exit() for each trade simulation.
๐ฐ Risk Management & Lot Size Calculation
Before placing the trade:
- The system calculates pip distance from EP to SL
- Computes the lot size based on:
- Account capital
- Risk % per trade
- Pip value (auto or manual)
- This ensures every trade uses consistent, scalable risk regardless of instrument.
๐ Manual Close at 3:00 p.m. NY
- If the trade is still open by 15:00 NY time, it will be closed using strategy.close().
- The final result is the actual % gain/loss based on how far price moved relative to SL.
๐ Backtest Accuracy
- One trade per day
- LIMIT order at the candle close
- SL and TP pre-defined at execution
- No repainting
- Session-restricted (only runs on 1H timeframe)
โ Ideal For:
- Traders who want to backtest a clean and simple daily entry system
- Strategy developers seeking reproducible, high-conviction trades
- Users who prefer non-repainting, session-based simulations
๐จโ๐ป Credits:
๐ก Developed by: LANZ
๐ง Logic & Money Management Engine: LANZ
๐ Designed for: 1H charts
๐งช Purpose: Accurate simulation of LANZ 6.0's NY Candle Entry system
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.