OPEN-SOURCE SCRIPT
已更新 Simple debug function

Simple method I used to debug problem in my script.
For loop generates 5 numbers from the given depth. At present, depth is 9
Rules for generating the combinations are as follows:
While the logic above is just a random one. Debug method can be reused for any program.
For loop generates 5 numbers from the given depth. At present, depth is 9
Rules for generating the combinations are as follows:
-  First number is always 1
 -  Two even numbers should not be adjacent to each other and two odd numbers should not be adjacent to each other
 -  Numbers should be ordered in incremental order.
 -  Print all possible combinations
 
While the logic above is just a random one. Debug method can be reused for any program.
版本注释
Few updates-  Made logs scrollable by adding start index as input. This is set to 0.
 -  Added barindex as first column for reference. This can also be changed to date and time. But, thought bar index is more useful to have.
 -  Added maxLogSize which refers to size of logs. Max value is 100000 - beyond that it will give runtime error. Hence, set maxvalue to avoid that.
 
版本注释
Minor updates -  introduced method add_to_array to have fixed size array
 -  Mix table max size issue
 
版本注释
onlyLastBar set to false by default版本注释
convert to tostring before adding array to avoid errors版本注释
Adding signature ;)版本注释
-  Further update to print bar time instead of bar index. Option added to chose bar index as well.
 -  Grouping of inputs.
 
版本注释
Convert to v5开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。