Trendoscope

Simple debug function

Trendoscope Wizard Aktualisiert   
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.
Versionshinweise:
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.
Versionshinweise:
Minor updates
  • introduced method add_to_array to have fixed size array
  • Mix table max size issue
Versionshinweise:
onlyLastBar set to false by default
Versionshinweise:
convert to tostring before adding array to avoid errors
Versionshinweise:
Adding signature ;)
Versionshinweise:
  • Further update to print bar time instead of bar index. Option added to chose bar index as well.
  • Grouping of inputs.
Versionshinweise:
Convert to v5

Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?