xxattaxx-DisDev

Error Message -- Demo

This script is proof of concept to display an “error message” to provide user feedback when valid, but non-logical variables are input by the end user. In this example, the user enters a lower limit that is greater than the upper limit. The Pinescript user input box allows input types and min/max values, but it does not allow input conditions like (Upper > Lower) for each variable. This script evaluates the user input and determines if the variables are logical. If not, it will print an error box using the new Pinescript table function.

This is a demo only – there are no signals, strategies, or alerts. Hopefully, some pinescripters will find this idea useful and expand on the concept.

User inputs an Upper Limit that is lower than the Lower Limit – error message displayed.

User inputs logical Upper and Lower Limits (Upper Limit is greater than Lower Limit) – normal plots.

USDT(TRC20):THb7BFnXP3FceQDSoLqG8DiE7KrfjZLJn7
USDT(ERC20):0xe5f4aab4dd0f297843146d51605010bf2c2f83e7
BTC:19VVs5MGYi9gWDoHZVwqpiXfqao3WpePRY
Link:0xe5f4aab4dd0f297843146d51605010bf2c2f83e7
ETH(ERC20): 0xe5f4aab4dd0f297843146d51605010bf2c2
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?