Pythagorean Means of Moving AveragesDESCRIPTION
Pythagorean Means of Moving Averages
1. Calculates a set of moving averages for high, low, close, open and typical prices, each at multiple periods.
Period values follow the Fibonacci sequence.
The "short" set includes moving average having the following periods: 5, 8, 13, 21, 34, 55, 89, 144, 233, 377.
The "mid" set includes moving average having the following periods: 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597.
The "long" set includes moving average having the following periods: 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181.
2. User selects the type of moving average: SMA, EMA, HMA, RMA, WMA, VWMA.
3. Calculates the mean of each set of moving averages.
4. User selects the type of mean to be calculated: 1) arithmetic, 2) geometric, 3) harmonic, 4) quadratic, 5) cubic. Multiple mean calculations may be displayed simultaneously, allowing for comparison.
5. Plots the mean for high, low, close, open, and typical prices.
6. User selects which plots to display: 1) high and low prices, 2) close prices, 3) open prices, and/or 4) typical prices.
7. Calculates and plots a vertical deviation from an origin mean--the mean from which the deviation is measured.
8. Deviation = origin mean x a x b^(x/y)/c.
9. User selects the deviation origin mean: 1) high and low prices plot, 2) close prices plot, or 3) typical prices plot.
10. User defines deviation variables a, b, c, x and y.
Examples of deviation:
a) Percent of the mean = 1.414213562 = 2^(1/2) = Pythagoras's constant (default).
b) Percent of the mean = 0.7071067812 = = = sin 45˚ = cos 45˚.
11. Displaces the plots horizontally +/- by a user defined number of periods.
PURPOSE
1. Identify price trends and potential levels of support and resistance.
CREDITS
1. "Fibonacci Moving Average" by Sofien Kaabar: two plots, each an arithmetic mean of EMAs of 1) high prices and 2) low prices, with periods 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181.
2. "Solarized" color scheme by Ethan Schoonover.
Cari dalam skrip untuk "GOLD"
IIPThis indicator includes followings functions,
1. Close and SMA
Show 8 SMA (default: 3, 5, 7, 9, 20, 100, 300: each can be adjustable.)
2. Background color in Perfect Order (5, 20 ,60)
Perfect Order: Red
Reverse Perfect Order: Blue
3. Golden Cross and Dead Cross between SMA 5 and SMA 20
Golden Cross(GC):▲ with Green
Dead Cross(DC):▼ with Red
4. Show labels on 5 days, 20 days, 60 days and 100 days before today
5. Put dotted vertical line on first day in every month.
vol_premiaThis script shows the volatility risk premium for several instruments. The premium is simply "IV30 - RV20". Although Tradingview doesn't provide options prices, CBOE publishes 30-day implied volatilities for many instruments (most of which are VIX variations). CBOE calculates these in a standard way, weighting at- and out-of-the-money IVs for options that expire in 30 days, on average. For realized volatility, I used the standard deviation of log returns. Since there are twenty trading periods in 30 calendar days, IV30 can be compared to RV20. The "premium" is the difference, which reflects market participants' expectation for how much upcoming volatility will over- or under-shoot recent volatility.
The script loads pretty slow since there are lots of symbols, so feel free to delete the ones you don't care about. Hopefully the code is straightforward enough. I won't list the meaning of every symbols here, since I might change them later, but you can type them into tradingview for data, and read about their volatility index on CBOE's website. Some of the more well-known ones are:
ES: S&P futures, which I prefer to the SPX index). Its implied volatility is VIX.
USO: the oil ETF representing WTI future prices. Its IV is OVX.
GDX: the gold miner's ETF, which is usually more volatile than gold. Its IV is VXGDX.
FXI: a china ETF, whose volatility is VXFXI.
And so on. In addition to the premium, the "percentile" column shows where this premium ranks among the previous 252 trading days. 100 = the highest premium, 0 = the lowest premium.
MFI Simple StrategyHere I've made a simple strategy based off a simple moving average of an MFI length.
Back tested on a BYBIT:BTCUSDT 30m chart.
Conditions:
---When the price is above the golden SMA of 200 bars---
- Buy: when MFI is moving up
- Sell: when MFI is moving down
- Stop: golden SMA of 200 bars
If you would like alerts:
1.) Add the strategy to your chart,
2.) Go to "Create Alert",
3.) Select "MFI Simple Strategy" in your alert creator,
4.) Select whatever notifications settings or message settings,
5.) Finally, click "Create" and you're good to go.
Disclaimer: Please do your own research before making any decisions financially. Past results do not guarantee future results.
Long only EMA CROSS 8/50/200 BacktestImprove EMA CROSS 8/50/200 with adjustable Exit EMA Level, and can open trade only when above EMA200
Random Entries Work!" tHe MaRkEtS aRe RaNdOm ", say moron academics.
The purpose of this study is to show that most markets are NOT random! Most markets show a clear bias where we can make such easy money, that a random number generator can do it.
=== HOW THE INDICATOR WORKS ===
The study will randomly enter the market
The study will randomly exit the market if in a trade
You can choose a Long Only, Short Only, or Bidirectional strategy
=== DEFAULT VALUES AND THEIR LOGIC ===
Percent Chance to Enter Per Bar: 10%
Percent Chance to Exit Per Bar: 3%
Direction: Long Only
Commission: 0
Each bar has a 10% chance to enter the market. Each bar has a 3% to exit the market . It will only enter long.
I included zero commission for simplification. It's a good exercise to include a commission/slippage to see just how much trading fees take from you.
=== TIPS ===
Increasing "Percent Chance to Exit" will shorten the time in a trade. You can see the "Avg # Bars In Trade" go down as you increase. If "Percent Chance to Exit" is too high, the study won't be in the market long enough to catch any movement, possibly exiting on the same bar most of the time.
If you're getting the red screen, that means the strategy lost so much money it went broke. Try reducing the percent equity on the Properties tab.
Switch the start year to avoid/minimize black swan events like the covid drop in 2020.
=== FINDINGS ===
Most markets lose money with a "Random" direction strategy.
Most markets lose ALL money with a "Short Only" strategy.
Most markets make money with a "Long Only" strategy.
Try this strategy on: Bitcoin (BTCUSD) and the NASDAQ (QQQ).
There are two popular memes right now: "Bitcoin to the moon" and "Stocks only go up". Both are seemingly true. Bitcoin was the best performing asset of the 2010's, gaining several billion percent in gains. The stock market is on a 100 year long uptrend. Why? BECAUSE FIAT CURRENCIES ALWAYS GO DOWN! This is inflation. If we measure the market in terms of others assets instead of fiat, the Long Only strategy doesn't work anymore (or works less well).
Try this strategy on: Bitcoin/GLD (BTCUSD/GLD), the Eurodollar (EURUSD), and the S&P 500 measured in gold (SPY/GLD).
Bitcoin measured in gold (BTCUSD/GLD) still works with a Long Only strategy because Bitcoin increased in value over both USD and gold.
The Eurodollar (EURUSD) generally loses money no matter what, especially if you add any commission. This makes sense as they are both fiat currencies with similar inflation schedules.
Gold and the S&P 500 have gained roughly the same amount since ~2000. Some years will show better results for a long strategy, while others will favor a short strategy. Now look at just SPY or GLD (which are both measured in USD by default!) and you'll see the same trend again: a Long Only strategy crushes even when entering and exiting randomly.
=== " JUST TELL ME WHAT TO DO, YOU NERD! " ===
Bulls always win and Bears always lose because fiat currencies go to zero.
You're not underperforming a random number generator, are you?
Average Daily Range Fibonacci LevelsThe Average Daily Range is a simple concept, calculated as the difference between daily highs and lows averaged over some period. This indicator uses that range in conjunction with Fibonacci ratios to create zones centered on the day's open that tends to act as areas of support and resistance.
The thicker White lines are the ADR levels; all other lines are the same value adjusted by the various Fibonacci values.
A simpler version of this concept can be seen in my other script, Average Daily Range Zones, which does not include the Fibonacci ratio zones.
Thanks to @Hank Hill for the original idea and TV for the feedback and support on the use of the security() function.
Also thanks to @GoldenCross for the Fibonacci obsession.
[ADOL_]DOUBLE ICHIMOKU MODEENG) Simple Cross Signal Indicator of Ichimoku Equilibrium
1. Concept
The basic concept of Ichimoku can be learned from the idea.
2. Principle
It is a double Ichimoku equilibrium in which the lengths of the indicators of the basic Ichimoku are different and integrated into a single indicator.
This provides some convenience for users with a limited number of metrics.
IL stands for Ichimoku long, which means the golden cross between the baseline and the transition line.
IS stands for Ichimoku short, which means the dead cross between the baseline and the transition line.
Since IL and IS are marked on a simple cross signal, it is recommended to overlap with other signals.
3. Optional
You can set the range you want to plot on the indicator.
4. Timeframe
Applicable to all timeframes. The time frame is related to the frequency of occurrence of the signal.
Recommended time frame: 15 minutes, 3-5 minutes
5. Alert
You can set alarms for the golden and dead crosses of the baseline and transition lines.
6. Trading method
By combining the trend break with the cross signal of the baseline and the transition line, it is a pre-ingress signal
You can use IL and IS.
7. Limits
Since filtering is not applied to simple cross signals on the indicator, trading that follows only cross signals has limitations.
8. Note
The indicator was created as open source.
Please be aware of the limitations of simple signal generation as above. You are solely responsible for any trading decisions you make.
All enhanced signals result in ARVIS.
KOR) 일목균형의 단순 크로스 신호 지표
1. 개념
일목균형에 대한 기본 개념은 해당 아이디어를 통해 학습할 수 있습니다.
2. 원리
기본 일목균형의 지표의 길이를 달리해서 하나의 지표로 통합한 더블 일목균형 입니다.
따라서 지표의 개수가 제한된 사용자에게 약간의 편의성을 제공합니다.
IL은 Ichimoku long의 약자로 기준선과 전환선의 골든크로스를 의미하며
IS는 Ichimoku short의 약자로 기준선과 전환선의 데드크로스를 의미합니다.
단순 교차 신호에 IL, IS를 표기한 것이므로 다른 신호와 중첩해서 사용할 것을 권장합니다.
3. 옵션
지표에 플로팅 하고자 하는 범위를 설정할 수 있습니다.
4. 타임프레임
모든 시간프레임에 적용가능합니다. 시간프레임은 신호의 발생빈도와 연관이 있습니다.
추천타임프레임 : 15분봉, 3-5분봉
5. 얼러트
기준선과 전환선의 골든크로스와 데드크로스에 알람을 설정할 수 있습니다.
6. 매매방법
기준선과 전환선의 크로스 신호에 Trend Break를 결합하여 추세선을 깨기 전의 선진입 신호로
IL과 IS를 활용 할 수 있습니다.
7. 한계
지표상 단순 크로스 신호는 필터링이 적용되지 않으므로 크로스 신호만을 따르는 매매는 한계가 발생합니다.
8. 참고
해당 지표는 오픈 소스로 제작되었습니다.
위와 같은 단순 신호발생의 한계를 인지하시기 바랍니다. 귀하가 내리는 모든 거래 결정은 전적으로 귀하의 책임입니다.
모든 향상된 신호는 ARVIS로 귀결됩니다.
Forex Position Size CalculatorThe purpose of this position size calculator is to assist fellow traders in their position size calculations straight from tradingview without having to rely on other apps or websites.
Account balance in the 8 major currency pairs are also available as an input option (i.e. if the account balance is based in pounds, dollars, euros, it can be selected).
Right now this only works on the 28 forex cross currency pairs. At a later date, the indicator will be updated to handle exotic pairs, commodities, and gold.
Fib DragonsCreates bands based on Fibonacci golden ratio numbers and EMA w/ATR
This allows for a faster reaction and significantly less lag than SMA w/ATR
EMA is set to 34 - Recommend range by taste 21, 34, 55, 62
ART is set to 13 - Recommend 13 or 21
Fib Bands are set to 1.618, 2.618, 3.618 however you can set to what works for you. I recommend keeping them at the golden ratios.
Based on indicator by rstraat
How to trade - Same rules apply
- Best to use in ranging market conditions
- Place on two different time frames such as the 15 min. and 60 min for intraday trading
- Take trades off either short or long term chart.
- Best trades occur when both charts show same trigger/condition.
- Trades are short term reversals in direction of major trend on longer term chart unless you expect a trend reversal.
- Determine which band is the limiting band for the volatility of the instrument.
- When the market closes outside of the limiting band then returns inside, take a long/short one tick above/below the high/low of the previous bar.
- Place stop below/above the low/high of the the recent swing low/high.
- Set targets at opposite band of chart
Use any oscillator you favor or see fit with this indicator or any other strategies that work for you.
CPR, Camarilla & Moving AverageThis script is created primarily for Intraday trading but can also be used for short and long term trading. This is a combination of Central Pivot Range (CPR), Moving Averages and Camarilla Pivot levels (with inner levels). This helps you to combine the strategies of CPR and Moving Averages to identify the best trading opportunities with greater edge. Central Pivot Range and Camarilla pivots are taken from PivotBoss by Franc Ochoa.
Key features:
# Daily CPR levels
# Weekly CPR levels
# Monthly CPR levels
# Previous Day High and Lows
# Previous Week Highs and Lows
# Previous Month Highs and Lows
# Camarilla Pivots with inner Levels
# CPR Levels for the next Day, Week and Month
# 5 Simple moving averages and 5 Exponential Moving Averages
What separates this script from other scripts with CPR and Moving averages?
# One of the few indicators (if not the only one) which combines the 2 types of Moving Averages, CPR and also Camarilla Pivots.
# CPR Levels for not just the next Day, but for next Week(Weekly CPR) and Month(Monthly CPR) also.
# Hide the previous day's levels according to your wish. This is the most unique feature of this indicator. You can set the number of Daily CPR levels you want to load in the chart. This is not just for the Daily CPR but also for the Weekly and Monthly CPR also. This makes the chart less cluttered and prevents the candles from getting buried in the indicators. Please notice how the previous day's CPR levels are hidden in the displayed demo chart on the script page. In the chart, only one trading day's data is shown(by default).
# This script is OPEN SOURCE.
Strategies :
For CPR & Camarilla Strategies for intraday trading and swing trading refer to the book 'Secrets of a Pivot Boss: Revealing Proven Methods for Profiting in the Market' by Franklin O. Ochoa.
Moving averages strategies :
Moving averages can be combined and also used individually for several strategies
* 9 EMA can be used as trailing stop loss for strong moving trends that helps you to catch big moves.
* 20sma can be used not just trailing stop loss but also for taking re-entry to the trend.
* Golden cross - The golden cross occurs when a short-term moving average crosses over a major long-term moving average to the upside. This indicates a bullish turn in the market. Eg: 50 SMA cuts 200 SMA from below.
* Death Cross - The death cross occurs when the short term moving average crosses the long-term average from above. This indicates a bearish turn in the market. Eg: 50 SMA cuts 200 SMA from above.
* When 20 SMA is above 50 SMA and 20 SMA and 50 SMA are angling up like parallel lines, then it denotes bullish strength. If this happens right after Golden Cross, big moves to the upside can be expected.
* When 20 SMA is below 50 SMA and 20 SMA and 50 SMA are angling down like parallel lines, then it denotes bearish strength. If this happens right after Death Cross, big moves to the downside can be expected.
* When 20SMA and 50 SMA are going flat and crossing each other, then it denotes sideways sentiment.
Moving average strategies are taken from the book 'How to Make Money in Intraday Trading' by Ashwani Gujral. For learning more about how to combine CPR and Moving averages in your trading please refer to this book.
Beam Bands + Fibonacci LevelsThis indicator calculates the Fibonacci retracement levels based on beam bands. As you can see the price very often reacts to these levels.
Euler Cubes - CubᵋI give you the "Euler Cubes", inspired by the mathematical number 'e' (Euler's number).
It is suggested (fibonacci ratios analogy) that price/e ratio can give Support/Resistance area's.
The first cube is made by a low/high of choice, for example:
You set the 'source low'/'source high' in position:
Then you choose the 'e ratio' (x times 'e')
This multiplies the distance 'high-low' times '0.271828' times 'the set number' .
For example, choosing 5 gives 5 x 0.271828 = 1.35914, the distance 'high-low' hereby multiplied by 1.35914, the following cubes multiply the previous distance by 1.35914.
(Settings below 5 will give cubes smaller than the 'high-low' distance)
In the case of x times 'e' = 5:
You can extend the lines:
Now you can give it an angle:
Do mind, using it over very little bars and using an angle can cause some lines to not align as intended, because for now, it is not possible to plot in between bars.
There are also 'Euler' SMA and EMA available with following length's:
27, 54, 82,109, 136, 163, 190 and 217
Cheers!
Pi Cycle Top IndicatorIndicator Overview
The Pi Cycle Top Indicator has historically been effective in picking out the timing of market cycle highs to within 3 days.
It uses the 111 day moving average (111DMA) and a newly created multiple of the 350 day moving average, the 350DMA x 2.
Note: The multiple is of the price values of the 350DMA not the number of days.
For the past three market cycles, when the 111DMA moves up and crosses the 350DMA x 2 we see that it coincides with the price of Bitcoin peaking.
It is also interesting to note that 350 / 111 is 3.153, which is very close to Pi = 3.142. In fact, it is the closest we can get to Pi when dividing 350 by another whole number.
It once again demonstrates the cyclical nature of Bitcoin price action over long time frames. Though in this instance it does so with a high degree of accuracy over the past 7 years.
How It Can Be Used
Pi Cycle Top is useful to indicate when the market is very overheated. So overheated that the shorter term moving average, which is the 111 day moving average, has reached a x2 multiple of the 350 day moving average. Historically it has proved advantageous to sell Bitcoin at this time in Bitcoin's price cycles.
Created By
Philip Swift
Multi Moving Average Crossing (by Coinrule)Moving Averages are among the most common trading indicators. They are straightforward to interpret and effective to use.
One of the limitations of using moving averages is they can provide buy and sell signals with a relatively high lag , making it very difficult to spot the lows and tops of the trend.
Moving averages calculated with a low number of periods like the MA9 (the average of the previous nine price periods) react very fast to price moves providing prompt signals. On the other side, more signals may end up with more false-signals and more trades in a loss.
On the contrary, moving averages calculated with a higher number of periods like the MA100 (which considers the previous one hundred price periods) give more reliable signals, but with a delay.
A system catching the crossing of the MA50 over the MA100 is a good compromise for successful long-term strategies. It provides, on average, reliable buy signals.
The Multi Moving Average Crossing Strategy tries to optimize the exit without waiting for the same opposite crossing (MA50 below MA100). It uses the MA9 crossing below the MA50, instead, to spot a better time for selling.
The setup is as follows.
BUY when the Moving Average 50 crosses above the Moving Average 100
SELL when the Moving Average 9 crosses below the Moving Average 50
The higher is the time frame to calculate the Moving Averages, the better is the overall performance of the strategy. The 4-hour (or 6-hour) time frame seems to be the best, even if it results in fewer trades. If you want to trade more still with good results, the 1-hour time is a good compromise.
Advantages of the strategy
This strategy seeks to catch those that are more likely relevant uptrends and close the trade relatively quickly. More trades mean more opportunities. This is especially effective if you run the strategy on all the available coins on the market, as you could do with Coinrule.
Generally, a Multi Moving Averages approach beats the classic crossing strategy involving only two Moving Averages. We backtested a sample of twenty trading pairs to assess the benefits empirically.
The results show that the Multi Moving Average Strategy
outperforms 13 out of 20 times
has 95% higher average return
has 67% higher median return
The strategy assumes each order to trade 30% of the available capital and opens a trade at a time. A trading fee of 0.1% is taken into account.
Floor Pivots With CPR and Camarilla 3 LevelsThis script plots floor pivots with the central pivot range and camarilla R3/S3 pivots, to spot with ease the Golden Pivot Zone (GPZ). As described in the book *Secret of a pivot Boss* by Franklin Ochoa, the Golden Pivot Zone occurs when R3 or S3 pivot from the Camarilla Equation or from lies within the central pivot range. This combination can be simply profitable.
A bearish GPZ occurs when R3 of the Camarilla Equation is mixed within the central pivot range, therefore we should look for sells in that zone.
A bullish GPZ occurs when S3 of the Camarilla Equation is mixed within the central pivot range, therefore we should look for buys in that zone.
Here are some examples on Gold
Good luck !
Ps* i got part of the code from @cristian.d script
EMA Cross LevelsCalculates fast and slow moving averages of lengths(inputs= 'n_fast', 'n_slow').
Plots the price level of the most recent cross. If bullish cross (fast crosses up over slow), color = green, and color=red if cross was bearish.
Free Zen SMA CollectionWith this script/indicator you combine a couple of different plots based mainly on moving average function.
Plot functions:
1. Highlight Dates: Weekends, New Years and halvings. Just for a better orientation.
2. Add 2 custom MA's (SMA, EMA or RMA)
- observe the golden/death crossos of them
- observe the filled area between them
- observe the slope of the MA's based on the color of the lines
3. Plot the 350SMA daily and their golden ratio multiplier (BTC related)
4. Highlight the ATH cross based on Pi cycle (SMA(111) crosses SMA(350)*2)
5. Plot EMA Ribbons.
have fun guys and thanks to all others who contribute to this huge script community
Double Moving AverageWith this script you can view TWO moving average with ONE indicator (really helpful if you have the limit of four indicator in the chart).
It is very simple to use:
1) In "Preset" you can choose between three standard pairs (7-21, 11-22, 50-200) or "Custom".
2) The parameters "Custom M1" and "Custom M2" only work if "Custom Preset" is selected, otherwise they are IGNORED.
Bollinger Bands %B Compare VixThis imple script converts your chosen chart price and outputs it as a percentage in relation to the Vix percentage.
If price (Blue line) is higher than 0.60 and vix (Red Line) is lower than 0. 40 then there is lower volatility and this is good for buying.
If price (Blue line) is lower than 0. 40 and vix (Red Line) is higher than 0.60 then there is higher volatility and this is good for selling, exiting and cash only.
If you like risk you can enter as soon as the price and vix cross in either direction
This is my first script, please give me a lot of critique, I won't cry hahaha :)
For greater accuracy, you use these Vix products for their specific stocks/Indicies:
Apple - VXAPL
Google - VXGOG
Amazon - CBOE:VXAZN
IBM - CBOE:VXIBM
Goldman Sachs - CBOE:VXGS
NASDAQ 100 = CBOE:VXN
SP100 - CBOE:VXO
SP500 (3months) - VIX3M
XLE(energy sector) - CBOE:VXXLE
EWZ(brazil etf) - VXEWZ
EEM( emerging markets etf) - CBOE:VXEEM
EFA (MSCI ETF) - CBOE:VXEFA
FXI (Cina ETF) - CBOE:VXFXI
[blackcat] L2 Bull Bear Convergence Divergence (BBCD)Level: 2
Background
A bull market is gaining ground and is economically sound, while a bear market is declining and most stocks are depreciating. The actual origins of these terms are unclear, but one reason could be that bulls attack by pulling their horns up while bears attack by brushing their paws down.
Function
L2 Bull Bear Convergence Divergence (BBCD) disclose the convergence divergence of the bull bear as a market opinion indicator. It tells you the opinion of those who are directly involved with the markets. As a trader, understanding how the convergence divergence of the bull bear works can be of great help. I inherited the traditional MACD expression method, and added golden cross (yellow cross) and dead cross (fuchsia cross) prompts, as well as bottom divergence (lime cross) and top divergence (red cross) prompts.
Key Signal
bbd --> bull bear fast line
bbdsupport --> bull bear slow line and support level
bbdgx --> bull bear gold cross in yellow
bbddx --> bull bear dead cross in fuchsia
bbotdiverg --> bull bear bottom divergence alert in lime cross
btopdiverg --> bull bear top divergence alert in red cross
Pros and Cons
Pros:
1. it can help to see the strength change of a trend in time
2. visual bottom and top divergence alerts are provided
Cons:
1. it disclose the strength change better than price change
Remarks
Bull Bear Convergence Divergence (BBCD) is new.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
[blackcat] L2 Momentum Line Convergence Divergence (MLCD)Level: 2
Background
Momentum indicators are technical analysis tools that can be used to determine the strength or weakness of the stock price. Momentum measures the speed at which stock prices rise or fall. Common momentum indicators are the relative strength index (RSI) and the moving average of convergence divergence (MACD).
Function
L2 Momentum Line Convergence Divergence (MLCD) is one of my innovative indicator which is to differeniate with average of convergence divergence (MACD). So, I named it as Momentum Line Convergence Divergence (MLCD). In order for everyone to be more familiar with its useage, I inherited the traditional MACD expression method, and added golden cross (yellow cross) and dead cross (fuchsia cross) prompts, as well as bottom divergence (lime cross) and top divergence (red cross) prompts.
Key Signal
mtm --> momentum fast line
mtmaux --> momentum slow line
mtmgx --> momentum gold cross in yellow
mtmdx --> momentum dead cross in fuchsia
mtmbotdiverg --> momentum bottom divergence alert in lime cross
mtmtopdiverg --> momentum top divergence alert in red cross
Pros and Cons
Pros:
1. very stable for market price change and trend following
2. visual bottom and top divergence alerts are provided
Cons:
To be found yet
Remarks
Blackcat1402 brand MLCD indicator
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Relative Currency StrengthThis indicator shows the relative strength of the majors and crosses compared to each other. So, if you are taking a EURUSD long, are you taking it because the Euro is strong or the USD is weak or both? How do you know? This indicator will show you how strong a current is compared to the other majors and crosses. So in the EURUSD example, you will know how strong the EUR is compared to NZD, AUD, JPY, CHF, GBP, CAD and USD and how strong the USD is compared to the NZD, AUD, JPY, CHF, EUR, GBP and CAD. You can then make an informed choice as to whether the trade makes sense.
Notice in the examples below how the indicator clearly shows how CHF was weak all day and GBP was strong in the morning but then collapsed in the afternoon.
The indicator functions by taking a set point in the day and comparing how price compares to it for the rest of the day. I set it to Europe open and then take context of how a currency is comparing to that price (verses the other currencies) over the course of the day.
You can use the indicator in 2 ways - you set a currency as a baseline and see how other currencies fluctuate about it or you can see how all the currencies strengths compare to each other.
If you have the full tradingview membership you can have 8 screens and see how each currency compares. if you set the indicator to automatic it will automatically default to the base currency that you compare to OANDA gold.
The general strength is useful as a general overview as to where strength and weakness is in the charts. It works by using gold as the baseline which is a reliable way to compare strengths.
REMEMBER, THIS GIVES SUMMARY DATA. USE IT TO GET MARKET CONTEXT IN ORDER TO IDENTIFY WHERE STRENGTH AND WEAKNESS IS - YOU CANT JUST TRADE FROM IT. It's extremely useful in fast moving markets to easily stay aware of what is happening.