Price Maximum Deviation Analysis:
Added calculation of the maximum percentage deviation of the price from the SMA (between Ichimoku crosses).
Helps assess volatility and identify potential risk levels.
Deviation History Storage:
Introduced the ability to analyze maximum deviations over recent periods (parameter Number of Breaks).
Deviation data is stored, allowing better analysis of price behavior over time.
Dynamic SMA Update:
The average price (avgPrice) is now fixed at the crossover point and used for subsequent calculations.
This helps to more accurately identify key levels on the chart.
Deviation Labels Display:
At each crossover, the indicator now displays a label showing the average maximum deviation over the selected period.
Provides a clear visual representation of market volatility.
This update makes the indicator more informative and useful for analyzing market conditions.