StuBuzzzini

Random Buy Success Rate Calculator

StuBuzzzini 已更新   
I created a prior Success Rate Calculator to help me quantify the success rate of my invite-only indicator "SB Master Chart". Happy with the results of the calculator, I decided to create a calculator for a random buy.

This is a table addon that calculates in real-time the success rate of a random buy. I think this simple calculation can give you a good indication if you want to invest in a stock and what the odds are for it being profitable at anytime during your holding period. A stock with a low score might be one that you stay away from.

There are two configurable options.

Lookback Success Calculations (Bars)
This setting is used to determine what the success is for a random buy. For example. The script tracks purchases made at every bar and check the results bars in the future to see if at any time during that time it closed above the buy cost basis.

For example if the setting is 5, we would want a close above our cost basis within 5 bars from the random buy.
The longer you are willing to hold a stock, the higher you should set this setting. If you want to buy/hold a stock for 20 days, set it to twenty to see your odds of being profitable during that time period.

Lets use the daily chart as a quick example.
If today the signal goes off and we have a settings of five, in five days (5bars) if there is a close above todays close, we count that as a success. If there is not, we count that as a failure.

Start Date Settings
This setting is used to limit the amount of data we gather for testing. For example, we may want to only know how many successes we want since the start of the year. This is the default setting, you can set it for an earlier date in time if you wish to gather more data.

Future todo updates: Adjust cell color based on values. Right now its defaulted to green.
發布通知:
Updated to include average gain. This will give the trader a better picture on where to set take profit.

Disclaimer: I am not a financial advisor. Do not take anything on here, twitter or stocktwits as financial advice, ever. Do your own research. Consult a professional investment advisor before making any investment decisions!
僅限邀請腳本

僅限作者授權的用戶訪問此腳本,並且通常需要付費。您可以將其增加到收藏腳本中,但是只有在向作者請求並獲得許可之後,才能使用它。 請與StuBuzzzini聯繫以獲取更多資訊,或按照以下作者的說明進行操作。

在您100%信任腳本作者並了解腳本的工作原理之前,TradingView不建議您購買腳本並使用它。在很多情況下,您可以在我們的社群腳本庫中免費找到一個不錯的開源替代品。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?

警告:請閱讀,然後再請求訪問權限。