AlcidesJr

Length True Range BarColor

AlcidesJr מעודכן   
Overview
The indicator prints different colors on the candles for pre-determined amplitudes in relation to the simple moving average over the average true range.

Calculations
The indicated value of the simple moving average in relation to the average true range is being used to restrict the color of the candle signal to its pre-determined amplitude.

How It Works
Supposing you have a strategy where there is a need to determine the size of the acceptable signal bar in relation to the average true range, as well as size your stop and target through this range. In summary, coloring based on the size of the amplitude due to the average of the ATR, provides the ease of identifying weak signals, where there will possibly not be a sequence of movement, or identifying stretched signals where it will possibly provide a correction movement. This way you can determine an ideal size range for your input signal. Ex: Color candle signal with size of ( Candle => 2* the SMA (ATR) and <= 3* the SMA (ATR).

Inputs
Valores
Period: To determine the length of the ATR
SMA: To determine the length of the Simple Moving Average
LengthMin: Minimum amplitude size factor
LengthMax: Maximum amplitude size factor

Traço: Coloring ATR
SMA: Coloring SMA
Traço: Coloring TR
Bar Color: Coloring candle Sing



Note 1
The values of ATR, SMA and TR will normally be shown in the indicator header for a dynamic visualization of the values, and possible exceptions for candles signals outside the initially proposed factor can be compared.

Note 2
Codes made available in the PINE language reference manual were used to develop the indicator, therefore it is a practical code for trend following setup strategies not available in the community.



הערות שחרור:
Update ATR input name
הערות שחרור:
Update ATR line name
הערות שחרור:
Update candle amplitude line name
הערות שחרור:
Imagem
הערות שחרור:
change in caption >= que: length Max to <= que: length Max
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?