OPEN-SOURCE SCRIPT

Bulls And Bears [CHE]

已更新
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.
版本注释
The indicator has been updated to include these options:

Standard
Bar
Oscillator
版本注释
Change to Standard
版本注释
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.
版本注释
add new option "Standard plus signals"
版本注释
This update includes new features and improvements, such as additional display options and enhanced smoothing techniques for more accurate analysis.
版本注释
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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明