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
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?