TradingView
zeldromo
٢٠ تشرين الأول أكتوبر ٢٠٢٠ ١٤:٥٩

DEMO ASCII Encode/Decode 

Ferrari N.V.NYSE

الوصف

Demo
Encode a string to an ascii array and decode the ascii array to a string.

Reads ascii 32 to 126.

Takes a long time to execute. You may get the "Loop is too long (> 200 ms)" execution error.

You can change the loop to iterate fewer times thereby shorten the string length.
OR
you can limit the characters converted.

THIS IS AN ABSOLUTE KLUDGE.

Just showing how to do this.

ملاحظات الأخبار

Changed screen shot
التعليقات
RicardoSantos
you can use "if barstate.ishistory(1) and barstate.isrealtime" to run code only once, this increases performance.
المزيد