OPEN-SOURCE SCRIPT

[CLX] Library Motion - Examples

📑 Showcase

This is ready-to-show indicator version of the example code form the `motion` library. It can be used to create string- or color-based effects.

Library:
Motion


================================================================================

📑 Setup

To use this library in your own scripts, you must first import it. To do this, add the following line to the top of your script:



Next, create a `keyframe` object by using the `varip` keyword.



Based on your needs, you can now use one of the simplified functions to create a transition effect, or you can use the `transition()` or `iteration()` function to create a custom transition effect.

📑 Simplified Functions:

(direct output)



(indirect output)

animationblinkCLXeffectexamplefademotionPine utilitiesslidetransition

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer