TradingView
PhantomFlow
17 oct. 2023 10:03

PhantomFlow TrendDetector 

GoldOANDA

Description

The TrendDetector calculates waves on the chart using the built-in ZigZag indicator and detects a trend change after the last high/low update occurs in a minimum sequence of non-updated highs/lows. This assumes a continuation of the trend for the subsequent update of the remaining high/low.

For trend determination:

When you see a pink or light yellow trend color, it means that a new trend may potentially be emerging right now, and you can join it almost at the beginning. So, if you see patterns from your trading system aligning with the TrendDetector indicator and they have the same direction, it further increases the likelihood of your plan working out.
In the case where the trend phase has a red or green color, it may indicate that the primary market impulse has already occurred, and therefore, joining the trend at this time may not be advisable.

For trade entry:

Additionally, you can use the indicator specifically for entering the market using market orders. Depending on the timeframe (the smaller the timeframe, the more confirmation candles are needed), you can open a trade when one trend replaces another at the close, for example, the second candle in the case of a 10-minute timeframe. Stop-loss can be placed under the signal candle, a local peak, or a reversal trend valley, a global peak, or a reversal trend valley. In the example above, the second option was used.

Settings

You cannot technically adjust anything in this indicator because all the logic is hardcoded. However, for a better chart visualization, after adding it to the chart, click on the three dots next to the indicator name, select "Visual order," and then "Bring to front".

Notes de version


  • Added alerts
Commentaires
avigad_fashion
how can i remove the indacature to get back my regular candals chart
PhantomFlow
@avigad_fashion, just remove the indicator from chart, in the top left corner
qiantang22
@avigad_fashion, have you get your regular candles back?
Dileep_s
facing problem to deploy as when click on setting tab then only it dispay
PhantomFlow
@Dileep_s, you need to click on the three dots next to the indicator name, for the better visualization
genkir
@Dileep_s, click on the layer bring to front and your problem will be resolved.
filipiti
It's a great indicator. My only wish is to add an alarm to the colors. 4 alarms for 4 colors.
gtg0220
Thank you for creating such a great indicator. Could you please help me get an alert when the color is completely green(color.rgb(0, 255, 0) or red(color.rgb(255, 0, 0)?
I tried to modify the script on my own, but I keep getting the study error.
If you can't update it, I'd appreciate it if you could let me know how I should modify the script.
(Currently, the "PhantomFlow TrendDetector" alert setting options only have "call any alert function").
gunload77
Is it possible to set an alert when the indicator reversed from high to low during Uptrend and Downtrend ? Thank you
PhantomFlow
@gunload77, done!
Plus