Whitebox Originals ยป The Architect


Overview

The Architect is a Whitebox Originals TradingView strategy script that is built on top of the Whitebox Strategy Engine.

What makes The Architect a unique strategy, is that it contains 6 different technical analysis indicators that can be used as an entry criteria:

  • Trend Direction Moving Average (EMA/SMA)
  • RSI
  • Supertrend
  • Stochastic RSI
  • ADX
  • Divergences (using signals from The Divergent indicator)

Settings

Below you will find the settings that are specific to The Architect strategy script.

All the other settings and functionality are documented under Whitebox Strategy Engine page.

Trend Direction MA Settings

The Trend Direction MA criteria can be used as a trend direction filter. Traders commonly use a 200 period EMA (Exponential Moving Average) to determine the direction of the trend. If the price is above the EMA only long positions are taken (in line with the trend), and if price is below the EMA only short positions are taken.

For more information about the EMA please see https://www.investopedia.com/terms/e/ema.asp.

Enable Trend Direction MA

If enabled, the strategy will use the Trend Direction MA as an entry filter. For a long entry, the price has to be above the Trend Direction MA. For a short entry, the price has to be below the Trend Direction MA.

Trend Direction MA Type

The type of moving average to use. Can be either Exponential Moving Average (EMA) or Simple Moving Average (SMA).

To learn more about the SMA please see https://www.investopedia.com/terms/s/sma.asp.

Trend Direction MA Length

The number of historic candles to calculate the Trend Direction MA on, in other words, the length of the moving average.

Trend Direction MA Source

The source series to use for calculating the Trend Direction MA.

RSI Settings

The relative strength index (RSI) is intended to chart the current and historical strength or weakness of a stock or market based on the closing prices of a recent trading period.

For more information please see https://www.investopedia.com/terms/r/rsi.asp.

Enable RSI

If enabled, the strategy will only open a position if the RSI is above / below the specified RSI overbought / oversold levels. It is a good idea to add a separate RSI indicator to your chart to visualise how it affects your entries.

RSI Length

How many historical bars to calculate the RSI on.

RSI Upper Band (Overbought)

The RSI will need to be above this level for the strategy to enter into short positions.

RSI Lower Band (Oversold)

The RSI will need to be below this level for the strategy to enter into long positions.

RSI Area Mapping

Configure the way you want the strategy to use the RSI:

  1. Oversold territory: Long - Overbought territory: Short: Only open long positions if the RSI is below the oversold level (lower band) and only open short positions if the RSI is above the overbought level (upper band).
  2. Oversold territory: Short - Overbought territory: Long: Only open long positions if the RSI is above the overbought level (upper band) and only open short positions if the RSI is below the oversold level (lower band).

Supertrend Settings

Supertrend is a trend-following indicator based on Average True Range (ATR). The calculation of its single line combines trend detection and volatility. It can be used to detect changes in trend direction and to position stops.

Source and more information on the Supertrend indicator: https://www.tradingview.com/scripts/relativestrengthindex/?solution=43000634738

Enable Supertrend

If enabled, the strategy will use a Supertrend indicator as an entry criteria. Long entries will only be taken if the Supertrend indicator is green. Short entries will only be taken if the Supertrend indicator is red.

Supertrend ATR Length

How many historic bars to calculate the ATR on.

Supertrend ATR Multiplier

The number by which the ATR will get multiplied.

Supertrend Must Change Direction For New Entry

If enabled, a position will only be entered, if the Supertrend changes its direction following a position exit. With this you can make the strategy stop to continuously enter into a position right after closing one.

Stochastic RSI Settings

The Stochastic RSI indicator (Stoch RSI) is essentially an indicator of an indicator. It is used in technical analysis to provide a stochastic calculation to the RSI indicator. This means that it is a measure of RSI relative to its own high/low range over a user defined period of time. The Stochastic RSI is an oscillator that calculates a value between 0 and 1 which is then plotted as a line. This indicator is primarily used for identifying overbought and oversold conditions.

Source and more information on the Stochastic RSI indicator: https://www.tradingview.com/scripts/relativestrengthindex/?solution=43000502333

Enable Stochastic RSI

If enabled, the strategy will use the Stochastic RSI as an entry criteria for both long and short entries. Long entries will be taken if the Stochastic RSI lines cross up (K line crosses up the D line). Short entries will be taken if the Stochastic RSI lines cross down (K line crosses down the D line).

K (Stochastic Fast)

The length of the SMA that is used for calculating the K line.

D (Signal Line)

The length of the SMA that is used for calculating the D line. The D line is the SMA smoothed K line.

RSI Length

How many historic bars to calculate the RSI on.

Stochastic Length

How many historic bars to calculate the Stochastic on.

RSI Source

The source series to use for calculating the RSI.

Restrict crosses to overbought/oversold territory

If enabled, the strategy will only take those Stochastic RSI crosses into account, which happens in the oversold / overbought territory.

Stochastic RSI upper band

The Stochastic RSI cross will need to happen above this level for the strategy to consider it as an entry signal for short positions.

Stochastic RSI lower band

The Stochastic RSI cross will need to happen below this level for the strategy to consider it as an entry signal for long positions.

Close position early if Stoch RSI crosses opposite direction

If enabled, the strategy will close an open position when the Stochastic RSI crosses the opposite direction, i.e. if you are long and the Stochastic RSI crosses down, or you are short, and the Stochastic RSI crosses up. The cross is only taken into account if it happens at bar close. Note that if you have enabled Restrict crosses to overbought/oversold territory the cross will have to happen in the configured territory.

ADX Settings

The Average Directional Index (ADX) is a specific indicator used by technical analysts and traders in order to determine the strength of a trend.

Source and more information: https://www.tradingview.com/scripts/relativestrengthindex/?solution=43000589099

Enable ADX

When enabled, the strategy will only open long / short positions if the ADX is at or above the specified level.

ADX Smoothing Length

The length of the SMA used to calculate the ADX from the +DI and -DI.

DI Length

The length of the Positive Directional Movement (+DI) and the Negative Directional Movement (-DI).

ADX Min. Level

The ADX will have to be at least at this level for a long or short entry to be signalled by the ADX indicator.

Divergence Settings

The Divergence Settings section contains the exact same inputs as any other strategy that uses divergences.

The inputs in the Divergence Settings section is documented on the Whitebox Strategy Engine / Divergence Settings page.