HMA Profit Manager - V1.9Note : 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.