BTC Sentiment analysis RSI 2xEMAThis is a CRYPTO correlation strategy, which is using BTC sentiment with BITFINEX long and short ratios.
WIth them we are making from one side 2 RSI, one for long and another for short. And from another side, we are going to make multiple EMA's, using the ratios for long and short.
Rules for entry
For this scenario I created a long only strategy.
The long entry condition is : we have a crossover of the rsi long ratio with rsi short ratio and long ratio from BITFINEX is above the long EMA and short ratio from BITFINEX is below short EMA.
We exit when we get the opposite condition, in this case we have a crossunder of the rsi long ratio with rsi short ratio and long ratio from BITFINEX is below the long EMA and short ratio from BITFINEX is above short EMA.
If you have any questions, let me know !
Exponential Moving Average (EMA)
EMA Separation CoefficientStrategy: ema difference fast-slow
buy: indicator cross up zeroline
sell: indicator cross down zero line
Strategic Trend By TrendciHoca
Hello everyone, this indicator, which is similar to the Most indicator, which is one of the most used indicators in the market, also has the following features.
1. BB and BS point: HMA 200 bar was used for BB point. The same applies to BS. When the last closing price crosses HMA200 up, BB signals, and when it crosses down, BS signal comes.
2. GO and ATTENTION point : Attention signal should be used when the trend is long and profit can be taken at this point if desired. The Go signal should be used when the trend is short and profit can be taken at this point if desired. EMA and ATR were used to calculate these points.
All signal alarms come embedded in the indicator.
RSI Hidden Divergence + Stochastic + 200 EMA @DaviddTechHey Traders,
This is my first strategy of many I hope. Inspired by a strategy I found on YouTube I wanted to see if it would work with a BOT strategy.
The idea is :
## LONG ##
* When the price is above 200 EMA take only LONG positions.
* Look for Bullish hidden divergence.
* Stochastic crossover to find our entry.
## SHORTS ##
* When the price is below 200 EMA take only SHORTpositions.
* Look for Bearish hidden divergence.
* Stochastic crossunder to find our entry.
You can used a fixed percentage, ATR, HH/LL or a FIB level to take profit.
Everything is very visual and can be connected easily to a bot.
I will be doing a video on HOW-TO setup in a couple of days.
## MUTLI LEVEL PROFITS ##
This will show you on backtest is you take profits at 3 levels however I have not tested on a BOT strategy.
NOTE : This is for educational purposes and please test on a paper account, as I said this is my first strategy.
I will be working and back testing new strategies every week.
- Made with ♥ @DaviddTech
MA CloudMA Cloud - a highly configurable cloud for Moving Averages
Creates a cloud from max. 5 Moving Averages.
Users can freely decide, for each average wether it should be SMA,EMA or WMA and also for the time period.
They shades and colors can be freely chose for each combination of MA's, giving you a maximum freedom to configure your cloud.
Moving Average Ribbon [TheBearFighter]
This code was written using:
•Pine Script Coding Conventions.
This script provides a very useful tool for new community users and professionals. It puts at your disposal a Moving Average Ribbon by hand to graph and easily find the ones with the highest performance. The creation of this script was motivated because in free TradingView accounts there is a limit of 3 indicators by chart, and with this tool you can draw up to 32 MA's at the same time!
Choose one of 10 types of MA´s:
•KAMA Kaufman's moving average.
•HULL Hull moving average.
•TEMA Triple exponencial moving average.
•LSMA Least square moving average.
•DEMA Double exponencial moving average.
•ALMA Arnaud Legoux moving average.
•WMA Weighted moving average
•EMA Exponencial moving average.
•VWMA Volume Weighted moving average.
•SMA Simple moving average.
Use the tooltips to know the lengths of MA´s.
A main characteristic of the script is that the lengths are in days but when changing the lowest timeframes, the same daily resolution is maintained. This gives us extreme precision in intraday timeframes, e.g 30 minutes.
Once this is understood, we can turning the MA´s on/off, and changing the timeframe to our liking.
Available timeframes: M, W, D, 4H, 1H, 30m, 15m, 5m.
Also the MA´s are colored for easy visualization and know if they grow or decrease.
Thank´s to @midtownsk8rguy to let me know more about HEX colors.
Thank´s to @HPotter for his KAMA.
[SCL] Significant Figures Example FunctionThis script consist of a single example function that takes a floating-point number - one that can, but doesn't have to, include a decimal point - and converts it to a floating-point number with only a certain number of significant digits left.
I'm not aware of another script that does this. There might well be a simpler way, in which case please do let me know.
For example, say you want to display a variable from your script to the user and it comes out to something like 45.366666666666666666666667 or whatever. That looks awful when you, for example, print it in a label.
Now, you could round it up to the nearest integer easily using a built-in function, or even to a certain number of decimal places using a reasonably simple custom function.
But that's a bit arbitrary. Suppose you don't know what asset the script will be used on, and so you can't predict what the price is, and what the value will turn out to be.
It could be 0.00045366666666666666666666667 instead. Now if you round it up to 3 decimal places it comes out as 0.000, which is useless.
My function will round that number to 0.0004536 instead, if told to do it to 4 significant digits.
You're free to use this function in your own scripts, including closed-source scripts, without asking permission. Credit to @SimpleCryptoLife would be appreciated.
CCI BBThis indicator is the idea of giorno_4_16 .
It shows some indicator lines in your main chart as following:
SMA300, EMA200
BB 20 1,2,3sigma and middle
BB 300 1,2,3sigma and middle
You should put CCI (12, 14) into your separated chart to use the idea.
It shows arrows for registance trading when:
CCI(12) crossovers -200 or corssunders 200 in recent 6bars,
and the price crosses indicator line of SMA200, EMA200 and BB300 1,2,3sigma.
When CCI crossovers -200, you can condisider buying.
When CCI crossunders 200, you can condisider selling.
You should use this indicator in 1H or 4H.
When an arrow appears in 1H, change timeframe to 4H and check the slope of BB20.
If the slope is gentle, take-profit target is MA20 of 1H.
If the slope is steep(ex. CCI crossovers -200 and 4H BB20 go up steeply), take-profit target is BB20 2sigma of 1H.
Price - Mean Reversion ExpansionA simple indicator, to plot the quantitatively the reversion and expansion of price from a set of means.
A green bar plots prices above the set of means. A bar plots prices below the set of means. A blue bar plots price entangled in the means. The height of the bars denotes the far-ness from the set of means.
A blue envelope over the bars is the average of this reversion/expansion. A "crossover" of any bar (red/green) over this envelope is indicated by a "green dot" a "crossunder" of any bar (red/green) under this envelope is indicated by a "red dot".
The small trend strength table (when enabled) on the right side below show in a easy manner the data presented in the " Mean Angles " indicator. Refer to description there for more details.
Multi HMA Lines by NB(ENG)
The Hull Moving Average (HMA) line responds quickly to volatile markets,
sometimes it provides more accurate information than the Exponancital Moving Average (EMA).
In particular, the 200 HMA line is easy to decide the overall trend of the market,
and it serves the basis entry position.
So I made indicator that provides these HMA lines into various periods so that they can be checked in one.
In addition, a custom TimeFrame HMA line function has been added so that you can check
not only the TimeFrame that meets your trading standards, but also the HMA of the other TimeFrame that you custome sets.
For example, if you want to see the 200 HMA of the 60-minute bar, you can select and set the different TimeFrame in the Multi TF section below.
For reference, 200 HMA at the 15-minute bar is the same value as 50 HMA at the 1-hour bar, so as shown in the following chart,
I use 4 HMA lines at the 15-minute bar : 20 HMA, 50 HMA, 200 HMA, and 200 HMA from 60-minute TimeFrame.
We hope it will help you in your trading. :)
(KOR)
HMA(Hull Moving Average) 라인은 변동성이 심한 시장에 빠르게 반응하며,
때때로 EMA(Exponancital Moving Average)보다 더 정확한 정보를 제공하곤 합니다.
특히 200HMA 라인은 시장의 전반적인 추세를 판단하기에 용이하며,
큰 틀에서의 포지션 진입 근거의 기반이 됩니다.
이러한 HMA 라인을 다양한 기간으로 나누어 하나의 지표에서 확인 할 수 있도록 만들어 보았습니다.
아울러, 자신의 매매 기준에 맞는 타임 프레임은 물론, 다른 타임 프레임의 HMA도 확인 할 수 있도록
커스텀 타임 프레임 HMA 라인 기능을 추가로 넣었습니다.
예를 들어, 15분 타임 프레임이 본인 매매 기준표이지만, 60분 봉의 200 HMA도 보고 싶다면
밑의 Multi TF 항목에서 해당 타임 프레임을 선택 후 설정하시면 됩니다.
참고로 15분 봉에서의 200 HMA은 1시간 봉에서의 50 HMA과 동일한 값이므로 저는 다음 차트 그림과 같이
15분 봉에서 20 HMA, 50 HMA, 200 HMA, 그리고 1시간 봉에서 200 HMA 이렇게 4개의 라인을 참고 하고 있습니다.
여러분 거래에 도움이 되기를 바랍니다. :)
Mean AnglesThis indicator plots the trend of the angles made by the chosen means. This trend when analysed over multiple timeframes as well as different lengths can give an indication of the trend in short medium and long term.
For example, in any particular timeframe, when the 20 EMA turns a negative arctan, it signifies that on a shorter timeframe (than the current timeframe) is turning downwards in price. When 50, 100 and 200 EMA turn negative, it confirms the trend reversal. Similarly the 20 EMA will be the first one to turn "Up" or positive to indicate a possible trend reversal on the upside.
The angle of the means will oscillate between +pi/2 and -pi/2.
0 means - EMA is flat
+pi/2 means - almost vertical price rise
-pi/2 means - almost vertical price fall
Between -pi/2 and 0 means EMA is sloped downwards. Moving from -pi/2 to 0 means EMA slope is turning up. Moving from 0 to -pi/2 means EMA slope is falling down even lower and faster.
Between 0 and +pi/2 means EMA is slopped upwards. Moving from +pi/2 to 0 means EMA slope is falling down. Moving from 0 to +pi/2 means EMA slope is turning up even higher and faster.
EMA StrategyThis is a simple EMA cross strategy. This script was published by CaptJava. I added in the ability to check off a box and allow shorting, the ability to select a back testing date range and also the ability to enter the buy message and sell message in the properties. You then create the webhook alert and put only this in the message:
{{strategy.order.alert_message}}
That will pull in your alert message dynamically.
I may add more features to this over time.
EMA Bounce StrategySimple strategy that checks for price bounces over an Exponential Moving Average. If the CLOSE of the candle bounces
back from having it's LOW below the EMA then it's a Bull Bounce. If the CLOSE of the candle bounces down from having it's
high above the EMA then it's a Bear Bounce. This logic can be reversed.
Tocorin_MTF_MA7 MAs (SMA or EMA) can be displayed in each period.
MTF display is performed only at 5m, 1h, and 4h.
The upper MAs to be displayed are as follows
5m: 1h, 4h, and 1D
1h: 4h and 1D
4h: 1D
The MA line style is stepline and circles to make it easier to see.
You can change it in the settings as you wish.
--
各時間足で 7本の MA(SMA or EMA) 表示が可能です。
5m, 1h, 4h の時だけ MTF 表示を行います。
表示する上位 MA は下記の通り
5m: 1h と 4h と 1D
1h: 4h と 1D
4h: 1D
見やすくするためにMA の線のスタイルを stepline と circles にしています。
設定で任意に変更してください。
Musashi_HarmonicPricerMusashi HarmonicPricer was designed to my a tool for my personal trading strategy, and help me plot what I call ''Harmonic Structure', which is just a sophisticated way of using Fibonacci ratios based on the Elliott Wave Principle, Harmonic Patterns, and market structure.
- A distinctive element will be the integrated Fibonacci cluster tool, which plots automatically retracements and extensions of .272 (red) and .618 (purple) ratios, using the last two significant swings. For powerful usage, adjust the timeframes until they group into clusters or adjust the setup. You can also adjust the settings and select to plot only retracement, only extensions, both (default), the deviation (default = 7), and the historical approach.
- To be used wisely properly, you require multi-timeframe analysis, reason why you will find Monthly and Yearly VWAPs, as they won't change while you're switching timeframes, and fib-based EMAs to provide trend and dynamic support.
- Finally, the indicator will plot in price Hidden and Regular divergences for any oscillator you have on screen.
Have a good day.
GMMAs v2.0 CRYPTO [badshah_e_alam]Hello Traders ,
The GMMAs v2.0 CRYPTO strategy stands for gap modified moving averages designed for cryptos. This is a non Repainting Indicator.
This strategy version is a advanced and modified to one of my previously published indicator named as "gap modified moving average".
I am using my Modified Moving Average indicator for a while. I always wanted to add some more information to moving
averages and made some modification to Moving averages.
The additional Information I have added to the Moving Average helps it to act more quickly based on the price of that
particular asset.
How is strategy gives signals?
when the GMMA'w cross over or cross under the GMMA'y than a trade is taken depending on the filter status.
Info about the settings :
The default setting is for 11m ETHUSD , it works with other cryptos and other timeframe as well . For other timeframes it need to be fine tuned and need little change.
The first category is for the selection of Moving average to be modified and the source to be used for that moving average .
I have added seven moving averages to choose between. SMA works good for me , you can choose and play with other MAs.
following are the option to choose MAs
1.EMA
2.SMA
3.HMA
4.RMA
5.WMA
6.VWMA
7.SWMA
Next option in setting is GMMA'y and GMMA'w :
these two settings define the length and lookback period of the MA you have choosed above.
The length is similar to the length of the moving average chosen to be modified.
The lookback option will look for that number of bars for the modification.
GMMA'w is more sensitive than the GMMA'y. So make sure that the setting input of the GMMA'y is significantly larger than the
GMMA'w.
FILTER:
I have added TradingView inbuilt SUPERTREND as a filter in the strategy, it works very good in filtering out false trades
you can enable/disable it in the settings.
EXIT strategy:
The exit Strategy is based on ATR, Take profit and SL are decided by the ATR in the SL/TP setting option. You can change the RR ratio in the setting.
The backtest settings are as follow:
Initial capital:10k
Initial Commission = 0.000
Initial Pyramiding = 0
Reference :
Thanks to pinecoders and Tradingview community.
my previous gap modified moving average version is :https://in.tradingview.com/script/e3WestBa-Gap-Modified-Moving-Average/
watermark added from:
color gradient framework picked from :https://in.tradingview.com/script/hqH4YIFa-Color-Gradient-Framework-PineCoders/
DISCLAIMER
Any and all liability for risks resulting from investment transactions or other asset dispositions carried out by the user based on information received or a market analysis is expressly excluded by me.
All the information made available here is generally provided to serve as an example only, without obligation and without specific recommendations for action. It does not constitute and cannot replace investment advice. We therefore recommend that you contact your personal financial advisor before carrying out specific transactions and investments.
Do your own research and Risk management before taking any trade.
Aggregate BTC Volume + EMA Strat// This strategy buys when the price crosses the Fast EMA. It can go long only
// when the price is above the slow EMA and short when is below. The exit
// is determined by volume spikes, when the volume is greater than the Volume
// MA multiplied by the assigned input multiplier. Thanks to MartinShkreli
// for the Aggregated BTC volume. There is also a Maximum Loss filter which
// should be modified depending on the traded market.
4 MA Strategy + Position Management// This is a simple crossover Moving Average strategy, good for long term crypto trades.
// It buys when the MA "X" crosses up the MA "Y", viceversa for shorts.
// Both MAs are selectable from the Inputs section in the front panel.
// There is also a Position Management option thats
// sizes positions to have the same USD risk (using leverage) on each trade,
// based on the percentage distance to the stop loss level.
// If you turn this option on you will see how the profit
// grows exponentially while the drawdown percentage almost remains the same.
255 EMA Strategy//--- From 15 Trading Examples by Trader Alyx ---
// Seems like this strategy works better if we reverse the EMA filter logic.
// "Description: This basic scalping strategy allows you to enter the market based upon sentiment
// provided by the EMA, set at 255 periods. When price is trading below the 255 EMA, you would
// look to enter a LONG BUY positions, and when price is trading above the 255 EMA, you would
// look to enter a SELL SHORT position. The MACD lagging indicator will show you clear signals for
// when to do this. When the MACD lines cross in a bullish manner and price is below the 255
// EMA, buy. When the MACD lines cross in a bearish manner and price is above the 255 EMA,
// sell.
// NOTE: Make sure that price is trading away from the 255EMA before entering a LONG or SHORT
// position. As you can see in the chart below, the clearest signs for trade entry were presented
// when price was trading AWAY from the 255EMA"
Natural Moving Average [CC]The Natural Moving Average was created by Jim Sloman (Ocean Theory pgs 63-70) and this is the one of the best moving averages you will find! This is one of the most adaptive moving averages that I have ever seen that accounts for all types of volatility. I have included a default value of 40 for the length so you can see just how close this moving average sticks to the underlying price movements. Feel free to try out your own lengths to see what you like best. I have included strong buy and sell signals in addition to normal ones so darker colors mean strong signals and lighter colors mean normal ones. Buy when the line turns green and sell when it turns red.
Let me know if there are any other scripts you would like to see me publish!
SB Master Chart v5 (Public)SB Master Chart v5 is the latest progression of the SB Master Chart series of charts.
The original SB Master Chart and its successors was designed to be a visual aid for the savvy investor. The original concept was designed to provide valuable information so decisions could be made at a glance with utmost confidence.
As the chart progressed through versions, it has slowly shifted the responsibility of decision making from the trader to the indicator. In this version of the script, we have updated the backend decision code. The script has 3 distinct personalities coded to compliment each other, as well as keep the others in check..
The first personality is the buy algorithm. The buy personality is based on two conditions. The first algorithm first determines a trend, then it waits for a confirmation. The personality is comprised of the following indicators.
EMA 7
EMA 14
MACD
Stochastic
RSI
By default, the first personality has its visual settings disabled. Its still working, its just not displayed on the chart. It can be enabled in the settings. The background colors designate trend and confirmation.
The second personality is stubborn and its committed to making a profit. Its a hard line in the sand that configurable by you the user. Its the take profit/trailing take profit setting. It will not let other personalities sell for less than these configured values. The visual component of personality two is represented by black dots. This serves to showcase its minimum profit target when opening a trade and a trailing stop loss when the price exceeds the minimum profit target.
The third personality is the guy that does the dirty work that nobody wants to admit they do. This personality is based on the original SB Master Chart algorithm. This personality takes over when the first personality is unable to turn a profit. This personality goes to work finding appropriate places to dollar cost average. There are two settings that affect this personality.
DCA %
Risk Multiplier (use extreme caution, this could cause a margin call if used inappropriately).
DCA percent setting restricts this algorithm from buying when the price has not fallen below this threshold.
Risk Multiplier instructs this algorithm how much positions/qty to buy when it buys. At 2x, the algorithm will buy enough shares to double its current position, at 3x the algorithm will buy enough shares to triple its current position.
The visual representations of the third personality are that of red, orange, yellow and green. Red means overbought. When an orange appears just prior to a red, that orange means overbought with volume. Green means oversold and an orange preceding a green is an oversold with volume. Both the red and green represent an possible trend reversal and that's the signal to buy when its green.
This personality is comprised of the following indicators:
RSI
Stochastic
MACD
Bollinger
Volume
The code also features 3 modes. Altering the mode setting changes the way the personalities work together (or do not work together).
Normal
Aggressive
Buy the Dip
Mode Normal works exactly like described above. Each personality has its own duty and they do not interfere with each others work.
Aggressive mode adjusts the dynamic and both the first personality and the third personality share an equal part in opening starter positions.
Buy the Dip mode prevents personality one from buying. Since personality one only buys uptrends, you will never see it buying a dip. This mode puts personality 3 in the spotlight. All position are typically opened during a fast/quick market decline. Personality three is still bound by the rules of personality 2, but its responsible for buying and dollar cost averaging.
I have also included labels for every buy/sell. A green label is the script making its first purchase, yellow is points where it decided to dollar cost average and the red is where it chose to deleverage by closing out all its positions. Nothing prevents the algorithm from buying immediately after a sell, this is by design because we do not want to miss out on an uptrend, but we also do not want to be caught with too much leverage.
Also included vital statistics on the top right of the chart.
Open Positions
Cost Basis
Current Gain/Loss
Minimum Profit Target
Trailing Stop Loss
Total Trades to Date
Maximum Positions/Qty to Date
In the bottom right of the chart, I have the user configurable settings. This is important so a user can at a glance see the settings of the chart without having to open the options menu.
Together, all three personalities form a COMPLETE trading system. The system tracks purchase quantity, cost basis from the first buy, adjust with each new buy and calculates the running profit from the begining of the date set in the settings if it were to have bought and sold at every signal. The public version of the script requires the trader to use the script in real time watching for buy and sell opportunities. The private subscription version of the script has custom alerts that can be configured to alert the user on when to buy and sell and also gives the user appropriate trailing stop loss settings to automate the trading process.
I want to name the personalities at some point in time for the novelty factor, but I wanted to release the script as soon as possible for others to enjoy, so they are nameless at this point. If you have suggestions, please contact me with your suggestion. I will credit the person with the best personality with a free subscription to the private version of this indicator.
As always, understand the risks of trading and trade responsibly. Nothing in this script can predict the future. Past results do not guarantee future performance
TFi Price Action Resampling Filter V1 - FULLThe script is resampling the price based on its range/price-action and creates an alternative filter to smoothen price movements.
Overview of features:
Optional stop-loss
Optional flags to control the position entry
Optional flags to control the position exit
Built-in backtesting engine with start balance, position size and pyramiding; each year will be evaluated separately
Inputs for a percentage entry and exit slippage, entry/exit and daily funding fees
Configurable alerts, which follow the exact position of the entry/exit marker
Alert messages contain predefined trading instruction to execute orders via Alertatron or TradeFab's proprietary trading server, or can be defined by the user
The script renders a performance/status table, which shows the current position status and result of the built-in trading simulation results.
It shows the following statistic values:
Current position PnL - also background turns green if position is in profit and red if in loss
Average entry price and number of positions
Current percentage distance to the optional stop-loss level
Current Maximum Draw Down
Number of wins and losses and the win/loss ratio per year and overall
Profit and loss amount, paid fees per year and overall
Profit-ratio and Maximum Draw Down per year and overall
Balance and ROI per year and overall
hammerCandle & starCandleIn this scrip we have combine Pinbar Candlesticks calculated using Fibonacci, the bullish hammer candlestick and bearish star candlestick with EMAs and ATR.
I have used 12 Hour time frame which works well EUR/USD, this script works well on higher time frames such as Daily, 12 hours etc.
I have used 1.5 times the ATR as the stop loss and 1 times the ATR as the take profit as these risk to reward ratio gives us the best results for the 12 hour time frame for EUR/USD. Past result are not a prove of performance of the future.
I have added 1 for slippage and 1 for commission.
This script contains AutoView syntax and is fully automated if you connect TradingView to AutoView and a broker, prefebly Oanda.
This script uses two exponential moving averages for trend detection and Average True Range , ATR for stop loss and take profit targets. All of these setting are adjustable.
We only trade with the trend if the 50 period exponential moving averages is above the 200 period exponential moving averages, if a hammer candle is formed for entry.
Likewise with sell trade if a star candle is formed for entry and if the 50 period exponential moving averages is below the 200 period exponential moving averages.
This script does not trail your stop loss as I have noticed it does not give me good results. Stop loss is a fix stop loss based on Average True Range and so is the profit target.
This script has risk management, it risk a certain percent of the inputted capital amount in the setting. See settings for more details.
Note: Due to auto risk management this script only works on Forex.
Green line is 50 period exponential moving averages and red line is the the 200 period exponential moving average . Blue line is stop loss for long trade and black line stop loss for short trade.
Please trade at your own risk, all the setting in the script are adjustable for you to test before trading.
Many Thanks,
Honet Trader