Previous Period Levels - X Alerts====== ABOUT THIS INDICATOR
- A simple but highly customisable display of previous higher time-frame
OHLC values, drawn using line.new and label.new. Nothing fancy but...
- Customised resolution input which excludes time frames lower than 1 hour
while extending the common higher reference inputs to include:
• 6, and 12 Hour
• 5 Day
• 3, and 6 Month
• 1 Year
- Alert conditions using an adjustable SMA to help reduce false positive
spam.
- Full visual customisation options for (almost) every aspect, so it can be
tuned to suit most individual preferences.
- In line with the miriad visual customisation options is the ability to
change the display format of the Labels, to show more or less information,
or disable them altogether.
====== REASON FOR STUDY
- To practice advanced user input option handling to allow for a full visual
customisation experience without stepping outside of, or interfering with,
the intended function of the indicator.
- Provide reasonably clear code commenting and structure in order to be
useful as a potential learning aid for others, and future reference for
myself.
====== DISCLAIMER
Any trade decisions you make are entirely your own responsibility.
I've made an effort to squash all the bugs, but you never know!
简单移动平均线(SMA)
PRIME-QUARTERS W-XsThis script applies both the Quaters theory for easy analysis of market structure, as well as a 50 and 800 SMA to be used in conjunction with the 4 and 21 SMA found in Prime-Pulse, to pin point sniper entries. $auceCamp
Combined Momentum MA (Equal-Length EMA/SMA Crossover)Overview:
This momentum and trend-following strategy captures the majority of any trending move, and works well on high timeframes.
It uses an equal-period EMA and SMA crossover to detect trend acceleration/deceleration, since an EMA places a greater weight and significance on the most recent data.
To reduce noise and optimize entries, we combined this with an overall trend bias for further confluence.
How it works:
Signals are determined by the crossover of an EMA and SMA of the same length, e.g. EMA-50 and SMA-50.
The overall trend bias is determined using a slower SMA golden/death cross, e.g. SMA-50 and SMA-100.
The signal is stronger when it occurs in confluence with the overall trend bias, e.g. when EMA-50 crosses over SMA-50, while above the SMA-100. This is analogous to only opening long positions in a bull market.
Indicator description:
GREEN: Up Trend (EMA is above SMA, while EMA is above BIAS_MA. This shows a bullish confluence.)
YELLOW: No Trend (EMA/SMA crossover and BIAS_MA are not in confluence.)
RED = Down Trend (EMA is below SMA, while EMA is below BIAS_MA. This shows a bearish confluence.)
Equal-Length EMA/SMA Crossover Momentum StrategyOverview:
This momentum and trend-following strategy captures the majority of any trending move, and works well on high timeframes.
It uses an equal-period EMA and SMA crossover to detect trend acceleration/deceleration, since an EMA places a greater weight and significance on the most recent data.
This version is optimized for longs, and designed to cut your losses quickly and let your winners run.
To reduce noise and optimize entries, we combined this with an overall trend bias for further confluence.
How it works:
Signals are determined by the crossover of an EMA and SMA of the same length, e.g. EMA-50 and SMA-50.
The overall trend bias is determined using a slower SMA golden/death cross, e.g. SMA-50 and SMA-100.
The signal is stronger when it occurs in confluence with the overall trend bias, e.g. when EMA-50 crosses over SMA-50, while above the SMA-100. This is analogous to only opening long positions in a bull market.
Signal description:
Trend Buy: EMA crosses above SMA, and overall trend bias is bullish. Buying is in confluence with the overall trend bias.
Risky Buy: EMA crosses above SMA, and overall trend bias is bearish. Buying is early, more risky, and not in confluence with the overall trend bias.
Late Buy: SMA crosses above BIAS_SLOW. This gives further confirmation of bullish trend, but signal comes later.
Sell: EMA crosses under SMA.
Strategy entry and exit conditions:
This version enters a Long when "TREND BUY" is signalled.
This version has Sell/Shorts disabled because UP ONLY.
Long entry: Strategy enters Long when EMA is above SMA, while overall trend bias is bullish.
Long exit: Close long when EMA crosses under SMA.
MrMi 3 in 1 MAThis 3 in 1 moving average script can help all of you to save your indicator use especially for free user. this script icluded 20 MA, 50 MA, and 200 MA which is important to all trader. I hope this script can assist all of you to maximize the important indicators in your trading plan.
Skrip purata bergerak 3 dalam 1 ini dapat membantu anda semua untuk menjimatkan penggunaan penunjuk anda terutama untuk pengguna percuma. skrip ini merangkumi 20 MA, 50 MA, dan 200 MA yang penting bagi semua peniaga. Saya harap skrip ini dapat membantu anda semua untuk memaksimumkan petunjuk penting dalam rancangan perdagangan anda.
يمكن أن يساعدك هذا البرنامج النصي 3 في 1 في المتوسط المتحرك جميعًا على حفظ استخدام المؤشر الخاص بك بشكل خاص للمستخدم المجاني. يتضمن هذا البرنامج النصي 20 MA و 50 MA و 200 MA وهو أمر مهم لجميع المتداولين. آمل أن يساعدك هذا البرنامج النصي جميعًا على تعظيم المؤشرات المهمة في خطة التداول الخاصة بك.
这种三合一移动平均值脚本可以帮助所有人节省指标使用量,尤其是对于免费用户而言。该脚本包括20 MA,50 MA和200 MA,这对所有交易者都很重要。我希望该脚本可以帮助大家最大化您的交易计划中的重要指标。
यह 3 इन 1 मूविंग एवरेज स्क्रिप्ट विशेष रूप से मुफ्त उपयोगकर्ता के लिए आपके संकेतक उपयोग को बचाने में आप सभी की मदद कर सकती है। इस स्क्रिप्ट में 20 एमए, 50 एमए और 200 एमए शामिल हैं जो सभी व्यापारी के लिए महत्वपूर्ण है। मुझे उम्मीद है कि यह स्क्रिप्ट आपकी ट्रेडिंग योजना में महत्वपूर्ण संकेतकों को अधिकतम करने के लिए आप सभी की सहायता कर सकती है।
이 3 in 1 이동 평균 스크립트는 특히 무료 사용자를 위해 지표 사용을 절약하는 데 도움이 될 수 있습니다. 이 스크립트에는 모든 상인에게 중요한 20 MA, 50 MA 및 200 MA가 포함되었습니다. 이 스크립트가 거래 계획의 중요한 지표를 극대화하는 데 도움이되기를 바랍니다.
この3in 1移動平均スクリプトは、特に無料ユーザーの場合、インジケーターの使用を節約するのに役立ちます。このスクリプトには、すべてのトレーダーにとって重要な20 MA、50 MA、および200MAが含まれていました。このスクリプトが、取引計画の重要な指標を最大化するのに役立つことを願っています。
MrBB:BullBear Support BandVery simple and effective S/R band. Created bycombining the weekly 21EMA and weekly 20SMA, it provides strong support/resistance depending on market direction, and works as a basing area for retraces during parabolic (and normal) bull markets.
Moving Average PeriodicalPMA derives the length of its rendered SMA from the number of periods (example: 5 days) and the length of the period (example: 390 minutes)
The result is an indicator that should be the same across different time-frames of the same type. Allowing for the simple calculation and generation of a Daily Moving Average like the 5 Day SMA (the default for minute based time-frames).
MA Divergences for any indicatorThis is a mod of Tistas mod of the default RSI divergences.
www.tradingview.com
This is a SMA that can be applied to any indicator for divergence seeking. This can be useful if you use a custom indicator script and want divergences added, or for any oscillator really. Set the length to 1 and it will mirror the oscillator in question.
Triple SMA Strategy with entries based on sma price closesHi! :)
This strategy is made for intraday trades, especially on 5 sec - 5 min charts to follow the trend.
I have not tested on higher timeframes, but feel free to play with the values.
I have set a basic value for the 3 SMA at
-200
-400
-600
We will use an oscillator for entries which is not mine. Link ->
The oscillator mentioned above is just for visualization purposes, You do not need to get the signals, but You can see how scripts are generated with different values.
When the price above/below all the 3 SMA and oscillator crosses above/below "value you set" - You will get the buy or sell signal.
Your stop will be where the slowest SMA is.
Pyramiding is set for 10.
You can manually set 3 take profit and quantity levels.
Basic values are 1 %, 2 %, and 6 % for taking profits - You can change it based on how volatile the asset is.
Basic quantity values are 30 % at each level.
Hope You find it useful :)
Ark Crypto HeatlineThis is the 'on chart' indicator. See also "Ark Crypto Heatband" indicator for a side-by-side BTC view, without a re-scaled line.
The crypto landscape is largely dominated by BTC and characterised by cyclical stages with varying degrees of mean reversion.
To understand what stage of the cycle we are currently experiencing, it is useful to examine to what degree the current price has extended beyond the long term average that BTC has established. This is true even when analysing other crypto assets as BTC is the dominant force in the crypto asset class.
This indicator uses the 1400 period daily SMA , which is broadly the 200 period weekly SMA. This can be configured, but historically has represented a baseline to which BTC commonly returns.
The graph plots current price in terms of multiples of this long term average. Traditionally, at multiples beyond 10, BTC is considered overextended with a higher likelihood of trending towards the mean thereafter. Colors indicate the extent of price extension.
Where the indicator is applied to non BTCUSD pairs, a smoothed conversion is applied, seeking to superimpose the BTC long period SMA onto the current chart.
The indicator specifically references BTC by default on all charts, as it is designed to use BTC as general purpose indication of where crypto as a whole currently sits. Accordingly the indicator is only to be used on crypto charts.
For best results on BTC, using BNC:BLX will give the longest historical view.
Ark Crypto HeatbandThe crypto landscape is largely dominated by BTC and characterised by cyclical stages with varying degrees of mean reversion.
To understand what stage of the cycle we are currently experiencing, it is useful to examine to what degree the current BTC price has extended beyond a long term average. This is true even when analysing other crypto assets and helpful to view side by side.
This indicator uses the 1400 period daily SMA, which is broadly the 200 period weekly SMA. This can be configured, but historically has represented a baseline to which BTC commonly returns.
The graph plots current price in terms of multiples of this long term average. Traditionally, at multiples beyond 10, BTC is considered overextended with a higher likelihood of trending towards the mean thereafter. Colors indicate the extend of price extension.
The indicator specifically references BTC by default on all charts as it is designed to use BTC as general purpose indication of where crypto as a whole currently sits. Accordingly the indicator is only to be used on crypto charts.
Cloud & Ribbon Moving AveragesGreat for reversals, entry points for long & short positions.
Clouds change colors when crossover between 2 MA's occur.
Options for:
5-12 Day EMA
34-50 day EMA
150-200 day SMA
8-9 Day EMA Ribbon
HLC MA One LineHLC MA is a simple Moving Average which compares x period close and hlc3 averages and takes the greater one. So, it's a pretty fast Moving Average. It's also color coded. Green, white, and red used for up trend, possible correction or transition area and down trend, respectively. It's smoothed by using a simple method, color of the indicator only changes when its value higher or lower than its n period earlier value. By doing this, HLC MA manages to be fast and and less prone to false trend changes.
White MAThis modified indicator just based on my 2cent strategy & experience,
which is:-
MA6, MA20, MA50, MA200
However, I always turn off MA20 since I also use BB (20) indicator.
Generally, if small MA cross up big MA, then it becomes entry signal, & vice versa
Each entry signal need confirmation state which is next price should close higher than crossing price.
If price close lower than crossing price, then it will be invalid entry's signal,
while if price keep maintain at same value, then it's mean uncertain for me until it close whether above or below crossing price.
"Strategy 1" (General)
In TF1D, the pattern should fulfill my condition as below:-
- MA20 above MA50 (bullish uptrend)
- Price pullback at least touch MA20 for reversal (making Higher Low)
- Price break resistance of pullback's price
My entry signal only after it close above the resistance, near "support" (RBS, Resistance become Support)
My stop-loss, if and only if price touch previous SMA6 price (or SMA10)
Unfortunately, I haven't had any specific target price. It's depending on what kind of "player" you are. (achievement)
Few TPs those I used:-
- Price touch my Static Resistance on chart obtained from,
~ Pullback price
~ Fibo (1.61++)
~ Higher price in 3 months, 6 months, 1 year, 3 year, and so on. (road to ATH, All Time High)
- Price close outside Upper BB (Dynamic Resistance)
I don't assume sell signal by using crossing indicator as TP, it's more to stop-loss for me. (means stop from loss your profit)
"Strategy 2" (Reversal Entry)
In TF15 minutes, we are assuming entry signal when SMA6 cross up SMA50. However, it's still need confirmation by next closing price.
This strategy can be apply in TF1D although SMA20 doesn't cross up SMA50 yet.
That's all my sharing strategy/system based on my 2cent experience, it's not a prefects strategy but I hope it will gives some idea for you guys in order to obtain your own system.
Fancy Bollinger Bands Strategy [BigBitsIO]This script is for a Bollinger Band type indicator with built-in TradingView strategy including as many features as I can possibly fit into a Bollinger Band type indicator including a wide variety of options to create the most flexible Bollinger Bands strategy possible.
Features:
- A single custom moving average serving as the middle band.
- Standard MA inputs.
- MA type.
- MA period.
- MA price.
- MA resolution (time frame).
- Visibility toggle.
- MA Candle Type
- Fancy MA inputs.
- Toggle to show only candles included in the MA calculation ("Highlight inclusion") or display entire MA history.
- Toggle to show a ghost trail when Highlight inclusion is toggled on. Displays a shaded version of past MA history before the inclusion period (as seen on snapshot).
- Toggle to show forecast values for the MA.
- Other inputs related to forecasting:
- Forecast bias. (Neutral forecasts MA if the current price remains the same.)
- Forecast period.
- Forecast magnitude.
- Toggle showing details on the screen
- Toggle the visibility of the fill between the upper and lower bands.
- Toggle to use ATR instead of the standard deviation to calculate the location of the upper and lower bands.
- Custom input for the ATR period.
Strategy Features
-Strategy Window - only test during this window
-Take Profit and Stop Loss
-Open and Close conditions, including condition counts and any/all requirements
-Many conditions to choose from that can either be selected to open, close or open and close a position
-Conditions include:
-Price crossing above/below the Upper, Middle, or Lower bands
-Price being above/below the Upper, Middle, or Lower bands
-Bollinger Band width crossing or being above/below custom values
-Percent B crossing or being above/below custom values
This script may contain errors, or out of date code. Please be mindful of updates to the script.
*** DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB. ***
Multi MA CloudsEMA Clouds are used for identifying trends. It helps to see moving averages as in a range especially when you look at them in Micro time frames like 1/5/10/15/30 mins. So these Clouds could be used for Intraday trading for identifying trends and pullbacks.
For example, on a 10min chart, once you see a parabolic move, don't take trade until the bar touches 5/13 or 8/9 EMA clouds.
There are other EMA cloud scripts available but this one gives you option to choose MA Type and Source in addition to providing all well known MA range in one script. You can modify the MA length as you wish. So you can disable one you don't want to see on the chart.
Please look at my other scripts at www.tradingview.com
Combined EMA & MA crossovers [CDI]Implementation of the strategy of moving averages crossings combining two fast and two slow that are used to confirm the entry.
The purpose is to be able to quickly see a backtesting of the strategy by easily configuring the profit / loss percentage. In this script the profit percentage is used for the loss percentage as well.
Additionally you can see the moving averages all in a single chart tool.
In the community to which I belong, this strategy is used in daily candles, especially for swing trading, but it can be used in different time frames.
WARNING:
- For purpose educate only
- The entries are used under your responsibility
Krown Moving Averages & Crossover LevelsIntroducing Krown Moving Averages with Crossover levels.
This indicator
Plots 5 Ema's and 3 SMA's ( Default Krown Periods )
It calculates the price levels at which each pair of moving averages would be equal .
That means that if price closes the other side of that level the pair of moving will cross also.
These levels can therefore be considered as " crossover levels....( the price level where each pair of moving averages will cross)
It can give crossover levels for
SMA crossing SMA
EMA crossing EMA
EMA crossing SMA
Plots optional Labels for all crossover levels....(off by default needs to be turned on in the settings)
Plots optional crossover levels as lines and dots colored as the 2 colors of the pair of moving averages.....(off by default needs to be turned on in the settings)
This indicator is aimed at traders who use simple and exponential moving average crossovers as part of their trading plan or edge.
It takes the guesswork out of knowing at what price level a pair of moving averages will cross which helps to improve entries and risk management.
There is an optional "Cutoff" function and user adjustable "limit factor" which cuts the plots off once they are too far below or above the current price to prevent chart auto focus issues.
There is a decimal place truncation option to set the decimal places depending on the asset type and price accuracy required.
Inspired by a request from a community member after one of my recent reverse engineered indicator publications.
I am publishing this open source in the hopes that some newer coders will find the functions interesting and useful.
Equal-Length EMA/SMA Crossover Momentum Signal V1Overview:
This momentum and trend-following strategy captures the majority of any trending move, and works well on high timeframes.
It uses an equal-period EMA and SMA crossover to detect trend acceleration/deceleration, since an EMA places a greater weight and significance on the most recent data.
This version is optimized for longs, and designed to cut your losses quickly and let your winners run.
To reduce noise and optimize entries, we combined this with an overall trend bias for further confluence.
How it works:
Signals are determined by the crossover of an EMA and SMA of the same length, e.g. EMA-50 and SMA-50.
The overall trend bias is determined using a slower SMA golden/death cross, e.g. SMA-50 and SMA-100.
The signal is stronger when it occurs in confluence with the overall trend bias, e.g. when EMA-50 crosses over SMA-50, while above the SMA-100. This is analogous to only opening long positions in a bull market.
Signal description:
Trend Buy: EMA crosses above SMA, and overall trend bias is bullish. Buying is in confluence with the overall trend bias.
Risky Buy: EMA crosses above SMA, and overall trend bias is bearish. Buying is early, more risky, and not in confluence with the overall trend bias.
Late Buy: SMA crosses above BIAS_SLOW. This gives further confirmation of bullish trend, but signal comes later.
Sell: EMA crosses under SMA.