OPEN-SOURCE SCRIPT

Cevval's Future Long Short Percentage Prediction

已更新
This script is designed to calculate and display the dynamic win rates of long and short trades based on historical price data and various indicators. It calculates the long and short signals using price change, volume, and the Relative Strength Index (RSI). The script uses a simple moving average (SMA) to smooth out price changes and volume over a given period (14 bars in this case).

Long Signal is triggered when the price change is positive, RSI is above 50, and the volume exceeds the average volume.
Short Signal is triggered when the price change is negative, RSI is below 50, and the volume exceeds the average volume.
The script then counts the occurrences of long and short signals over the last 14 bars and calculates the win rate for both long and short trades. These win rates are plotted on the chart as percentage values, with the long win rate shown in green and the short win rate in red.

Additionally, dynamic labels are created next to the most recent bar, displaying the long and short win rates. These labels adjust their position according to the price of the most recent bar, ensuring they stay positioned correctly even when the chart is scrolled or zoomed.

In essence, the script offers a dynamic, real-time representation of the potential success rates of long and short trades based on price and volume data, allowing traders to make more informed decisions.






發行說明
This script is designed to calculate and display the dynamic win rates of long and short trades based on historical price data and various indicators. It calculates the long and short signals using price change, volume, and the Relative Strength Index (RSI). The script uses a simple moving average (SMA) to smooth out price changes and volume over a given period (14 bars in this case).

Long Signal is triggered when the price change is positive, RSI is above 50, and the volume exceeds the average volume.
Short Signal is triggered when the price change is negative, RSI is below 50, and the volume exceeds the average volume.
The script then counts the occurrences of long and short signals over the last 14 bars and calculates the win rate for both long and short trades. These win rates are plotted on the chart as percentage values, with the long win rate shown in green and the short win rate in red.

Additionally, dynamic labels are created next to the most recent bar, displaying the long and short win rates. These labels adjust their position according to the price of the most recent bar, ensuring they stay positioned correctly even when the chart is scrolled or zoomed.

In essence, the script offers a dynamic, real-time representation of the potential success rates of long and short trades based on price and volume data, allowing traders to make more informed decisions.






Chart patternsforecastingRelative Strength Index (RSI)

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明