OPEN-SOURCE SCRIPT
업데이트됨

Simple debug function

2 923
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:

  • 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

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.