OPEN-SOURCE SCRIPT
已更新

The Essa System V1.5

240
The Essa System V1.5

Overview
The Essa System is a comprehensive trading strategy and backtesting tool designed for traders who use market structure and Fibonacci retracements. It automatically identifies significant trading ranges, calculates key retracement levels, and then backtests a complete trading strategy based on entries at these levels.

This is more than just an indicator; it's a full suite of analytical tools designed to help you develop, test, and analyze a complete trading plan directly on your chart.

How It Works
The system's logic is based on a classic price action concept:
  1. Range Detection: First, it automatically identifies a significant trading range by finding the highest high and lowest low based on pivot points over a user-defined lookback period.
  2. Fibonacci Analysis: Once the range direction (bullish or bearish) is established, the script calculates and displays key Fibonacci retracement levels (50%, 61.8%, 70.5%, and 78.6%).
  3. Trade Execution: The system then looks for historical and live trading opportunities, entering a trade when the price pulls back to one of the enabled Fibonacci levels. All trades are managed with a predefined Stop Loss and Take Profit in pips.


Key Features
  • Automatic Range & Fibonacci Analysis: Automatically draws the primary trading range and key Fib levels, updating as market structure evolves.
  • Historical Backtesting: Plots all historical trade entries based on the strategy rules, allowing for a complete performance review over the chosen chart history.
  • Detailed Trade Visuals: Displays active trades on the chart with clear lines and boxes for entry, stop loss, and take profit zones.
  • Advanced Session Filtering: Allows you to isolate trades to specific market sessions (London, New York, Asia) with timezone support and daily trade limits.
  • Built-in Risk Management: A cornerstone of the system. It automatically calculates the required position size for each trade based on your specified Account Size, Risk Percentage, and Stop Loss.

  • Comprehensive Performance Tables: The script includes two powerful analytical tables:
  • Trade Helper Table: Shows the status of live or potential upcoming trades, including entry/SL/TP prices and the calculated position size.
  • History Table: Logs all recent trades and calculates key statistics like Profit Factor, Win Rate, and the overall PnL impact on your account balance.


  • Customizable Strategy: Fine-tune every aspect of the strategy with inputs for the lookback period, SL/TP in pips, which Fib levels are tradable, and a cooldown timer to prevent over-trading.

How to Use
  1. Add the indicator to your chart.
  2. Navigate to the settings and, under "Account Settings," configure your Account Size and Risk Per Trade (%). This is essential for the PnL and position sizing calculations to be meaningful.
  3. Under "Session Filter Settings," adjust the sessions you wish to trade.
  4. Analyze the historical trades and the performance tables to understand the strategy's behaviour on your chosen asset and timeframe.


Disclaimer: This is a tool for strategy analysis and backtesting. It is not financial advice. Past performance is not indicative of future results. Always use proper risk management.
發行說明
Major Updates – Version 3.0
  • Universal Asset Support
  • Now works with metals, indices, and stocks — not just Forex. All pip/point logic dynamically adjusts based on selected asset type.
  • Full Market Structure Engine (Phase 1)
  • Multi-tier swing detection with live BOS (Break of Structure) and MSS (Market Structure Shift) labels. Choose between Short, Intermediate, or Long-Term structures.
  • Live Structure Bias Display
  • Auto-detects bullish/bearish/neutral structure and shows real-time bias in the Trade Table + optional background tint.
  • Dynamic Lot Size & PnL Calculations
  • Risk, position size, and profit/loss now correctly adjust for different instruments using per-symbol tick value logic.
  • Cleaner Trade Triggering
  • One trade per bar max — no more double-firing on fib levels in high-volatility zones.
  • Bug Fixes & Sizing Accuracy
  • Fixed a prev-close logic bug that broke entry signals in some cases. All sizing now reflects real SL dollar value, not fixed assumptions.
  • New Alert: Market Structure Break
  • Alert triggers when structure flips bullish or bearish, ideal for directional filters or mobile pushes.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。