sma RSI & sudden buy and sell Strategy v1This strategy uses mostly three things:-
1. average RSI (sma rsi over a period)
2. sudden buy and sudden sell (usually to infer the change in trend or direction)
3. various EMAs ( used as a filter)
I mostly build it to work on a 3min crypto chart but it should work on any timeframe or any symbol.
Settings - Length -RSI length (hardly needed to be changed but sometimes it doubles the net profit)(+/-2)
instant length - a sudden increase or decrease in the price calculated by the length of RSI (+/-10)
Bars - No of candles to verify before starting /closing the strategy (+/-20)
Lookbackno2 - another variable to verify ema opening/closing (hardly needed to change)
emas - values of different EMAs (you can change if you want but I don't recommend it though)
over40 and over60 - the value of overbuying and overselling(+/-10)
In future, I will probably add ADX or use machine learning to filter out results
It works well considering 0.05% commission per entry and exit (total of 1% per trade)
you can message me for any query or suggestions.
震盪指標
BTC Cap Dominance RSI StrategyThis strategy is based on the BTC Cap Dominance RSI indicator, which is a combination of the RSI of Bitcoin Market Cap and the RSI of Bitcoin Dominance. The concept of this strategy is to get a good grasp of the bitcoin market flow by combining bitcoin dominance as well as bitcoin market cap.
BTC Cap Dominance (BCD) RSI is defined as:
BCD RSI = (BTC Cap RSI + BTC Dominance RSI) / 2
Case 1 (Bull market):
Both Cap RSI and Dominance RSI values are high
Case 2 (Neutral market):
Cap RSI is high but Dominance RSI is low
Cap RSI is low but Dominance RSI is high
Case 3 (Bear market):
Both Cap RSI and Dominance RSI values are low
When the BCD RSI value closes the candle above the Bull level, it triggers a long signal and when the value closes below the Bear level, it triggers a short signal.
(Note) Please note that TradingView's market cap symbols (CRYPTOCAP:TOTAL and CRYPTOCAP:TOTAL2) started in January 2020, so strategy backtesting is possible from this point on.
(Note) Since the real-time BCD RSI value does not come out with this strategy, it is recommended to use it together because the current value can be known and the long-short signal can be predicted in advance by using a separate BCD RSI Index together.
If "Use Combination of dominance RSI ?" is not checked in addition to the recommended default value of the strategy, the recommended values are Length (14), Bull level (74), Bear level (25).
_______________________________________________________________________
이 전략은 비트코인 시가총액의 RSI와 비트코인 도미넌스 RSI를 조합하여 만든 BTC Cap Dominance RSI 지표를 기반으로 만들어졌습니다. 이 전략의 컨셉은 비트코인 시가총액뿐만 아니라 비트코인 도미넌스를 조합함으로써 비트코인 시장 흐름을 잘 파악할 수 있도록 하는 것입니다.
BTC Cap Dominance (BCD) RSI는 다음과 같이 정의하였습니다.
BCD RSI = (BTC Cap RSI + BTC Dominance RSI) / 2
Case 1 (강세 장):
Cap RSI와 Dominance RSI 값 모두 높은 경우
Case 2 (횡보 장):
Cap RSI는 높지만 Dominance RSI는 낮은 경우
Cap RSI는 낮지만 Dominance RSI는 높은 경우
Case 3 (약세 장):
Cap RSI와 Dominance RSI 값 모두 낮은 경우
BCD RSI 값이 Bull level 위에서 캔들 마감할 경우 long 신호를 트리거하고 Bear level 아래에서 캔들 마감할 경우 short 신호를 트리거합니다.
(주의) 트레이딩뷰의 시가총액 심볼들 (CRYPTOCAP:TOTAL과 CRYPTOCAP:TOTAL2)이 2020년 1월부터 시작하였으므로 이 시점부터 전략 백테스팅이 가능한 점을 유의하십시오.
(주의) 이 전략은 실시간 BCD RSI 값이 나오지 않기 때문에 별도의 BCD RSI Index를 함께 사용하면 현재 값을 알 수 있어 롱숏 신호를 사전에 예측할 수 있으므로 함께 사용하기를 권장합니다.
전략의 추천 기본값 외에 "Use Combination of dominance RSI ?"를 체크하지 않는 경우 권장하는 값은 Length (14), Bull level (74), Bear level (25) 입니다.
Stochastic & MAThis trading system comes from the experience of having a "fast" signal for entry at low prices (such as the stoscastic) and then "following" the stock with a "slower" indicator such as the exponential moving average. Both the input and output signals are filtered.
The use of the trading system only carries out long operations and has been tested on shares and ETFs, including indices, on daily bases (End Of Day).
ENTRY CONDITION: when stochastic's k is higher than d (on the default value of 21 periods) we enter the lower part of the oversold, to which we apply a filter or the confirmation that the closing of the day of the crossing is higher than that of the n -th previous bar (the 2nd previous bar recommended).
Other default settings are k = 6 and d = 4; the oversold level is also customizable (recommended = 25).
EXIT CONDITIONS: once the entry has "gone well", we follow the upward trend of the stock not with a stochastic oscillator - which tends to exit too soon, especially in case of strong trends - but with a simple moving average exponential (by default at 38 periods). Also in this case a filter is added, that is, k must be> to a filter threshold (recommended = 65) which is used to distinguish the decline between a "physiological" tracking. "(k drops" slowly "together with the approach of prices to the moving average) from a more" violent "tracking (prices are below the moving average and k consequently fall" suddenly ", in a few bars).
MONEY MANAGEMENT: 13% stop loss inserted (the physiological level of tracking of the shares is generally max 8-12% so we also consider a 1% margin due to trading). For more volatile stocks, the level can be extended to 20%.
LEVERAGE: the default value is equal to 1, but it is advisable, for simulations on shares, to use higher levers (x2, x3, ...) if you trade the relative CFD or on the index in case of buying and selling of Leveraged ETFs (e.g. LEVMIB which is 2x leveraged ETFs on Italian index).
R3 ETF StrategyThis strategy is a modification of the “R3 Strategy” from the book "High Probability ETF Trading" by Larry Connors and Cesar Alvarez. This RSI strategy is for a 1-day time-frame and has these 3 simple rules:
Criteria:
The price must be above the 200 day moving average.
The 2-period (day) RSI drops 3 days in a row.
The 2-period RSI must have been below 60 3 days ago and below 10 today.
Entry and Exit:
If the 3 rules above are true, then buy on the close of the current day.
Exit on the day's close when the RSI crosses above 70.
How it works :
The Strategy will buy when the buy conditions above are true. The strategy will sell when the RSI crosses above 70. The RSI period/length, and RSI entry/exit criteria thresholds have all been coded to be adjustable with inputs.
Plots :
Blue line = 200 Day EMA (Used as Entry Criteria)
Disclaimer: Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
ReversionStrategyThis strategy aims to identify condition of exhaustion to trade market reversal. It uses multiple indicators to enter a position. It uses following indicator:
1. RSI
2. ATR
Functionality of the Multi-Indicator:
1. RSI:
If RSI value is more then 70(input parameter) then market is over-brought. When less than 30 (input parameter) then market is over sold. Over brought or over sold market are good to play reversal.
2. ATR:
If current bar atr is more than 20 period (input) atr then it indicates over extended move.
3. Candle structure:
If a big candle closes near (within 10%) to its high then it indicates exhaustion. Same when big candle closes near to lows.
The combination of above 3 identifies buy or sell condition. Stop loss is 1.5 times atr. These parameter are input.
Sell condition:
1. RSI is more than 70
2. Current bar ATR is more than 20 perios ATR
3. Candle closes within 10% of its high.
If above 3 conditions are met on a candle then it indicates exhaustion of up move and sell order should be opened on next candle.
Buy condition:
1. RSI is less than 30
2. Current bar ATR is more than 20 perios ATR
3. Candle closes within 10% of its lows.
If above 3 conditions are met on a candle then it indicates exhaustion of down move and buy order should be opened on next candle.
Acrypto - Weighted StrategyHello traders!
I have been developing a fully customizable algo over the last year. The algorithm is based on a set of different strategies, each with its own weight (weighted strategy). The set of strategies that I currently use are 5:
MACD
Stochastic RSI
RSI
Supertrend
MA crossover
Moreover, the algo includes STOP losses criteria and a taking profit strategy. The algo must be optimized for the desired asset to achieves its full potential. The 1H and 4H dataframe give good results. The algo has been tested for several asset (same dataframe, different optimization values).
Important note:
Backtest the algorithm with different data stamps to avoid overfitting results
Best,
Alberto
3SmmaCrossUp + Fractal + RSIThis script is a combination of 3 smoothed moving averages, and RSI. When moving averages are aligned upward (downward) and RSI is above (below) 50 and a down (up) William fractal appears, it enters long (short) position. Exiting from long and short entries are defined by StopLoss and TargetProfit.
Fear and Greed Index StrategyA losing strategy. The script is needed for demonstration purposes. Do not use the Fear and Greed Index.
Indicator
The black line shows the values of the Fear and Greed Index.
The index values are not updated!
Available values are from 01-01-2020 to 30-01-2022.
Settings
You can change the thresholds for fear and greed. The default values are 25 for fear and 75 for greed. These are the values recommended by the original authors of the Fear and Greed Index.
Background
If the index value is 75 or more, the background color is lime.
If the index value is 25 or less - red background color.
If index value is between 25 and 75 - no background.
Strategy
If the index value is 25 or less - open a long position (and close a short position).
If the index value is 75 or more - open a short position (and close a long position).
Reversal strategy.
[Crypto] Autotrade 2.0* Auto quantity & commission = 0.06 (Binance future fee)
1. H4 timeframe: Supertrend indicator
- Long when the closes candles is above the green line.
- Short when the closes candles is below the red line.
2. H1 timeframe: Supertrend indicator
- Long when the closes candles is above the green line.
- Short when the closes candles is below the red line.
3. How signals work?
a. Short position:
- Supertrend 4h: Short, main trend.
- Wait for a corrective waves (long)
- Breakout the long corrective waves to sell (Short) follow the main trend (H4)
a. Long position:
- Supertrend 4h: Long, main trend.
- Wait for a corrective waves (short)
- Breakout the short corrective waves to buy (Long) follow the main trend (H4)
4. Backtest result (49 pairs) from Binance broker.
- 8 pairs is winrate > 60%.
- 23 pairs is winrate > 55%.
- 13 pairs is winrate > 52%
- 5 pairs is winrate
AVG Stochastic Strategy [M30 Backtesting]1. AVG Stochastic Calculate
1.1 AVG %K is calculated by apply EMA with smooth K period on Average of Original Stochastic %k & %d
+ avg_k=ema((%k+%d)/2,smoothK)
1.2 AVG %D is calculated by apply EMA with %d period on AVG %K
+ avg_d=ema(avg_k,periodD)
2. Parameter
+ %K Length: 21
+ %K Smoothing: 3
+ %D Smoothing: 3
+ Symbol: BTC/USDT
+ Timeframe: M30
+ Pyramiding: Maximum 3 orders at the same direction.
3. Signal
3.1 Buy Signal
+ Entry: AVG %K crossover AVG %D and AVG %D < 20
+ Exit: AVG %D > 80
3.2 Sell Signal
+ Entry: AVG %K crossunder AVG %D and AVG %D > 80
+ Exit: AVG %D < 20
KDJ Strategy @ionvolutionBuys if there is crossover in J and D and the crossover is above an SMA defined as an input parameter
Sells if the close is below the SMA or there is a crossunder in J and D
The KDJ calculation is done using ll21LAMBOS21 script. I added start date, end date, stop loss margin and stop profit margin to ease the simulation on diferent conditions of the market.
Tested on BTCBUSD pair. Gives good results in 30m candles with K period = 7 and D period = 3, but also works fine with K period = 14 and D period = 8. It works fine when market is bullish and gives false signals in flat markets. I just developed long strategy, as it is developed to operate in SPOT trading.
CDC action zone + WaveTrend By Nussara (strategy)This version combines a famous indicator CDC Action zone V.2 and WaveTrend together.
When the WaveTrend cross below -35, it is an indication of oversold. The indicator will show a purple line on top until the WaveTrend is greater than 53.
Buy condition.
1. Purple line appears on the top indicator.
2. CDC Action zone - fast EMA crossover slow EMA.
Sell condition
1. CDC Action zone - fast EMA crossunder slow EMA.
This indicator is Suitable for a 1DAY time frame or more.
Pumpkin Soup Modified Indicator[Public]This trading strategy is a multi-divergence trading technique using central oscillators such as MACD, SMI, Stochastic, and RSI and MAs (EMA, SMA, WMA) and channels (Bolinger, Caltner, and Doncian).
Only the parts that can be disclosed based on personal sales strategies can be used.
The usage time is at least 1 hour to 1 day. (I recommend the 8 hour stick starting from 3 o'clock)
The MACD ma part is the sensitivity part of the signal, so please use it if necessary.
Background Color: The image of the upward and downward markets is shown in the background.
-Red, green: Downfall, upfall
-Orange, yellow: Short hit section
-Silver, black: Beware of buying and selling.
Middle value (Support Resistance): It represents the sales base of the stock bar where long and short occur, starting from the peak where diversity occurs.
-Red and green lines represent resistance and support, and yellow and blue lines represent short-term sections used for scalping.
MA was used by integrating the MA series in combination.
-The required length of MA is 5 pieces, and I wrote the length I use.
This strategy was used to raise the invitation-only indicator as a strategic indicator before raising it.
(There's no alarm because it's a strategic indicator.)
------------------------------------------------------------------------------------
이 매매 전략은 MACD, SMI, Stochastic, RSI 등 센터드 오실레이터와 MAs(EMA, SMA, WMA)와 채널(볼린저, 캘트너, 돈치안)을 이용한 다중 다이버전스 매매기법입니다.
개인적인 매매전략을 근본으로 공개할 수 있는 부분만 사용할 수 있게 올립니다.
사용시간대는 최소 1시간봉에서 1일봉입니다. (3시봉부터 8시간봉을 추천드립니다)
MACD ma 부분은 시그널상 민감도부분으로 필요시 사용하시길 바랍니다.
Backbround Color : 상승장과 하락장에 대한 이미지를 배경으로 나타내었습니다.
빨간색, 초록색 : 하락장, 상승장
주황색, 노랑색 : 단타 구간
실버색, 검은색 : 매매 주의 구간
Middle value(Support Resistance) : 다이버전스가 생기는 봉을 기점으로 롱과 숏이 발생하는 주가봉의 매물대를 나타냅니다.
빨간선과 초록선은 저항과 지지를 나타내며, 노란선과 파란선은 스캘핑용으로 사용되는 단기 구간을 나타냅니다.
MA는 MA계열을 복합적으로 통합하여 사용하였습니다.
필요한 MA의 길이는 5개정도로 제가 사용하는 길이로 작성하였습니다.
본 전략은 인바이트 온니 지표 올리기전 전략 지표로 올리는 용도로 사용되었습니다.
(전략 지표라 알람이 없습니다.)
※ 전략지표 매매 포인트에서 매매 물타기 불타기 적용
Kitti-Playbook Simple Grid Simulation Long Only 25 ======== Basic Grid Trade =====================================
A) Objective : To visualization the Simulation of Simple Grade trading system (Long only)
: to study Entry and Exit ( Price and Time )
: to study portfolio optimization
: Dashboard to monitoring
Open Trade Close Trade : Grid by Grid
Number of Positions : Grid By Grid
Cash Flow
b)Specification.
:Long Only:
Open Long when Price Cross "Grid Line_N" Down in Range
Close Long when Price Cross Over "Grid Line_N + 1 Interval " in Range
:Interval : (Top - Bottom) / Grid Number
:Range : Top - Bottom X Finish time - Start Time
:Limit Grid Number = 3 - 25 intervals ( Limit by Time Processing )
c) Program Flow Chart
1) Initial Strategy Setting
2) Initial Input Setting
3) Create Trading Zone
4) Crate Long - Close Signal
5) Run Strategy Entry and Exit
6) DashBoard
TEMA/HMA/VWMACD - Short Strategy 4HAs we can discover by studying the history of BTCUSD, the fall is always swift. Confirmation of this - today's collapse. In this strategy, an attempt is made to catch such drop by using quick entry and quick exit.
Let's describe what this strategy consists of:
• TEMA (you can find this strategy separately on this page or on platform)
• VWMACD
• HMA
• Take-profit and Stop-losses
Logic:
Firstly we VWMACD (the difference between VWMACD and simple MACD is only in the way of calculating moving average) and plot it as a histogram.
Then HMA is adding as a trend filter. For easy understanding let's plot it now on chart separately.
Next step is to create and add TEMA. After it is needed to subtract slow TEMA from fast TEMA and plot this value around 0 on histogram. This is the main decision for the implementation of the short trade.
ENTRY the trade:
When VMACD is below 0 and price (src = close) is below the HMA and TEMA below 0.
CLOSE the trade:
When VWMACD is upper than 0 or price is upper than HMA or TEMA is upper than 0
You can find more strategies on tradingammo.pro.
Combo 2/20 EMA & Accelerator Oscillator (AC) This is combo strategies for get a cumulative signal.
First strategy
This indicator plots 2/20 exponential moving average. For the Mov
Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.
Second strategy
The Accelerator Oscillator has been developed by Bill Williams
as the development of the Awesome Oscillator. It represents the
difference between the Awesome Oscillator and the 5-period moving
average, and as such it shows the speed of change of the Awesome
Oscillator, which can be useful to find trend reversals before the
Awesome Oscillator does.
WARNING:
- For purpose educate only
- This script to change bars colors.
RSI StrategyThis RSI strategy will allow you to go long when RSI is overbought and go short when RSI is oversold. You can also change the checked boxes to reverse this. Uncheck "Overbought Go Long & Oversold Go Short" and check "Overbought Go Short & Oversold Go Long" to use this reversed option.
You can also choose to use an ema filter as an additional qualifier for entry. Uncheck "No EMA Filter" and check "Use EMA Filter" if you want to use it.
Be sure to enter slippage and commission into the properties to give you realistic results.
I've also built in backtesting date ranges and the ability to trade only within certain times of day and have it close all trades at the end of that time frame. This is especially useful for day trading stocks. To specify a time from use the format 0930-1100 or whatever your trading hours will be. Check off "Enable Close Trade At End Of Time Frame" to close the trade at the end of your trading hours.
You can also specify a % based take profit and stop loss. Also keep in mind that the way this code is designed if you use the stop loss and/or take profit and it reaches either target and closes, then it will immediately re-enter if the condition for long or short entry is true.
Finally there's custom alert fields so you can send custom alert messages for strategy entry and exit for use with automated trading services. Simply enter your messages in the fields within the strategy properties and then put {{strategy.order.alert_message}} in your alert message body and it will dynamically pull in the appropriate message.
Elegant Oscillator Backtest [loxx]Elegant Oscillator Backtest : John Elhers Elegant Oscillator from TASC's February 2022 edition of Traders' Tips.
Backtest for this:
What is it?
Normalized, Inverse Fisher Transform that oscillates between -1 and 1
How does this help me?
Helps the trader identify reversions to the mean
Backtest Features:
-Baseline filtering. 10+ moving averages to choose from
-ATR qualifier boundaries above/below the selected baseline
-1-3 take profit levels with stop loss
-Trailing take profit using ATR offset
-Post Signal, Baseline Cross signals
-Continuation Longs and Shorts
-Regular Longs and Shorts
-Backtest date ranges
-Ability to change how much is removed from trade at each take profit
*** Make sure the take profit % removed adds up to 100% between the number of TPs selected
Voyssnich ManuScriptHello,
After using Tradingview for a couple years and messing around with Pinescript for over a year now, this is my first real script, the “Voyssnich ManuScript”.
This Strategy was inspired by Voss Predictor Script (by user : midtownsk8rguy, which is inspired by the Whitepaper entitled “A PEEK INTO THE FUTURE” by John Ehlers ).
This strategy combines multiple Voss Predictors (Oscillators) with each different settings into 1 Oscillator. Although it visually looks like a MACD Oscillator I find that it produces much better results. The strategy inputs are the # Bars of Prediction, Fast Moving Average (of the Oscillator). and Slow Moving Average (of the Oscillator).
I use this strategy to trade the 1min. chart on cryptocurrency majors (Decent market cap. size Altcoins like BNB, SOL, AVAX, LINK, Etc.). It also performs decently on ETH, BTC and some stocks. You can probably test the settings to adapt it to any time frame as well, but remember that it was created to be use on low time frame.
You can choose the inputs for the Stop Loss, Take Profit and Trailing Stop. You will especially need to change the default inputs if you use the strategy on different time frame than the 1min.
There is also an EMA filter that you can choose to use or not.
I could have published this strategy as an Indicator which seems more popular on TV, but I think the most powerful thing about TV is the ability to backtest, which is something you can do with this strategy. If the Quantity appearing with every trade bother you, you can put it off into the Properties in Strategy Settings. In the strategy tester you’ll see that it uses 100% of equity for every trade (which is not recommend by Tradingview), but I find that it’s the best way to compare different strategies and test settings, but obviously DON’T PUT 100% OF YOUR MONEY IN THIS STRATEGY. You can also change the commission % (trading fees), which is default 3.6% (0.036) based on the exchange I use. Be careful with the commission %, because due to the high number of trades this strategy produces, the commission % can have a very high impact on the results depending on the exchange you use.
Disclaimer: If you use this strategy for real trading, you are responsible for your trades.
PS: The name of the Strategy is inspired by “Voss Predictor” and one of the weirdest books on earth, the Voynich manuscript, you can dig into that rabbit hole if you want.
ADX+BB %B+AO+EMA Strategy [PineMyths] #2Indicator List
ADX (14,14)
Bollinger Bands %B (20,close,2)
Awesome Oscillator
EMA(5), EMA(21), EMA(50), EMA(200)
Strategy Rules and Conditions
LONG Side
EMA(5) > EMA(21)
EMA(50) > EMA(200)
BB %B > 0.75
ADX > 15
Awesome Oscillator > 2
SHORT Side
EMA(5) < EMA(21)
EMA(50) < EMA(200)
BB %B < 0.25
ADX > 15
Awesome Oscillator < -2
Stop: Fixed %2
Take Profit: Fixed %1
Combo 2/20 EMA & Absolute Price Oscillator (APO) This is combo strategies for get a cumulative signal.
First strategy
This indicator plots 2/20 exponential moving average. For the Mov
Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.
Second strategy
The Absolute Price Oscillator displays the difference between two exponential
moving averages of a security's price and is expressed as an absolute value.
How this indicator works
APO crossing above zero is considered bullish, while crossing below zero is bearish.
A positive indicator value indicates an upward movement, while negative readings
signal a downward trend.
Divergences form when a new high or low in price is not confirmed by the Absolute Price
Oscillator (APO). A bullish divergence forms when price make a lower low, but the APO
forms a higher low. This indicates less downward momentum that could foreshadow a bullish
reversal. A bearish divergence forms when price makes a higher high, but the APO forms a
lower high. This shows less upward momentum that could foreshadow a bearish reversal.
WARNING:
- For purpose educate only
- This script to change bars colors.
BTC 30m ScriptWhat are your thoughts on this script? I connected it to Coinbase Pro via AWS lambda for auto-trading. I'm waiting for BTC to start bullish again before turning it on in production. Thoughts? Thank you! John
MA Bollinger Bands + RSI This script uses the standard deviation of a given moving average along with an RSI direction.
When: rsi crossover neutral line + price crossover lower deviation boundary => long
When: rsi crossunder neutral line + price crossunder upper deviation boundary => short