EightBallDuVal

Price Outpaces Moving Average

With inputs for the moving average, Bullish overshoot percentage, and bearish overshoot percentage, this indicator is attempting to show market tops based on the difference between the current price of an asset and how far away it is from its moving average.

If you have the bullish overshoot percentage set to 1.5:

let's say price is currently at 20,000 and the moving average is around 6500.

The script calculates 20,000/6500 = 3.07

Then, there is a boolean comparison asking if 3.07 > 1.5.

Since it is, the script will create a "SHORT" flag above that candlestick.

A similar process happens for the "LONG" flags.

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

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

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

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