AMRS_LongOnly_PartTimerThis Script is created to back-test the data starting 01/01/2000 based on AMRS strategy.
AMRS is long only strategy. It is based on unique calculation around moving averages and 2 year high price.
There are few strategies for moving average crossovers but AMRS strategy is unique compared to other moving averages strategies as it has very specific below mentioned calculations evolving around moving average and stock price.
AMRS strategy is unique one to generate buying signals when stock price creates new 2 year high and retraces back to 13 day EMA value.
AMRS strategy is unique one having specific calculation for entry signal and exit signal as mentioned below. This strategy gives back testing results to help build conviction on entry/exits if trades were taken in past as per the AMRS rules.
As per AMRS strategy this script generates green arrow on each time when new 2 year high is made and also generates long signal indicated by white arrow when stock price retraces back to 13 day EMA value and price is within 10% range from 2 year high.
This strategy will generate white arrow on the chart for each buy signal when stock price reaches 13 day EMA after first Long signal is generated. These subsequent buy signals can be used for pyramiding.
Entry Signal Logic : 1. Stock should be trading near 2 year high.
2. Stock price should be within 10% range from 2 year high
3. Stock price should be less than or equal to 13 day EMA and grater than equal to 21 day EMA
This AMRS strategy also generates exit signal for already generated buy signal (open position).
Exit signal generated when stock price closes 5% below 21 day EMA or when stock price closes below 20% from most recent 2 year high price.
Exit Signal Logic : 1. Stock price closes 5% below 21 day EMA or stock price closes below 20% from most recent 2 year high price.
2. Since exit logic is based on closing price it is plotted on the chart next day.
3. So when exit signal is plotted on the chart, previous days stock price is either closed below 5% of 21 day EMA or corrected 20% from recent 2 year high.
Note : To Calculate last entry positions % return, by default all positions are getting closed on mentioned end date.
Script parameters :
start date as 01/01/2000 - Constructed from Start Year - 2000, Start Month - 1 Start Date - 1
End date (mostly current date) Constructed from Values in End Year, End Month, End Date.
Initial Capital - Defaulted to 100000
Order Size - 5% of Equity
Pyramiding - 3 orders
Commission - 0.2%
Slippage - 1 tick (Since this strategy exit is on close basis mostly there wont be any slippages)
Exponential Moving Average (EMA)
Williams Fractals StrategyThis indicator made with using Williams Fractals, 20 50 100 Moving Averages and Relative Strength Index. You can easily find entry points by using Long (L), Short (S) signals.
Note : Settings are optimized for BTC:USDT Perpetual 15min TF. For use different pairs or TFs you may need to change settings.
TemaVWAPRSI StrategyExchange: Kraken
Timeframe: 5m
Pair: ETH/USD
If you use this for any other exchange or pair, you'll have to tweak the settings, most importantly are the trailing stop ticks. This strategy is currently in what I would call beta mode. It uses the volume weighted average price indicator, rate of change, two triple exponential moving averages and the relative strength index to find buy and sell signals.
Moving Average Band - Taylor V1A Very Simple Strategy From Moving Average
- Price Breakout Upper Band = Long
- Price Breakout Lower Band = Short
Moving Average Type = Able to Change RMA, EMA, SMA, WMA
Moving Average Period = Able to Change
Upper Band & Lower Band Gap = Able to Change
With Stop Lose & Take Profit = Able to Change
Take Profit On Trend (by BHD_Trade_Bot)The purpose of strategy is to detect long-term uptrend and short-term downtrend so that you can easy to take profit.
The strategy also using BHD unit to detect how big you win and lose, so that you can use this strategy for all coins without worry about it have different percentage of price change.
ENTRY
The buy order is placed on assets that have long-term uptrend and short-term downtrend:
- Long-term uptrend condition: ema200 is going up (rsi200 greater than 51)
- Short-term downtrend condition: 2 last candles are down price (use candlestick for less delay)
CLOSE
The sell order is placed when take profit or stop loss:
- Take profit: price increase 1 BHD unit
- Stop loss: price decrease 2 BHD units
The strategy use $15 and trading fee is 0.1% for each order. So that, in the real-life, if you are using trade bot, it will need $1500 for trading 100 coins at the same time.
Pro tip : The 1-hour time frame for altcoin/USDT has the best results on average.
hayatguzel trendycurveENG
If we are wondering how the trendlines drawn on the hayatguzel indicator look like on the graph, we should use this indicator. Trendlines that are linear in Hg (hayatguzel) are actually curved in the graph.
"hayatguzel curve" indicator has capable of plotting horizontal levels but not trendlines in hg indicator. But "hayatguzel trendycurve" indicator has capable of plotting (on the chart) trendlines in hg.
First of all, we start by determining the coordinates from the trendlines drawn in hg. The coordinate of trendline beginings is x1,y1. In the continuation of the trendline, the coordinate of the second point taken from anywhere on the trendline is defined as x2,y2. In order to find the x1 and x2 values, the gray bar index chart must be open. After reading the values, the bar index chart can be turned off in the settings. The x coordinates of the trendlines will be the values in this gray bar index graph. You can read these coordinates from the gray numbers in the hg-trendycurve setting at the top left of the graph. The y values are the y axis values in the hg indicator.
It should be noted that the ema value in the hayatguzel trendycurve indicator must be the same as the ema value in the hg indicator.
Hayatguzel trendycurve indicator is not an indicator that can be used on its own, it should be used together with hayatguzel indicator.
TR
Hayatguzel indikatöründe çizilen trendline'ların grafik üzerine nasıl göründüğünü merak ediyorsak bu indikatörü kullanmalıyız. Hg'de doğrusal olan trendline'lar doğal olarak grafikte eğriseller.
Hayatguzel curve indikatöründe hg'deki sadece yatay seviyeler grafiğe dökülürken bu hayatguzel trendycurve indikatörü ile hg'deki trendline'lar da grafiğe dökülebiliyor.
Öncelikle hg'de çizilen trendline'lardan koordinatları belirlemek ile işe başlıyoruz. Trendline'ların başladığı yerin koordinatı x1,y1'dir. Trendline'ın devamında trendline üzerinde herhangi bir yerden alınan ikinci noktanın koordinatı da x2,y2 olarak tanımlandı. x1 ve x2 değerlerini bulabilmek için gri bar index grafiğinin açık olması gerekmektedir. Değerleri okuduktan sonra bar index grafiği ayarlardan kapatılabilir. Trendline'ların x koordinatları bu gri renkli bar index grafiğindeki değerler olacaktır. Bu koordinatları grafikte sol üstte bulunan hg-trendycurve ayalarındaki gri sayılardan okuyabilirsiniz. y değerleri ise hg indikatöründeki y ekseni değerleridir.
Unutulmamalı ki hayatguzel trendycurve indikatöründeki ema değeri hg indikatöründeki ema değeri ile aynı olmalıdır.
Hayatguzel trendycurve indikatörü kendi başına kullanılabilecek bir indikatör olmayıp hayatguzel indikatörü ile beraber kullanılması gerekmektedir.
Vin's Playzone Strategy How it works
Playzone is a very simple system, utilizing just two exponential moving
averages. The 'Zones' in which different 'actions' should be taken is
highlighted with different colors on the chart. Calculations for the zones
are based on the relative position of price to the two EMA lines and the
relationship between the two EMAs
How to use
The basic method for using Playzone is to follow the green/red color.
Buy when bar closes in green.
Sell when bar closes in red.
Using it this way is safe but slow and is expected to have around 35-40%
accuracy, while yielding around 2-3 profit factors. The system works best
on larger time frames.
The more advanced method uses the zones to switch between different
trading system and biases, or in conjunction with other indicators.
example 1:
Buy when Yellow-Green and Bullish Divergence between price and RSI is visible,
if not Buy on Green and vise-versa
example 2:
Set up a long-biased grid and trade long only when actionzone is in green
change the bias to short when actionzone turns to te bearish side(red)
(Look at colors on a larger time frame)
"We let the market tell us what to do, Not to outguess what the market gonna do."
7 Moving Averages [Plus]Moving Averages are price based, lagging (or reactive) indicators that display the average price of a security over a set period of time. A Moving Average is a good way to gauge momentum as well as to confirm trends, and define areas of support and resistance. Essentially, Moving Averages smooth out the “noise” when trying to interpret charts. Noise is made up of fluctuations of both price and volume. Because a Moving Average is a lagging indicator and reacts to events that have already happened, it is not used as a predictive indicator but as an interpretive one for confirmations and analysis.
Bollinger Bands (BB) are a widely popular technical analysis instrument created by John Bollinger. The BB consist of a band of three lines which are plotted in relation to security prices. The line in the middle is usually a Simple Moving Average (SMA) set to a period of 20 days (the type of trend line and period can be changed by the trader; however a 20 day moving average is by far the most popular). The SMA then serves as a base for the Upper and Lower Bands which are used as a way to measure volatility by observing the relationship between the Bands and price. Typically the Upper and Lower Bands are set to two standard deviations away from the SMA (The Middle Line); however the number of standard deviations can also be adjusted by the trader.
This script shows 6 moving averages and Bollinger Bands.
Features:
- Standard MA inputs.
- MA type.
- MA period.
- MA source.
- MA resolution (time frame).
- MA Offset.
- Forecasting : forcasted prices are calculated using our MAType and MASource for the MAPeriod.
- Trail: Show only candles not included in the MA calculation.
The color of MA1 depends on the chosen strategy, by default this is the 3EMA strategy. You can also select "Pivot Point Supertrend" or "Ichimoku Trend"
Added "Parabolic Stop and Reverse (PSAR)" . The PSAR is a time and price technical analysis tool primarily used to identify points of potential stops and reverses. In fact, the SAR in Parabolic SAR stands for "Stop and Reverse". The indicator's calculations create a parabola which is located below price during a Bullish Trend and above Price during a Bearish Trend.
Added "Linear Regression Channel" which can be correctly plotted on logarithmic charts. A linear regression channel consists of a median line with 2 parallel lines, above and below it, at the same distance. Those lines can be seen as support and resistance. The median line is calculated based on linear regression of the closing prices but the source can also be set to open, high or low. The height of the channel is based on the deviation of price to the median line. Extrapolating the channel forward can help to provide a bias and to find trading opportunities.
hayatguzel curveENG
When the support resistance study is performed on the hayatguzel indicator, we see that these levels, which are actually horizontal in hayatguzel, are curvilinear when they are plotted on the chart, this is because the hayatguzel indicator uses moving average EMAs.
We can understand the chart more easily by shaping the resulting table in hayatguzel indicator in our minds more easily and seeing these horizontal levels in hayatguzel as curvilinear on the graph.
Let me explain what needs to be done with an example:
The indicator value on top of the yellow box is 13.58 and below of the yellow box of the hayatguzel indicator 5.83. The curves that will occur when we add these values to the hayatguzel curve indicator are shown in green. With the same logic, if we want to see this level, which is the upper blue resistance box on the hayatguzel indicator and coincides with the 67 level, on the graph, we enter 67 for both of the coefficients in the hayatguzel curve indicator. ( Which ema is used in hayatguzel, the same ema value must be entered in hayatguzel curve, ema200 is used in this example )
The result is that the hg curves drawn in green act as support and when the upward movement comes, the hg curve drawn in blue now passes through the 2700s. In other words, we can see that the position is in support and where its target is.
I'd like to show all this in one hayatguzel indicator, but pinescript doesn't make it possible. That's why I had to write this code separately.
TR
Hayatguzel indikatöründe destek direnç çalışması yapıldığında aslında hayatguzel'de yatay olan bu seviyelerin grafiğe atıldığında eğrisel olduğunu görüyoruz, bunun nedeni hayatguzel indikatörünün hareketli ortalama olan ema'ları kullanmasıdır.
Hayatguzel indikatöründeki ortaya çıkan tabloyu kafamızda daha rahat şekillendirmek ve hayatguzel'de yatay olan bu seviyeleri grafik üzerinde eğrisel olarak görerek grafiğe daha çok hakim olabiliriz.
Yapılması gereken şeyi bir örnekle anlatayım:
Hayatguzel indikatöründeki sarı kutunun üstünde indikatör değeri 13.58 ve altında 5.83. Biz bu değerleri hayatguzel curve indikatörüne eklediğimiz zaman oluşacak eğriler yeşil ile gösterildi. Aynı mantıkla hayatguzel indikatöründeki üstteki mavi direnç kutusu olan ve 67 seviyesine denk gelen bu seviyeyi grafikte görmek istiyorsak hayatguzel curve indikatöründeki katsayıların ( coefficient ) ikisine de 67'yi giriyoruz. ( hayatguzel'de hangi ema kullanıldıysa hayatguzel curve'de de aynı ema değeri girilmeli, bu örnekte ema200 kullanıldı )
Burdan ne sonuç çıkıyor peki ?
Çıkan sonuç yeşil ile çizilen hg eğrilerinin destek görevi gördüğü ve yukarı doğru hareket geldiğinde mavi ile çizilen hg eğrisinin şu an 2700 lerden geçtiğidir. Yani hem pozisyonun destekte olduğunu hem de hedefinin neresi olduğunu görebiliyoruz.
Bütün bunları tek bir hayatguzel indikatörünün içinde göstermek isterdim ama pinescript bunu mümkün kılmıyor. O nedenle bu kodu ayrı olarak yazmak zorunda kaldım.
Volume Weighted Super GuppyGuppy Super EMA is a technical indicator that aims to anticipate a potential breakout in the price of an asset. The term gets its name from Daryl Guppy, an Australian financial columnist and book author who developed the concept in his book, "Trading Tactics."
It uses the exponential moving average (EMA) to capture the difference between price and value in a stock. A convergence in these factors is associated with a significant trend change.
I have added Volume Weighting for EMAs and simple workaround if there no volume data.
Moving Average Exponential with Standard Deviation BandThis is standard EMA script available on Trading View and i have just added ability to add a channel based on standard deviation. In addition to it you can enable/disable optional lines from options and it would add 50% levels of upper and under channel. I added 50% as it provide important price levels if you have right settings selected for channel factor.
world stage indexThis is an indicator that expresses the ratio of "stage1" and "stage4" of world index.
40 symbols are as follows
(JAPAN, US, EUROPE, and CANADA)
OSE:NK2251!, DJ:DJI, NASDAQ:IXIC, SP:SPX, XETR:DAX, TVC:CAC40, TVC:UKX, TSX:TSX
(ASIA)
TVC:SHCOMP, SZSE:399001, TVC:HSI, TWSE:TAIEX, BSE:SENSEX, OANDA:SG30SGD, INDEX:KSI, SET:SET
(EUROPE)
INDEX:SX5E, INDEX:FTSEMIB, SIX:SMI, BME:IBC, EURONEXT:BEL20, TVC:AEX, OMXCOP:OMXC25, XETR:0Q5X
(Pacific Ocean)
ASX:XJO, TVC:NZ50G, IDX:COMPOSITE, FTSEMYX:FBMKLCI, BMFBOVESPA:IBOV, BMV:ME, BVL:SPBLPGPT, BYMA:IMV
(Eastern Europe & Middle East)
MOEX:IMOEX, GPW:WIG20, OMXHEX:OMXH25, OMXSTO:OMXS30, DFM:DFMGI, TADAWUL:TASI, OSE:GNRI, EGX:EGX30
The criteria are as follows:
EMA5≧EMA20≧EMA40 : Stage1
EMA5≦EMA20≦EMA40 : Stage4
A.The sum of Stage1 was multiplied by 2.5 and drawn on a scale of 0 to 100, with yellow area
B.The Sum of Stage4 was multiplied by 2.5 and drawn on a scale of 0 to 100, with blue area.
C. The ratio of A/B was multiplied by 2.5 and drawn on a scale of 0 to 100, with red lines.
This idea is from Kojirou Kousi.
40 symbols of this script are partially different from Kojiro kousi's idea.
But he said the difference isn't matter.
「小次郎講師指数」に着想を得た、世界40カ国の株価指数stage状態です。
参考文献は、小次郎講師著書「世界一わかりやすい投資の勝ち方」です。
小次郎講師とは一部異なるシンボルを採用していますが、
多少の違いは余り大した問題では無いと御本人から教わった事があります。
先進国に関してはおそらくほとんど同じだと思います。
stage1の合計の%を黄色、stage4の合計の%を青色、stage1の合計/stage4の合計の%を赤で表示しています。
雰囲気で分かればいいので、正確な数字までは表示しませんでした。
個人的には現状分析以外にも、プラクティス時に世界情勢を把握するのに重宝しています。
ExTreeMe IndicatorThis indicator can plot of 6 time frame ema with pre-calculated length for each interval.
Additionally with EMA, it calculates 6 timeframe RSI and show green zones on the chart. Green zone can be short/mid/long term.
Short term zones(only for scalping) are decided based on first 3 EMAs. Mid term zones are decided based on first 2nd-4th EMAs. Long Term are decided on last 3 EMAs.
Mid term zones are most effective for positional trades.
Green colour is the entry zone. 2 condition will give better chance of a trendy upmove.
1. EMAs have crossover-ed recently and all are very near to each other and current price
2. Green zone appears after long consolidation.
There is other colour zone which indicates RSI is in no man's land(51-49), need to be cautious then.
Exit when white band appears.
This indicator is totally independent of current chart timeframe and stays same irrespective of which time frame you select for your chart.
Creator: DeeJay
Strategy By: Express Tree from NiftyBN
2 EMA Meeting PointThis script will calculate when the next candle needs to close for the moving averages to cross .
If you use EMAs that are far away, the convergence point may be ridiculously far away from the chart. I recommend using ' Scale Price Chart Only ' with this script.
I think you can use this to organize your watchlists if you trade crossovers. If your cross is completely out of the chart, its symbol can be down below, because the cross is unlikely to happen in the next candle.
Good luck!
Up/Down Indicator - DurbtradeA simple but unique indicator to show ONLY whether there is an increase or a decrease in price compared to the previous value.
Also includes a customizable SMA or EMA based "Smoothing Length" variable,
allowing the indicator to show whether the SMA or the EMA of the price
is up or down compared to the previous value.
An offset option is also included if you need it.
Settings :
Personal thoughts :
I wanted to have an indicator that showed ONLY whether the price is UP or DOWN from the previous value.
My logic was that I could have a more accurate perception of general up or down trend direction
if I removed the AMOUNT of increase or decrease happening from moment to moment over time.
From there, I added the SMA/EMA "Smoothing Length" and "Smoothing Type" variables into the script.
By increasing the value of the smoothing length above 1,
the indicator act as a color-changing moving average, except without showing an actual value.
"Smooth Length" acts just like the length of any other moving average...
When the value of the "Smooth Length" is = 1, the indicator shows whether PRICE is up or down.
When the value of the "Smooth Length" is = 50, the indicator shows whether the MOVING AVERAGE with a length of 50 is up or down.
When the value of the "Smooth Type" is = 1, the indicator is SMA based.
When the value of the "Smooth Type" is = 2, the indicator is EMA based.
As you can see in the main chart above, or in the picture below, I show the indicator in 2 different ways...
The indicator on the top shows price up/down action,
and the indicator on the bottom shows the 50 SMA up/down action :
Other key points :
The indicator height can be smashed down as small as possible and still remain 100% functional...
which is very important when chart real-estate is limited.
Here is an example of my main layout setup, with the Up/Down indicator on the top left :
As you can see, it takes up very little space, but still remains fully functional.
In the example above, I have it overlayed on the left chart price panel,
with the price visibility turned off.
If it is overlayed on the price panel like so, and you want to see both the indicator and price,
simply turn the price visibility on to see both.
Since the indicator displays itself merely by changing the color of the background,
layer order has no effect, and the indicator is always drawn in the background.
The Up/Down indicator can also be used in conjunction with other candle types
that sometimes display candle color differently than standard candles, such as heikin-ashi candles.
Just take note that the colors of the indicator may not match the colors of the heikin-ashi candles.
Finally, I looked very hard to find an indicator like this on TradingView, and found absolutely nothing.
I know that it is a simple concept, but I'm honestly surprised I couldn't find anything like it.
I have been using it for awhile now, and I'm proud of the results...
therefore, I'd like to share it with the community, along with my previously published indicators,
in the hope that you find it useful!
Outro :
A) As with my previous indicators,
this one was written while keeping information, color, clarity, chart real-estate, and customization in mind.
B) It is optimized to be displayed on all display setups...
for use on your own personal television, laptop, or cellular phone screen...
and on all chart zoom levels and layout styles.
C) Please feel free to comment your thoughts, critiques, or suggestions. They are all very helpful!
D) Check out my previous pine script indicators if you like this one. They work really well together.
E) I hope that you find this script useful.
F) Enjoy!
// Durbtrade
EMA+MACDA simple script using EMA 25 and EMA 50 with MACD. Enter long when EMA 25 crossover ema 50 and MACD line > 0, enter short when EMA 50 crossover ema 25 and MACD < 0
SSL Hybrid Exit Arrow StrategyBasic concept: Use the SSL Hybrid indicator's EXIT ARROWS to determine trade entry and exit points.
Rules:
Enter LONG trades on BLUE exit arrows
Enter SHORT trades on RED exit arrows
Uses up to 3 DCA orders for trade entry
Sets a stop loss
Does not set any take profit. Relies on opposing arrow to exit current position
When filters are set it affects opening of positions, but opposing arrow will always exit trades regardless of filtering options set
Additional filtering configuration:
If the SSL filter checkbox is checked, then LONG positions can only be opened when SSL1 is below the baseline lower and SHORT positions can only be opened when the SSL1 is above the baseline upper
If the QQE MOD checkbox is checked, then LONG positions can only be opened when QQE MOD histogram bars are BLUE and the QQE MOD line is ABOVE 0 and SHORT positions can only be opened when the QQE MOD histogram bars are RED and the QQE MOD line is BELOW 0
Both SSL and QQE MOD filters may be combined to give stricter filtering, however I find it often prevents entry to too many good trades
SSL Hybrid StrategyStrategy based on the SSL Hybrid indicator by Mihkel00
Designed for the purpose of back testing
Strategy:
Enters both long and short trades based on SSL1 crossing the baseline
Stop Loss calculated based on ATR multiplier
Option to allow moving of Stop Loss to break even on TP1
Option to turn off Stop Loss and Take Profit which will rely on indicator flip to exit from position
Take Profits configurable with up to 5 ATR multipliers and exits percentages (percentages calculated as percentages of original position size, eg. 100 tokens with 3 TPs of 20, 30, 50 would exit the same number of tokens on each TP)
Credits:
SSL Hybrid Mihkel00 www.tradingview.com
SSL Hybrid + QQE StrategySSL Hybrid strategy combining QQE MOD as trade entry filter.
Rules to enter LONG:
SSL1 is under lower baseline lower
QQE histogram bar is blue
QQE line is above 0
Rules to enter SHORT:
SSL1 is under above baseline upper
QQE histogram bar is red
QQE line is below 0
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
EMA DifferenceThis indicator simply calculates the difference between two EMAs (one is EMA-10 and the other one is EMA-20) and shows the amount of difference in form of a histogram chart. When the histogram bars are above zero, it shows you that we have an uptrend, and vice versa. You can use this Indicator in various markets and it is compatible with different time-frames.
Most Power - Smooth EMA Haiken AshiMost Power - Smooth EMA Haiken Ashi
The indicator displays smoothed EMA (5, 10, 20, 50, 100, 200, 1000). Smoothing occurs through the use of Haiken AShi
Horizontal Line At Daily Moving AveragesThis script allows you to see the major daily moving average levels on a smaller time frame.
One challenge with day trading is, when trading on a smaller time frame, you are not paying as much attention to the daily price levels. One solution might be to select a chart layout on Tradingview which allows you to see both the daily and a smaller time frame at the same time. However, this approach takes up valuable screen space. All you are really looking for is the significant daily price level and the price action near that level. This script allows you to merge the 2 goals on 1 chart. You have the smaller time frame open to monitor detailed price action and horizontal lines at the major moving average levels.
Red: 9 EMA
Navy: 20 MA
Green: 50 MA
Blue: 100 MA
Purple: 200 MA