OPEN-SOURCE SCRIPT

MA, MATR, ChEx | All in One - 4CR CUP

已更新
In trade position setup, we always need to determine the market structure and manage the position sizing in a short period of decision time. Indicators such as moving average, initial stop loss and trailing stop loss are always helpful.

This indicator put all these handy tools into a single toolkit, which includes the following price action and risk management indicators:
  • MA - Moving Average
  • MATR - Moving Average less Average True Range
  • ChEx - Chandelier Exit



This script further enhances the setting so that you can easily customize the indicators.

For both the Moving Averages and the Moving Average less Average True Range , you can pick a type of moving average which suits your analysis style from a list of commonly used moving average formulations: namely, EMA , HMA , RMA, SMA and WMA , where EMA is selected as default.

The Moving Average less Average True Range , MATR, is usually applied as a reference to set the initial stop loss whenever opening a new position.

The abbreviation, MATR, is picked, so that this can serve as a handy reminder of a very good trading framework as elaborates as below:
M – Market Structure
A – Area of Value
T – Trigger
R – Risk Management (aka. Exit Strategy)
版本注释
Adjusted the thinkness of the indicators for clearer visual judgement.
版本注释
  • This version updates the flexibility in tailoring the ATR period for both Moving Average less ATR, MATR, and Chandelier Exit, ChEx.
    In general, the longer the period for the ATR, the wider the ATR, thus the lower stoploss indicated (for long position).

  • An option to select the price trigger in switching long-short Chandelier Exit is added to fit different trading preference.
    By default, "Close" is selected.

  • An additional moving average for weekly chart, MA Wk, is added.
    When the timeframe of your chart is lower than weekly chart, the weekly moving average, MA Wk, will be shown as a zig zag line, this is recommended to trun it on only when you are reading the weekly chart.
    And by default, its display is set as off.
版本注释
This version fixes the issue of the zig zag weekly moving average to a smoothen line.
Average True Range (ATR)chandelierexitchexExponential Moving Average (EMA)HMAmatrrmasmastoplossWeighted Moving Average (WMA)

开源脚本

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

想在图表上使用此脚本?

免责声明