LuxAlgo

LuxAlgo® - Backtesting System™ (PAC)

LuxAlgo Wizard Diupdate   
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.
Catatan Rilis:
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.
Catatan Rilis:
New in version 1.1. Added Exit Order Block/Imbalances conditions. Auto take profit/stop loss placements. Fixed a bug affecting short session condition.
Catatan Rilis:
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
Catatan Rilis:
- Trailing stop loss is now initially set on the entry price
- Minor changes
Catatan Rilis:
Added tooltips to alert message settings
Catatan Rilis:
- Added ability to backtest a time window specified using dates
- Added ability to partially exit trades
Catatan Rilis:
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.
Catatan Rilis:
- New trade based price forecasting feature
Catatan Rilis:
- New invalidation step type
- New supported invalidation behaviors
Catatan Rilis:
- Fixed "Invalidate" steps throwing error when set for long conditions
Catatan Rilis:
- New "All" filter step type
- New "Trend" market structure condition

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.
Skrip hanya-undangan

Akses ke skrip ini dibatasi hanya bagi pengguna yang telah diberi otorisasi oleh penulisnya dan biasanya membutuhkan pembayaran untuk dapat menggunakannya. Anda dapat menambahkannya ke favorit anda, tetapi anda hanya akan dapat menggunakannya setelah meminta izin dan mendapatkan aksesnya dari pembuat skripnya. HubungiLuxAlgo untuk informasi lebih lanjut, atau ikuti instruksi penulisnya dibawah ini.

TradingView tidak menyarankan membayar untuk sebuah skrip dan harap untuk menggunakannya sampai anda telah 100% mempercayai penulisnya dan memahami cara kerja skripnya. Dalam sebagain besar kasus, anda dapat menemukan alternatif open-source yang baik secara gratis di Skrip Komunitas kami.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.

Instruksi penulis

Access at luxalgo.com/backtesting-system

Inggin menggunakan skrip ini pada chart?

Peringatan: harap membaca sebelum meminta akses.