OPEN-SOURCE SCRIPT

LANZ Strategy 6.0 [Backtest]

1โ€ฏ630
๐Ÿ”ท 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:

  • 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

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.