type: pine series basic example
time required: 10 minutes
level: medium (need to know the "array" data variable as a generic programming concept, basic Pine syntax)
tl;dr how variables and series work in Pine
Pine is an array/vector language. That's something that twists how it behaves, and how we have to think about it. A lot of misunderstandings come from...
Does anybody know how to change last value of series? For example, I need to calculate EMA for series like this: (... , close, close, close, close + 150). How to achieve this?
Attached script calculates EMA for (..., close + 150, close + 150, close + 150, close + 150), ignoring my equations.
This module is meant to act as a framework and platform over which to develop other indicators. On its own it does essentially nothing, yet simplifies the work of adding basic customizations and flexibility to ideas immediately. The chart on this post is not a demo, so its better to just try adding the indicator to a test chart — you may find it more convenient to...