OPEN-SOURCE SCRIPT

LPB MicroCycles Strategy

What it is:

We use the Hodrick-Prescott filter applied to the closing price, and then take the outputted trendline and apply a custom vwap, the time frame of which is based on user input, not the default 1 day vwap . Then we go long if the value 2 bars ago is greater then one bar ago. We sell and color the bars and lines when the if the value of 2 bars ago is less than one bar ago.

Also included:
GUI for backtesting
ATR Based Stop Loss

How to use:
Go long when the indicators suggest it, and use the stop losses to reduce risk.


Best if paired with a volatility measurement (inside candles, average true range , bollingerband%B)
Breadth IndicatorsTrend AnalysisVolume

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明