TradingView
Truth_Strategy_Indie
25 de Dez de 2023 14:20

Smallest Swing [Truth Indie] 

Euro / US DollarEightcap

Descrição

This indicator is designed to test the smallest swing draw using the swing capture concept of the Pivot Points High Low indicator, setting the length to 1 for all periods, and combining it with price action that I think makes sense.

Example of a valid swing high.


Example of a valid swing low.

Notas de Lançamento

1.Add a function to adjust the length of pivot points.
2.Add the swing mark for the original pivot points.
- Help you compare between the original pivot points and the customized pivot points for the smallest swing.

Notas de Lançamento


A bug has been fixed that caused some lines to not be drawn.
Comentários
saginav
Hi - Nice script, just one suggestion or question: What code will you add to highlight a close below previous swing low or close above swing high - Basically that column can be highlighted somehow?
vinikumar72
Hi can you show input option for length
Truth_Strategy_Indie
@vinikumar72,

I have only written the code to work with a length of 1. If you want to adjust it for a length of 2 or more, you need to improve the code.
Truth_Strategy_Indie
@vinikumar72, I will improve the code immediately if I have any ideas on how to make it work for a length of more than 1.
Mais