OPEN-SOURCE SCRIPT
TEWMA - [JTCAPITAL]

Triple Exponential Weighted Moving Average is a modified way to use Weighted Triple Moving Averages for Trend-Following
The indicator works by calculating in the following steps:
1. The length gets multiplied by the multi to get the second length.
2. The Triple Exponential Moving Average gets calculated using the Weighted Moving Average as input.
3. This calculation is done over the first and the second length.
4. The average from both calculations is taken and used for buy and sell conditions.
--Buy and sell conditions--
-The buy and sell conditions are defined by the average of both indicators having a higher value than the previous bar.
-Average higher than the previous average = Long
-Average lower than the previous average = Short
--Features and Parameters--
-Allows the usage of different sources
-Allows the changing of the calculation length
-Allows the changing of the multiplier to determine the second length
-Allows the use of alerts for signal changes
--Details--
This script uses the result of the calculation of the Weighted Moving Averages as inputs for the Triple Moving averages. The usage of 2 separate calculations and using the average of them for trend determination is to allow for faster entries and exits while limiting potential false signals.
Enjoy!
The indicator works by calculating in the following steps:
1. The length gets multiplied by the multi to get the second length.
2. The Triple Exponential Moving Average gets calculated using the Weighted Moving Average as input.
3. This calculation is done over the first and the second length.
4. The average from both calculations is taken and used for buy and sell conditions.
--Buy and sell conditions--
-The buy and sell conditions are defined by the average of both indicators having a higher value than the previous bar.
-Average higher than the previous average = Long
-Average lower than the previous average = Short
--Features and Parameters--
-Allows the usage of different sources
-Allows the changing of the calculation length
-Allows the changing of the multiplier to determine the second length
-Allows the use of alerts for signal changes
--Details--
This script uses the result of the calculation of the Weighted Moving Averages as inputs for the Triple Moving averages. The usage of 2 separate calculations and using the average of them for trend determination is to allow for faster entries and exits while limiting potential false signals.
Enjoy!
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。