OPEN-SOURCE SCRIPT

Refracted EMA

업데이트됨
Refracted EMA is a price based indicator with bands that is built on moving average.
The price range between the bands directly depends on relationship of Average True Range to Moving Average. This gives us very valuable variable constant that changes with the market moves.
So the bands expand and contract due to changes in volatility of the market, which makes this tool very flexible exposing psychological levels.
릴리즈 노트
Small change in formula to increase graphic representation of Volatility
릴리즈 노트
Added more bands
릴리즈 노트
High Low levels
TF based Support and Resistance
릴리즈 노트
Removed unnecessary lines
릴리즈 노트
Increased responsiveness of bands
릴리즈 노트
UPD: Main EMA colors denote the direction of the trend
스냅샷
릴리즈 노트
UPD:
⚠️ Now the indicator is based exceptionally on Buying & Selling Pressure instead of ATR.
This means that when price goes up the buying pressure determines the width of the upper "hot color" channels, whereas selling pressure set the width of lower "cold color" channels on decline.[/b
Added bool. Color of Original EMA also depends on Buying and Selling Pressure and price change.
릴리즈 노트
Fixed default settings upon update.
릴리즈 노트
Added VWAP based bar colors which plays a role of another layer of visualized confirmation.
릴리즈 노트
UPDATE: Eliminated VWAP and changed design.
릴리즈 노트
Redesign of BG Trending colors. Fast MA carries a signal that colors bars. It should be at least twice less than inputs of Base EMA. I usually use same values of BSP and Base EMA.
If you want to use higher values, say 360 for BASE EMA and BSP, then you must increase proportionally the input of Fast EMA and and set Factor accordingly.
If you have no idea what's BSP, please go to my scrips and find "Buying & Selling Pressure" or just add it to the chart.
릴리즈 노트
Had to remove Bar Coloring. It's a crime against trading.
Added extended lines of the bands and highlights of Buying and Selling Pressure relationship. They can also create intersections which determine levels of market conditions.
Added historic Traces within our system.
릴리즈 노트
Highlights Color grouped.
릴리즈 노트
Altered conditions of firing the highlights
릴리즈 노트
LT version update:
Fixed once for all background highlight signals by incorporating NET BSP.
Now we have signals based on change of NET BSP and EMA. 2 confirming trend different instruments.
릴리즈 노트
  • Fixing my silly mistake on wicks. (facepalm)
  • incorporated ST based on BSP.

릴리즈 노트
Added no wick mode. Where certain wicks depending on whether we're dealing with Buying or Selling Pressure.
In this mode bands shrink and expand faster in correlation to trend condition.
When we're at uptrend cold color zones shrink faster while hot color zones expand according to candle metrics.
릴리즈 노트
In this update I added a switch to the following visual tools inside FREMA:

Zones: (Horizontal areas filled):
스냅샷
Highlights: (Vertical timing of trades):
스냅샷
Traces (Tracks price movements inside different zones separately):
스냅샷
릴리즈 노트
  • Changed default formula of bands
  • Rearranged user inputs
릴리즈 노트
Update:
  • Ability to alter the averaging of buying/selling pressure and their factors separately
  • Assigning custom ranges enables targeting certain trend conditions

Default for both:
Averaging: 10
Factor: 3
I do not suggest changing the average BP & SP. Let them be 10.
However, by setting the factor of BP lower than of SP will force the trade to close at higher levels. It is suitable when strategy is Open Long/Close Long oriented.
릴리즈 노트
  1. Now we have second source of signals + alerts "FR" (shorter term signals relative to ST)
    스냅샷
  2. Bands are extra smoothed even in geometric mode
릴리즈 노트
Added:
Bool "Invert BSP"
Assigns inverted Buying and Selling Pressure for SuperTrend bands. When enabled it closes positions faster.
스냅샷

Bool "Dynamic Factor"
Example: For non-inverted BSP, the bullish band of SuperTrend will have values of (BPMA X BPMA / SPMA). When inverted - SPMA*SPMA/BPMA.
Extra multiplication with that ratio gives the supertrend band an adjustment to the existing proportion of Buying and Selling Pressure of the market.
스냅샷
Use Dynamic Factor with default inputs of (10; 3) for each 1 raws.

When both "Invert BSP" and "Dynamic factor" are enabled:
스냅샷
Position Entry and Position Close are timed with the proportions of Candle Metrics.
Both are off in default mode
릴리즈 노트
Minor but important updates in FR dispay
릴리즈 노트
  • Added ability to choose the type of MA of the Base
릴리즈 노트
Introducing new changes:
스냅샷
  • Deleted Geometric FREMA bands. There is no need amplifying the volatility bands with candle ratios.
  • Added output of SuperTrend Bands
  • FR and SuperTrend are inversely tied together. ST downtrend activates bullish FR entries and vice versa. FR signals play role of close ST short/long.
  • Ability to swap volatility sources of each band separately by checking ⇅ (Invert). Default (when unchecked): Uptrend band powered by Buying Pressure ; Downtrend band - with Selling Pressure. Example of use: Say we want to make uptrend band more sensitive so it can close faster. Other than reducing averaging or factor, we can check ⇅ so uptrend band will be spaced with Selling Pressure. As trend grows the SP reduces accordingly making the space shrink right on time to close the longs higher. 스냅샷
  • ATR^2 / Selling Pressure (when Invert checked / Buying Pressure) ATR^2 / Buying Pressure (when Invert checked / Selling Pressure). Example: Filters out big drops when enabled on downtrend band. 스냅샷
  • FR is just like SuperTrend - runs on volatility and triggers signals but has only one band to reflect uptrend and downtrend condition of the market. Apart from squaring and swapping, the only numerical user input to alter FR sensitivity is Averaging. Whereas ST bands can be adjusted also by factor. Multiple FR signals of same direction can be used for dollar cost averaging to divide the risk.
릴리즈 노트
Cleaned up the code for a better performance and design:
  • Replaced individual FREMA range coloring with a gradient. 스냅샷
  • Colors of FR signals are assigned by FREMA band color.
  • Added ability to boost the FR sensitivity to ultimate. 스냅샷
  • Changed squaring method for SuperTrend bands.
    Uptrend Band (green): Buying Pressure squared divided by Higher Wicks
    Downtrend Band (red): Selling Pressure squared divided by Lower Wicks
    It's more efficient than using ATR in previous version. It uses less lines of code yet gives bigger gaps in the beginning of trends which doesn't allow the market noise to violate with false signals.
    While on uptrend we want the big distance of band gap to still respond to a rise in counter force - higher wicks (part of selling pressure). As a result that distance will shrink. And vice versa for downtrend.
    스냅샷
릴리즈 노트
Simplified overall user experience by correcting some formulas and reducing number of user inputs
  • Smoothed FREMA Bands with Gaussian Filter
  • Linked up ST trend change with FR
  • SuperTrend no longer has multiplier as it is replaced with dynamic one. (Determined by relationship of ATR to certain bar fragments)
algotradingBands and ChannelsbuyDemand ZoneSELLsignalsSupply ZoneSupport and ResistancetrendVolatilityvolatilty

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


Unlock exclusive tools: fractlab.com

ᴀʟʟ ᴄᴏɴᴛᴇɴᴛ ᴘʀᴏᴠɪᴅᴇᴅ ʙʏ ꜰʀᴀᴄᴛʟᴀʙ ɪꜱ ɪɴᴛᴇɴᴅᴇᴅ ꜰᴏʀ ɪɴꜰᴏʀᴍᴀᴛɪᴏɴᴀʟ ᴀɴᴅ ᴇᴅᴜᴄᴀᴛɪᴏɴᴀʟ ᴘᴜʀᴘᴏꜱᴇꜱ ᴏɴʟʏ.

ᴘᴀꜱᴛ ᴘᴇʀꜰᴏʀᴍᴀɴᴄᴇ ɪꜱ ɴᴏᴛ ɪɴᴅɪᴄᴀᴛɪᴠᴇ ᴏꜰ ꜰᴜᴛᴜʀᴇ ʀᴇꜱᴜʟᴛꜱ.

면책사항