OPEN-SOURCE SCRIPT

Prometheus Trend Lines

Prometheus Trend lines is a tool that automatically plots support and resistance trend lines on your chart. These lines generally come out looking like triangles or wedges.

There are two ways that we do it, the first way we’ll cover is lookback period generated trend lines.

The two points for the lines are generated as follows, for a resistance line that is blue by default, the point furthest in the past is the highest high in the specified lookback period. 50 is the default, the point closest to the present is the current bar’s high. The opposite is true for support lines, the point furthest in the past is the lowest low, and the most present point is the current bar’s low.

The interval is created by ensuring after the lookback period is met to plot the lines, that period needs to pass again. That is so we can let the potential results of price breaking above or below the levels play out.

Lines will be plotted on the newest lookback period bar, after a period with no plot. What I mean is right after lines are plotted, users will have to wait for double the lookback period to get newer lines. So if you select 50 for your lookback value, after new lines are plotted, on the 100th bar after the new lines will be there. This is to avoid having a line on your chart change, we’d rather plot a line once, than plot it and keep changing it.

istantanea

Each line is 50 bars long and all the distance in between them is 50 bars. The line is drawn simply with the shortest path from the back point to the more present one, this allows us to see breaks in the line and get a better idea of how strong the next move may be.

istantanea

We see in this wedge on TSLA that there were two false breaks before the price re-entered the wedge and continued falling. It could be interpreted as buyers did not have enough strength to get TSLA out of a downtrend there.

We also offer an intra day line.

istantanea

In this image captured with the bar replay feature we see the lines being generated with the high and low of the day, that is the method we use. Furthermore, a user may notice that the ends of the line are not at the newest bar. That is on purpose, we use the

to ensure that we don’t change and plot too many lines at a given point. These two lines will reset every day as time changes and will auto use the current day high and low.

Users have the option to select a custom lookback period, as well as turn on or off the plots for either method of generating lines.

We encourage traders to not follow indicators blindly, none are 100% accurate. The lines generated are not guaranteed to be perfect support and resistance levels. We encourage the use of discretion. Please comment on any desired updates, all criticism is welcome!
Bands and ChannelsCandlestick analysisChart patterns

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


Anche su:

Declinazione di responsabilità