Alex_Dyuk

Spread for VSA

Этот индикатор сравнивает спрэд (расстояние от закрытия предыдущего бара до закрытия текущего бара или индикатор Momentum = 1) на периоде для сравнения.
На графике за 100 % принимается среднее значение спрэда за период для сравнения - красная линия. (по умолчанию период сравнения равен 3 - то есть три последних бара)
Размер бара на графике равен текущему спрэду по отношению к 100 %.
Если бар меньше 100 % то он ниже среднего, и наоборот если больше 100% то он больше среднего.
Если бар красный - спрэд отрицательный (текущее закрытие меньше предыдущего закрытия)
Если бар зелёный - спрэд положительный (текущее закрытие больше предыдущего закрытия)
Если бар меньше 75% то он будет окрашен в тусклый цвет (этот процент можно менять в настройках)

Если в настройках период спрэда указать больше 1, например 2, то спрэд будет равен закрытие мину закрытие через 1 бар назад. (это для экспериментов).

Примечание:
по умолчанию период для сравнения равен 3, но также интересен график и при значениях 15 и больше. Экспериментируйте.

По вопросам и предложениям пишите в комментариях.

Automatic translation google translate.
This indicator compares the spread (the distance from the closing of the previous bar to the closing of the current bar or the Momentum indicator = 1) on the period for comparison.
On the chart, the average spread value for the period for comparison is the red line, taken as 100%. (by default, the comparison period is 3 - that is, the last three bars)
The size of the bar on the chart is equal to the current spread with respect to 100%.
If the bar is less than 100%, then it is below average, and vice versa, if more than 100%, then it is more than average.
If the bar is red, the spread is negative (the current close is less than the previous close)
If the bar is green, the spread is positive (the current close is greater than the previous close)
If the bar is less than 75%, then it will be painted in a dull color (this percentage can be changed in the settings)

If in the settings the period of the spread is specified more than 1, for example 2, then the spread will be equal to closing mine closing after 1 bar back. (this is for experimentation).

Note:
the default period for comparison is 3, but the chart is also interesting for values ​​of 15 or more. Experiment.

For questions and suggestions, write in the comments.

Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?