Frankge973
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: January 2nd, 2024

Trend indicator

Hello
I've written an indicator that displays a table with several securities
XAUUSD
DXY
PLTN
etc.
and the %
if the % increases every tick, the arrow is green, if decrease is red
But it is a continuos change in arrows
So I introduced a theshold in which if the movement is inside a certain range the previous arrow doesn't change.
But in this way I loose the direction if for example the % decrease every tick by a number below the theshold.
How can I solve that ?
I use M5 time chart.
One more thing :
In replay others securities don't change, changes only the value of security of current chart.
Thanks for any help

Return to “Request Scripts”