LuxAlgo

LuxAlgo® - Backtesting System™ (PAC)

LuxAlgo Wizard Cập nhật   
The PAC version of our Backtesting System™ product is an innovative strategy script that allows users to create a wide variety of strategies derived from price action-related concepts for a data-driven approach to discretionary trading strategies.

Thanks to our 'Step' and 'Match' algorithm, users can create custom and complex strategy entries and exits from features such as market structure, order blocks, imbalances, as well as any external indicators, allowing users to create entries from a sequence of conditions and/or multiple matching conditions.

We included a complete alert system that will send a notification for each action taken by the strategy and we also allow users to set custom messages for each action taken by a strategy.

🔶 Features

🔹Step & Match Algorithm

More complex entry rules can be created by using multiple conditions together, this is done thanks to the Step dropdown setting on the right of each condition.

The Step setting is directly related to the Step & Match algorithm and works in two ways:

  • When two or more conditions have the same step number, both conditions are evaluated. Used to test matching conditions.
    When two or more conditions have different step numbers, each condition will be evaluated in order, testing for the first step and switching to the next step once the previous one is true. When the final step is true the strategy will open a market order. Used to create a sequence of conditions.

This operation is complementary, as you can create a sequence of conditions with one step consisting of two or more matching conditions as long as they have the same step number.

🔹Fully Customizable Price Action Concepts As Entries

We allow the users to use market structures, order blocks, imbalances, and external sources together to set their custom entry and exit conditions.

Market structures are commonly used to determine trend direction by indicating when prices break prior swing points. Their occurrence can be used as entry conditions.

Order blocks highlight areas where institutional market participants open positions, one can use order blocks to determine confirmation entries or potential targets as we can expect there is a large amount of liquidity at these order blocks. Price entering, being within, or mitigating an order block can be used as an entry condition.

Market imbalances highlight areas where there is a disparity between supply and demand. Price entering, being within, or mitigating an imbalance can be used as an entry condition.

This system also allows the use of external sources to create entry and exit conditions, such as moving averages, bands, trailing stops...etc.

🔹Complete Alert System

Users can get alerted for any action executed by a strategy, from opening positions to closing them.

The message field in the Alert Messages setting section allows for the strategy to send a custom alert message depending on the action taken by the strategy, if no messages are set the strategy will send default messages.

🔶 Usage

Users can create complete price action strategies from this script, let's see an example using the following entry conditions:

  • Long: Mitigated bearish order block occurring during the New York session after a mitigated bearish imbalance.
  • Short: Mitigated bullish order block occurring during the New York session after a mitigated bullish imbalance.
  • Take Profit: 2 points away from the entry price.
  • Stop Loss: 1 point away from the entry price.


We can also use features from Price Action Concepts™ to construct custom exit conditions, leading to the following strategy conditions:

  • Long: Bullish CHoCH and price mitigates bearish FVG.
  • Short: Bearish CHoCH and price mitigates bullish FVG.
  • Exit Long: Price mitigates bearish order block.
  • Exit Short: Price mitigates bullish order block.


Users can achieve a wide variety of results by using external indicators as an input source for entries and exits, combining the best from price action and technical indicators. We might for example be interested in exiting a position when the RSI oscillator is overbought or oversold.


🔶 Strategy Properties (Important)

This script backtest is done on daily EURGBP, using the following backtesting properties:

  • Balance (default): 10 000 (default base currency)
  • Order Size: 10% of the equity
  • Comission: 3.4 pips (average spread for EURGBP)
  • Slippage: 1 tick
  • Stop Loss: 0.01 points away from entry price

We use these properties to ensure a realistic preview of the backtesting system, do note that default properties can be different for various reasons described below:

  • Order Size: 1 contract by default, this is to allow the strategy to run properly on most instruments such as futures.
  • Comission: Comission can vary depending on the market and instrument, there is no default value that might return realistic results.
    We strongly recommend all users to ensure they adjust the Properties within the script settings to be in line with their accounts & trading platforms of choice to ensure results from strategies built are realistic.

    🔶 How to access

    You can see the Author's Instructions below to learn how to get access.
Phát hành các Ghi chú:
New in version 1.0.1:

Users can now set take profits/stop losses using ticks away from the price preceding an entry. The entry price is now visible. New styling options.
Phát hành các Ghi chú:
New in version 1.1. Added Exit Order Block/Imbalances conditions. Auto take profit/stop loss placements. Fixed a bug affecting short session condition.
Phát hành các Ghi chú:
Added

  • Added ability to specify if market orders can be opened only if there are no existing positions
  • New trailing stop loss
  • Added ability to use price placeholders in the numerical input field of the second external source setting
  • New {prefix} placeholder

Changed

  • {ticker} placeholder will no longer return a symbol prefix
  • Previous order will no longer be explicitly closed when a new order is generated

Fixed

  • Fixed session condition not working for short conditions
  • Fixed previous take profit/stop loss values being returned on a new entry alert message
  • Fixed wrong messages being returned in certain actions taken by the strategy

Removed

  • Removed "Auto" take profits/stop losses
  • Removed liquidity grabs "Length" setting
Phát hành các Ghi chú:
- Trailing stop loss is now initially set on the entry price
- Minor changes
Phát hành các Ghi chú:
Added tooltips to alert message settings
Phát hành các Ghi chú:
- Added ability to backtest a time window specified using dates
- Added ability to partially exit trades
Phát hành các Ghi chú:
Added new Long/Short "Time Exits". New Inverse FVG imbalance. New "Entered" "Order Block/Imbalance" logic now evaluates wicks rather than closing price alone. Minor changes.
Phát hành các Ghi chú:
- New trade based price forecasting feature
Phát hành các Ghi chú:
- New invalidation step type
- New supported invalidation behaviors
Phát hành các Ghi chú:
- Fixed "Invalidate" steps throwing error when set for long conditions
Phát hành các Ghi chú:
- New "All" filter step type
- New "Trend" market structure condition
Phát hành các Ghi chú:
Trade based forecasts will no longer disappear after a trade is exited

Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Tập lệnh chỉ hiển thị cho người được mời

Quyền truy cập vào tập lệnh này bị hạn chế đối với người dùng được tác giả ủy quyền và thường yêu cầu thanh toán. Bạn có thể thêm nó vào mục yêu thích của mình, nhưng bạn sẽ chỉ có thể sử dụng nó sau khi yêu cầu sự cho phép từ tác giả. Liên hệ LuxAlgo để thêm thông tin, hoặc làm theo hướng dẫn của tác giả bên dưới.

TradingView không đề xuất trả tiền cho một tập lệnh và sử dụng cho đến khi bạn hoàn toàn tin tưởng tác giả và hiểu cách thức hoạt động của tập lệnh. Trong nhiều trường hợp, bạn có thể tìm thấy một giải pháp thay thế nguồn mở miễn phí trong Thư viện Công cộng của chúng tôi.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Hướng dẫn của tác giả

Access at luxalgo.com/backtesting-system

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Cảnh báo: vui lòng đọc trước khi yêu cầu quyền truy cập.