OPEN-SOURCE SCRIPT

MACandles-LinearRegression-Strategy

アップデート済
This is combination of multiple indicators and strategies. Mainly useful for indexes and to time the entry and exits of indexes. No stoploss used - makes it less desirable for leveraged trades or trading individual stocks.

Let us rewind and look back at some of the indicators/strategies published earlier.

1. Moving Average Candles - this is one of my favourite tool for general trend filtering. Applying supertrend on moving average candles is one of the easiest ways to find reversal in trending market without exiting positions too early. Few scripts published on this basis are:

MA Candles Supertrend
MA Candles Supertrend Strategy

2. VixFix and Linear Regression - this itself is combination of two indicators.

Williams-Vix-Fix-Finds-Market-Bottoms - by @ChrisMoody
Squeeze-Momentum-Indicator - by @LazyBear

I have combined these two indicators to derive VIX-Fix linear regression to find absolute market bottoms. More description here:
VixFixLinReg-Strategy
VixFixLinReg-Indicator

Now, in this strategy, we combine all these together.

  • Derive moving average candles
  • Derive momentum of moving average candles
  • Derive Linear regression on momentum
  • Optionally, also calculate VIX Fix and Linear regression on VixFix momentum


To find market bottom:

There are two options
1. Use when momentum of MA candles hit bottom (red) and slowly turn up (orange). In aggressiveLong mode, signals are also generated when momentum starts going positive from negative.
2. Use Vix Fix linear regression of MA candles as described in the original script of VixFixLinReg-Strategy

To find market top

Here only Ma candles momentum decreasing is used as signal. If looking for longTrades, exit signal is generated only when momentum is turning negative extreme(orange). Or else, exit signal is generated when momentum has turned neutral.

At this stage, it is very much experimental - use it with caution :)
リリースノート
Convert to pine5
Linear RegressionmarketbottommarkettimingmarkettopsMoving AveragesVolatility

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項