This is a simple vertical offset function. It will work with price data or data from indicators. Sometimes I find it useful, particularly when I want to eliminate extraneous trading signals, to use this offset function with some of my indicators. I hope you find it useful too.
Release Notes: Added time Offset in addition to price offset. This indicator can be applied to moving averages and other indicators
Skript med en öppen källkod

I sann TradingView-anda har författaren till detta skript publicerat det som öppen källkod, så att handlare kan förstå och verifiera det. Skål för författaren! Du kan använda den gratis men återanvändning av den här koden i en publikation regleras av våra Ordningsregler. Du kan göra den till favorit för att använda den i ett diagram.

Vill du använda det här skriptet i ett diagram?

Kommentarer

Im trying to do this in 2021 with pinescript 4 now, but i cant get this or another one that i found to work.. could you update it with the V4 code?
+1 Svara
Just what i was looking for, thanks!
+1 Svara
thank you very much
+1 Svara
Fantastic! As far as I can tell it's working perfectly for me. I added my 34 HMA, added this indicator and chose that 34 HMA as the target instead of Close which is the default. This is a fantastic way to make "poor man's" MA clouds, and it makes tracking trends a piece of cake on various time frames using only one MA. Thanks!

Of course, if smarter people than I determine it needs to be updated, I'm all for it!
Svara
If I want to offset an indicator, do I copy/paste this code onto the code of the indicator?

Thanks in advance!
Svara
Thanks for creating this! Whenever I apply a vertical offset, the ema just disappears from the chart - any idea why this might be happening?
Svara
This is amazing thank you!
Svara
To have multiple offsets, just keep applying the indicator to your chart and set the input parameters.
Svara
Time Offset really cool!! Any tip how to add multiple offsets at the same time ?
Svara
RogerS RogerS
@RogerS, within the same script ?
Svara