OPEN-SOURCE SCRIPT

lastbar only with historical trigger(barstate.islast[yoxxx]

By dep0tyoxxx
Since i found nothing for this special need, here is my template or snippet for customization..

Case: If i want an optical hint for an exceeding indicator - as a visual alarm feature or similar -
it can be very disturbing when the symbol appears for all that cases on the chart.
Solution: The script calculates the condition only for the last bar on the right - which isnt trivial, for on principal pine calculates every value for each bar presently growing.

I declared as comments within the code what special aspects have to be kept on focus occasionally by doing so.

Hope it's helpful, cheers
yoxxx
barstateislastsingular_calculationsTrend Analysis

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية