Library "LibraryStopwatch" Provides functions to time the execution of a script. When timing scripts, keep in mind that the runtime environment is fluid on TradingView. Different servers or server loads will impact execution time. Look first. Then leap. stopwatchStats() Times the execution of a script. Returns: A tuple of four values:...
Library "DebugConsole" Methods for debuging/output into a table, console like style. init(size) initiate property variables. Parameters: size : int, console line size. Returns: tuple, table and string array. queue(console_id, new_line) Regular Queue, will be called once every bar its called. Parameters: console_id : string array, console...
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...