QQE SMART2 Trading Indicator Script
QQE SMART2 Trading Indicator Script
Wilders_Period is a derived period calculated as 'RSI_Period * 2 - 1', which is used to smooth the Average True Range (ATR) calculation . This period affects the accuracy and smoothness of the Average True Range of the smoothed RSI (RsiMa), directly impacting the calculation of ATR thresholds for the QQE bands, which then influence the buy and sell signals .
The threshold is defined by a variable 'ThreshHold', which is set to 10 by default . It establishes critical levels for generating trade signals based on the Relative Strength Index Moving Average (RsiMa). When the 'RsiMa - 50' crosses above or below this threshold, it triggers either a buy or sell condition, thus influencing the trading signals .
Color-coding in plots is integral to visualizing trade signals and trends. Rising and falling conditions in indicators are differentiated through colors specified by the user, like green for rising and red for falling . Color fills are used to highlight areas between plots, where colors change depending on the values relative to each other. This visual distinction helps quickly understand market conditions and trade signals .
The 'fill' option visually connects two plots by coloring the area between them based on their relative positions and dynamic settings . For instance, enabling 'fill' above or below zero aids in distinguishing between positive or negative areas of market movement, thereby enhancing clarity in interpreting trends and potential reversals modeled by the QQE output .
The integration of trade signals with graphical elements in QQE SMART2 Enhanced is highly effective in conveying trading strategies. Buy and sell signals are visually represented as shapes over the price chart, with connecting lines improving traceability of trading events . The graphical use of colors for rising and falling trends, along with fills, enhances comprehension of complex strategies at a glance, offering traders a more intuitive understanding . Despite its complexity, this integration leverages visual tools to simplify decision-making, making the indicator user-friendly for various expertise levels.
The risk management strategy is encoded by the buy/sell conditional logic and tracking of trade states with 'inTrade', 'entryPrice', and 'exitPrice' variables . It ensures only one active trade at a time and manages entries/exits after certain criteria are met, helping to systematize and control trading activities. The 'profitLoss' is calculated upon each trade closure signifying the outcome quantitatively for decision support .
Several types of moving averages are included, such as SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HMA, LSMA, ALMA, and PEMA, covering a wide spectrum of moving average algorithms . These averages help smooth various data inputs like price or RSI values to reduce noise and identify trends more clearly. Each type offers different levels of sensitivity and smoothness for specific analytical needs within the indicator .
The background color setting, 'bgc', is employed based on threshold checks of RsiMa values adjusted by 50 . If 'RsiMa - 50' exceeds the threshold (10), green is shown, indicating a positive signal; below negative threshold (-10), red appears. If not crossing either threshold, then orange is used. This color scheme provides immediate insight into the market momentum relative to QQE thresholds .
Trend changes are determined by evaluating cross conditions between the RSIndex and longband/shortband values. Specifically, a trend is set to 1 when 'RSIndex' crosses to the shortband, indicating an uptrend, and to -1 when there's a cross with the longband, indicating a downtrend . These changes help in setting the fast ATR RSI trend line (FastAtrRsiTL) to guide trade signals .
The buy condition arises when the smoothed RSI ('RsiMa') crosses above the longband while the trend is -1, indicating a potential market reversal, while the sell condition occurs when the RSIndex crosses below the shortband during an uptrend (trend = 1). Upon satisfying these conditions, trade signals result in entering or exiting a trade, transitioning the status of 'inTrade' variable, and recording entry or exit price to manage trades efficiently .