OPEN-SOURCE SCRIPT

Bulls And Bears [CHE]

Atualizado
This Pine Script™ indicator, Bulls And Bears [CHE], aims to provide traders with potential entry points by analyzing market conditions. Here's how it works:

Calculation of Maximum and Minimum Values: The script calculates the highest and lowest values based on the high, open, close, and low prices of the asset.

Relative Strength Index (RSI) Condition: It evaluates whether the RSI value (with a period of 14) is above 50, indicating bullish momentum.

Bullish and Bearish Conditions: Based on the calculated maximum and minimum values, along with the RSI condition, it determines bullish and bearish conditions. If the current maximum value is higher than the previous maximum and the RSI condition is met, it suggests a bullish condition. Conversely, if the current maximum value is lower than the previous maximum and the RSI condition is not met, it suggests a bearish condition.

Super Smoother Function: This function is used to calculate a smoother moving average, reducing noise in the data.

Input Parameters: Traders can adjust the "Length Difference" and "Length threshold" parameters to customize the indicator according to their trading preferences.

Calculation of Super Smooth Moving Averages: The script calculates super smooth moving averages for both bullish and bearish conditions.

Plotting: It plots the super smooth moving averages on the chart, indicating potential entry points for bullish (green) and bearish (red) conditions.

Filling Areas: It fills the areas between the moving averages and the threshold line based on the conditions. Green filling represents bullish conditions, while red filling represents bearish conditions.

By using this indicator, traders can potentially identify favorable entry points based on market conditions, helping them make informed trading decisions.
Notas de Lançamento
The indicator has been updated to include these options:

Standard
Bar
Oscillator
Notas de Lançamento
Change to Standard
Notas de Lançamento
This script is a custom trading strategy that combines the Average Directional Index (ADX) and the Relative Strength Index (RSI). It uses the following key steps:

1. Inputs: Users can adjust the ADX length and threshold.
2. Calculation of True Range (TR), Directional Movement Plus (DMP), and Directional Movement Minus (DMM).
3. Smoothing of TR, DMP, and DMM over the specified ADX length.
4. Calculation of DI+, DI-, and DX.
5. Calculation of Zero-lag ADX (ZADX) using a Hull Moving Average (HMA).
6. Calculation of RSI based on user-defined length and source.
7. Determination of buy and sell signals based on ZADX and RSI conditions.
8. Plotting of buy and sell signals on the chart with color-coded shapes for easy visualization.

The strategy generates buy signals when the ZADX exceeds the threshold and the RSI is below 25, indicating potential oversold conditions. Sell signals are generated when the ZADX exceeds the threshold and the RSI is above 80, indicating potential overbought conditions.
Notas de Lançamento
add new option "Standard plus signals"
Notas de Lançamento
This update includes new features and improvements, such as additional display options and enhanced smoothing techniques for more accurate analysis.
Notas de Lançamento
Version 2.0:
Organized Input Section with RSI Filter: The input section has been reorganized for better readability and now includes an option for the RSI filter. Under Display Settings, you can choose between a Standard RSI and a Smoother RSI filter. This is controlled by the RSI Filter input. Additionally, you can adjust the RSI Length (for RSI Filter) to set the length of the smoother RSI. This enhancement allows for more flexibility in the indicator's sensitivity to market movements.

Added Tooltips: Tooltips have been added to each input parameter. Hovering over an input will display additional information about its purpose. This feature assists users in understanding what each setting does without needing external references.

Integrated Color Management: A new Color Settings group has been added, enabling users to customize the colors used for bullish and bearish plots, the midline, and buy/sell signals directly from the input settings. This allows for greater personalization and better integration with individual chart themes.

Code Formatting and Clarity: The code has been cleaned up and structured to enhance readability. Variables and functions are properly spaced, and comments have been updated to reflect the current code logic, making it easier to understand and modify if needed.

Maintained Original Functionality with RSI Filter: Despite these changes, the core functionality of the script, including the RSI filter, remains intact. The script still calculates and plots the bullish and bearish conditions based on the selected RSI filter, ensuring consistent behavior with the original version but with added usability.

Best regards Chervolino
Candlestick analysisCyclesTrend Analysis

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal