INVITE-ONLY SCRIPT
更新済 Random Buy Success Rate Calculator

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 [x] 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.
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 [x] 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.招待専用スクリプト
こちらのスクリプトにアクセスできるのは投稿者が承認したユーザーだけです。投稿者にリクエストして使用許可を得る必要があります。通常の場合、支払い後に許可されます。詳細については、以下、作者の指示をお読みになるか、StuBuzzziniに直接ご連絡ください。
スクリプトの機能を理解し、その作者を全面的に信頼しているのでなければ、お金を支払ってまでそのスクリプトを利用することをTradingViewとしては「非推奨」としています。コミュニティスクリプトの中で、その代わりとなる無料かつオープンソースのスクリプトを見つけられる可能性もあります。
作者の指示
Trial: https://sbmasterchart.com/14-day-free-trial/
Subscribe: https://sbmasterchart.com/patreon
Support: https://discord.com/invite/z2F6aUh
警告: 招待専用スクリプトへのアクセスをリクエストする前に弊社のガイドをお読みください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
招待専用スクリプト
こちらのスクリプトにアクセスできるのは投稿者が承認したユーザーだけです。投稿者にリクエストして使用許可を得る必要があります。通常の場合、支払い後に許可されます。詳細については、以下、作者の指示をお読みになるか、StuBuzzziniに直接ご連絡ください。
スクリプトの機能を理解し、その作者を全面的に信頼しているのでなければ、お金を支払ってまでそのスクリプトを利用することをTradingViewとしては「非推奨」としています。コミュニティスクリプトの中で、その代わりとなる無料かつオープンソースのスクリプトを見つけられる可能性もあります。
作者の指示
Trial: https://sbmasterchart.com/14-day-free-trial/
Subscribe: https://sbmasterchart.com/patreon
Support: https://discord.com/invite/z2F6aUh
警告: 招待専用スクリプトへのアクセスをリクエストする前に弊社のガイドをお読みください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。