OPEN-SOURCE SCRIPT

HMA Buy Sell Signals - Profit Manager

Atualizado
Note : Settings should be adjusted according to the selected time frame. Try to find the best setting according to the profitability rate

Overall Functionality

This script combines several trading tools to create a comprehensive system for trend analysis, trade execution, and performance tracking. Users can identify market trends using specific moving averages and RSI indicators while managing profit and loss levels automatically.

Trend Detection and Trade Signals

Hull Moving Averages (HMA):

Two HMAs (a faster one and a slower one) are used to determine the market trend.
A buy signal is generated when the faster HMA crosses above the slower HMA.
Conversely, a sell signal is triggered when the faster HMA crosses below the slower one.

Visual Feedback:

Trend lines on the chart change color to reflect the trend direction (e.g., green for upward trends and red for downward trends).

Trade Levels and Management
Entry, Take-Profit, and Stop-Loss Levels:

When the trend shifts upwards, the script calculates entry, take-profit, and stop-loss levels based on the opening price.
Similarly, for downward trends, these levels are determined for short trades.

Commission Tracking:
Each trade includes a commission cost, which is factored into net profit and loss calculations.
Dynamic Labels:

Entry, take-profit, and stop-loss levels are visually marked on the chart for easier tracking.
Performance Tracking
Profit and Loss Tracking:

The script keeps a running total of profits, losses, and commissions for both long and short trades.
It also calculates the net profit after all costs are considered.

Performance Table:

A table is displayed on the chart summarizing:
The number of trades.
Total profit and loss for long and short positions.
Commission costs.
Net profit.

Fractal Support and Resistance
Dynamic Lines:

The script identifies the most recent significant highs and lows using fractals.
It draws support and resistance lines that automatically update as new fractals form.
Simplified Visuals:

The chart always shows the last two support and resistance lines, keeping the visualization clean and focused.

RSI-Based Signals
Overbought and Oversold Levels:

RSI is used to identify overbought (above 80) and oversold (below 20) conditions.
The script generates buy signals at oversold levels and sell signals at overbought levels.
Chart Indicators:

Arrows and labels appear on the chart to highlight these RSI-based opportunities.

Customization
The script allows users to customize key parameters such as:

Moving average lengths for trend detection.
Take-profit and stop-loss percentages.
Timeframes for backtesting.
Starting capital and commission rates.
Conclusion

This script is a versatile tool for traders, combining trend detection, automated trade management, and visual feedback. It simplifies decision-making by providing clear signals and tracking performance metrics, making it suitable for both beginners and experienced traders.

* The most recently drawn fractals represent potential support and resistance levels. If the price aligns with these levels at the time of entering a trade, it may indicate a likelihood of reversal. In such cases, it’s advisable to either avoid entering the trade altogether or proceed with increased caution.
Notas de Lançamento
Overview:
This script is designed to generate buy/sell signals using Hull Moving Average (HMA) and includes a comprehensive profit manager. It integrates various features such as trend detection, take-profit and stop-loss levels, fractal-based support/resistance lines, and RSI signal detection. The tool aims to assist traders by providing visual and auditory signals for trading opportunities.

New Updates:

Stabilized Profit Calculation:

Enhanced logic to stabilize profit percentages for both long and short trades, ensuring consistent results across varying market conditions.

Position Entry Alarms:

Added alarms to notify users of potential entry points for long or short positions based on trend signals.
Optional RSI-Based Alarms:

Incorporated alarms for RSI signals (oversold/overbought conditions), which can be enabled as needed. This feature adds flexibility for users who wish to monitor RSI thresholds in conjunction with trend signals.

Key Features:

Trend Detection:

Identifies upward and downward trends using HMA crossover logic.
Provides clear visual cues for entry, take-profit, and stop-loss levels.

Profit and Loss Management:

Automatically calculates profits and losses for each trade.
Displays net profit, including commission fees, in a detailed table.

Support/Resistance Levels:

Dynamically generates fractal-based support and resistance lines for better market analysis.

RSI Integration:

Displays oversold and overbought levels with customizable visual indicators.
Supports weak and strong RSI thresholds with optional alarms.

User Customization:

Fully configurable inputs for trend periods, RSI settings, and trade management parameters.
This updated version enhances trading efficiency with refined calculations and additional notification options, making it a versatile tool for both manual and automated trading strategies.

Note :
* Settings should be adjusted according to the selected time frame. Try to find the best setting according to the profitability rate
* The most recently drawn fractals represent potential support and resistance levels. If the price aligns with these levels at the time of entering a trade, it may indicate a likelihood of reversal. In such cases, it’s advisable to either avoid entering the trade altogether or proceed with increased caution.
buysellsignalfractalbreakoutHMAhmacrossHull Moving Average (HMA)Portfolio managementprofitmanagementprofittableRelative Strength Index (RSI)rsioverboughtrsioversold

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?


Também em:

Aviso legal