DPO RMA STRATEGYThis strategy uses tradingview's built-in "Detrended Price Osciilator" ( DPO )indicator script.
It takes the average of 6 different fib lookback periods. (55,89,144,233,377,610)
This is plotted in the purple line.
It then takes the RMA of the DPO and uses the RMA's to determine entry points with crossovers and crossunders.
It's an extremely easy indicator to use. You mostly only need to adjust the last 2 inputs (These are the RMA Smoother inputs)
Works well with most any market and with any timeframe.
Works great on Heiken Ashi if you keep orders under 150. But I can't post in heiken ashi format thanks to automated traders complaining to tradingivew that they can't make any money with heiken ashi candles
And then pine coders like this that are embraced with high regard because they realized that they can spam a heiken ashi chart with over 400 trades and magically it has excessive slippage.
Oscillators
Stochastic Pop and Drop by Jake Bernstein v1 [Bitduke]I found a simple strategy by Jake Bernstein, modified it a little and created a strategy with Risk Management System (SL+TP); After that I test it on the different cryptocurrency pairs.
About the Indicator
Basically it's the strategy of 2 indicators: Stochastic Oscillator to define the bias and Average Directional Index to confirm it.
One again, It uses Stochastic Oscillator to define the trading bias. In particular, the trading bias was deemed bullish when the weekly 14-period Stochastic Oscillator was above some default value (in him paper - 50) and rising and vice versa.
Once the trading bias is established, Steckler used the Average Directional Index (ADX) to define a slowdown in the trend. ADX measures the strength of the trend and a move below 20 signals a weak trend.
Modifications
I didn't implement Average Directional Index (ADX) and test just different sources for data, oscillator periods and different levels in relation to the crypto market.
So, it shows good results with two tight thresholds at 55 and 45 level.
The bar chart below the defining the bullish and bearish periods (green and red) and gives a signal to enter the trade (purple bars).
Backtesting
Backtested on XBTUSD , BTCPERP (FTX) pairs. You may notice it shows good results on 3h timeframe.
Relatively low drawdown
~ 10% (from 2019 to date) FTX
~ 22% (4 years from 2016) Bitmex
I backtested on the different altcoin pairs as well, but the results were just not good.
Relatively good results were shown by some index pairs from the FTX exchange ( FTX:SHITPERP ), but I think there is a few data for backtesting to be asure in them.
Bitmex 3h (2017 - 2020) :
i.imgur.com
FTX 3h (2019 - 2020):
i.imgur.com
Possible Improvements
- Regarding trading algorithm it would be good to check with strategy with ADX somehow. Maybe for the better entries
- As for Risk Management system, it can be improved by adding trailing stop to the strategy.
Link: school.stockcharts.com
Trend Balance Point System by Welles WilderThis is the original Trend Balance Point System created by Welles Wilders in 1978, rules can be found in his book New Concepts in Technical Trading Systems.
HA smoothed eliminator v2 This script is published to show the difference between Heiken ASHI and Japanese candlesticks. I do not recommend using it in trading. the indicator is taken from here
Noro's BottomSensivity v0.6 strategy + rsi + AlarmThe original indicator is Noro's BottomSensivity v0.6
I simply turned noro's bottom sensibility 6.0 indicator, which I consider a great tool to find market bottom, into a strategy.
I also added an additional RSI filter with inputs that can be set by the user for entry and exit from the market.
I have tried to insert an alarm so that I can be notified when this particular purchase condition is formed.
I also tried to insert an additional filter that would allow me to make further pyramid purchases only after a certain percentage of drawdown from the first entry so as to reduce the average purchase price but I was not able ... if someone could implement this I would appreciate it.
Well..this is the first time that I try to program / modify a strategy / indicator, there are certainly some gross errors (as in my English too), please forgive me, I will appreciate the corrections that more experienced users will want to make.
I wish you all a good day, pfjons
MACD_RSI strategyUse three indicator to entry a position
EMA (20), MACD (12, 26, 20), RSI (14)
apply ema20 on rsi as signal line
Entry long when
price above EMA20, MACD above signal line and RSI above signal line
Entry short when
price below EMA20, MACD below signal line and RSI below signal line
Study only, use it under your own risk.
Darvas Box Strategy V2What Is the Darvas Box?
The Darvas Box strategy was developed by Nicholas Darvas. Aside from being a well known dancer, he began trading stock in the 1950s. Based on his success in trading, he was approached to write a book on his strategy. The book, “How I Made $2,000,000 in the Stock Market,” outlines his rather simple approach … simple once you understand the basic concepts and rationale of the strategy.
Darvas originally started with $10,000. He was willing to plunk the whole amount into one stock. This is because he always used a stop loss to control risk, so the whole amount of capital was not fully in jeopardy. As his capital grew, he would allocate capital to various stocks.
Darvas Box Strategy
As the name implies, Darvas Box is based on boxes that a price was trading in. For example, if the price is moving between $45 and $50, that is a box. Mr. Darvas’s goal was to only buy stocks that were moving into higher and higher boxes.
If the price moved above $50, to $50.50, Mr. Darvas bought the stock because it was now moving into a higher box. If the price dropped below $45 (of the $45 to $50 box), to $44.50, then the stock was moving down a box, and therefore was negated as a purchase candidate.
The box limit is not set, but is determined by market forces. If the price is moving between $47 and $48, that creates a box. If it moves higher, the next box may be between $50 and $53, which is the next point where the price stalls and moves back and forth.
A price can stay in a box for as long as it wants. As long as it doesn’t drop below the low of the box, it remains a buy candidate if it moves above the upper limit of the box.
Mr. Darvas gives the following example in his book, of a stock breaking higher into a new box:
If the stock acted right, it started to push from its 45/50 box into another, upper box. Then its movement began to read something like this: 48 – 52 – 50 – 55 – 51 – 50 – 53 – 52.
It has now quite clearly establishing itself in its next box—the 50/55 box.
Darvas Box is an indicator that simply draws lines along highs and lows, and then adjusts them as new highs and lows form. The indicator is available on many trading platforms, such as Thinkorswim. Traders may wish to draw their own boxes though, based on recent highs and lows; Darvas was able to do so (based on telegram quotes) more than half a century ago.
Darvas Box Rules
Darvas established some rules, not just for his strategy, but for himself. After going though his initial learning period of subscribing to a whole bunch of “advisory services,” he found that none of them worked, and they often contradicted each other. Therefore, he proposed seven basic rules to impose on himself.
The following are summarized from his book.
I shall not follow advisory services.
I shall be cautious of broker advice.
I shall ignore Wall Street sayings or truisms, no matter how ancient or revered.
I shall only trade stocks on major exchanges with adequate volume .
I shall not listen to (or trade off of) rumors or tips, no matter how well researched they may sound.
I will use a sound strategy instead of gamble…I must study this strategy (originally this approach was fundamental analysis , which didn’t work for him, so he developed his Darvas Box trading method).
I will hold one position for longer, as opposed to juggling a bunch of positions for a short period of time.
See also 7 Rules Every Contrarian Investor Must Follow
These rules helped Nicholas Darvas develop his strategy, and have the discipline to stick to it. The basic Darvas Box strategy rules are as follows:
Darvas looked for increasing volume when selecting stocks to trade; this alerted him to stocks that were being accumulated and were likely to see strong trends.
Darvas believed in buying stocks that presented an upper box limit breakout, but also had an upward Earnings trend. This was especially the case when the major indexes had experienced a decline.
When an upper box limit is broken, buy. From his book, the entry price was usually about 1 to 2% above the upper box limit.
If you enter a trade and the price proceeds to drop out of the new box, and back into the old box, exit the trade.
Entry and stop loss orders should be set in advance, so trades aren’t missed and risk is controlled.
Place, and trail the stop loss order to below the low of the most recent box. This initial stop loss was pretty tight, because Darvas assumed when a price broke out of an old box, it was entering a new box. Therefore, the stop was placed just below the high of old box which was just broken (low of new box).
Record trades, including reasons why you entered and exited.
General conditions of the market must favor buying. Don’t buy stocks when the major indexes are in a bear market, or when volume is flat or declining.
If you are stopped out, but the price moves back into the higher box again providing another buy signal, buy again, using the same stop loss location.
Since the stop is being trailed up, more funds can be added on each consecutive breakout.
Risks and Considerations
During choppy market conditions the strategy is likely to produce many small losses in a row. This is a trend following method, so a trend needs to develop to produce a profit.
Based on his book, the initial stop loss was set just below the breakout price (likely low of the new box). It was then trailed up as new boxes formed. This method takes a lot of discipline, and a trader can’t get emotionally attached to a stock. Buy and sell when the signals say so.
Traders also need the intestinal fortitude to get back into a trade, if the signals say so, even if they were stopped out. Darvas also added to positions as breakouts to higher boxes occurred. This means bigger gains on trades that work out, but if the trend doesn’t continue, adding to positions near (what ends up being) the top of a move can work against you.
The method could also be employed using short selling when the boxes are dropping. An entry occurs when the price moves below the lower limit of the box; a stop is placed just above the entry price (in the old box) and then trailed down above the top of new lower boxes.
A stop loss won’t save you from losing more than expected if the price gaps through your order. Consider this when assessing how much capital you are willing to commit to a stock.
traderhq.com
Note : Sorry an error occurred in the first version, i installed the second version (security(syminfo.tickerid, 'D', high)v4 not working in different time periods
Tradingview Screener 52 Week High Low
52 Week High Low
EASYMOKU INDICATORThis is the popular Ichimoku Indicator with an easier way to adjust the settings that can help you in your trading.
Components of the Ichimoku indicator:
Tenkan Sen: Basically it is a moving average that goes from 7 to 9 periods.
Kijun Sen: Like Tenkan Sen, we are facing a moving average, but this time from 22 to 26 periods.
Chikou Span: It is the one that represents the current price, but reflected in 22 to 26 periods back.
Senkou Span A: Unlike Chikou Span, this line is drawn over the next 22 to 26 periods, and its calculation is obtained from the average between Tenkan Sen and Kijun Sen. It is a projected average in the future.
Senkou Span B: It is the result of calculating the average between the maximum and minimum over the last 44 to 52 periods, representing the following 22 to 26 periods (as well as the Senkou Span A)
As with Occidental trading systems, based on the crossings of averages, with the Ichimoku we will use the crossing of the Tenkan Sen (fast moving average) with the Kijun Sen (slow moving average) as buying and selling signals.
Strategy of this script:
A strong bullish signal is when price and Chikou Span rises above Kumo cloud and Tenkan Sen cross above Kijun Sen.
A strong bearish signal is when price and Chikou Span falls below Kumo cloud and Tenkan Sen croos under Kijun Sen.
MA 12, MA 24, RSI OB-OS, CCI by WP@SITechDeveloped by Worachart Pirunruk, MD - Siam Intelligence Technology
This is the signal that generates based on 4 Technical Analysis Tools:
1. SMA 12,
2. SMA 26,
3. RSI 14,3,3
4. CCI
Signal to Buy/Long when the RSI below Dynamic oversold line based on close price back 60 bars.
Parameter. This signal doesn't have to best TP point, I'm working on improvement, now. Btw, don't forget to calculate you Margin Level. I'll teach you guys later of how to calculate.
Have fun Trading guys, and don't forget to give back to others. Because, Giving is Receiving."
WP@SITech
Darvas Box StrategyWhat Is the Darvas Box?
The Darvas Box strategy was developed by Nicholas Darvas. Aside from being a well known dancer, he began trading stock in the 1950s. Based on his success in trading, he was approached to write a book on his strategy. The book, “How I Made $2,000,000 in the Stock Market,” outlines his rather simple approach … simple once you understand the basic concepts and rationale of the strategy.
Darvas originally started with $10,000. He was willing to plunk the whole amount into one stock. This is because he always used a stop loss to control risk, so the whole amount of capital was not fully in jeopardy. As his capital grew, he would allocate capital to various stocks.
Darvas Box Strategy
As the name implies, Darvas Box is based on boxes that a price was trading in. For example, if the price is moving between $45 and $50, that is a box. Mr. Darvas’s goal was to only buy stocks that were moving into higher and higher boxes.
If the price moved above $50, to $50.50, Mr. Darvas bought the stock because it was now moving into a higher box. If the price dropped below $45 (of the $45 to $50 box), to $44.50, then the stock was moving down a box, and therefore was negated as a purchase candidate.
The box limit is not set, but is determined by market forces. If the price is moving between $47 and $48, that creates a box. If it moves higher, the next box may be between $50 and $53, which is the next point where the price stalls and moves back and forth.
A price can stay in a box for as long as it wants. As long as it doesn’t drop below the low of the box, it remains a buy candidate if it moves above the upper limit of the box.
Mr. Darvas gives the following example in his book, of a stock breaking higher into a new box:
If the stock acted right, it started to push from its 45/50 box into another, upper box. Then its movement began to read something like this: 48 – 52 – 50 – 55 – 51 – 50 – 53 – 52.
It has now quite clearly establishing itself in its next box—the 50/55 box.
Darvas Box is an indicator that simply draws lines along highs and lows, and then adjusts them as new highs and lows form. The indicator is available on many trading platforms, such as Thinkorswim. Traders may wish to draw their own boxes though, based on recent highs and lows; Darvas was able to do so (based on telegram quotes) more than half a century ago.
Darvas Box Rules
Darvas established some rules, not just for his strategy, but for himself. After going though his initial learning period of subscribing to a whole bunch of “advisory services,” he found that none of them worked, and they often contradicted each other. Therefore, he proposed seven basic rules to impose on himself.
The following are summarized from his book.
I shall not follow advisory services.
I shall be cautious of broker advice.
I shall ignore Wall Street sayings or truisms, no matter how ancient or revered.
I shall only trade stocks on major exchanges with adequate volume.
I shall not listen to (or trade off of) rumors or tips, no matter how well researched they may sound.
I will use a sound strategy instead of gamble…I must study this strategy (originally this approach was fundamental analysis, which didn’t work for him, so he developed his Darvas Box trading method).
I will hold one position for longer, as opposed to juggling a bunch of positions for a short period of time.
See also 7 Rules Every Contrarian Investor Must Follow
These rules helped Nicholas Darvas develop his strategy, and have the discipline to stick to it. The basic Darvas Box strategy rules are as follows:
Darvas looked for increasing volume when selecting stocks to trade; this alerted him to stocks that were being accumulated and were likely to see strong trends.
Darvas believed in buying stocks that presented an upper box limit breakout, but also had an upward Earnings trend. This was especially the case when the major indexes had experienced a decline.
When an upper box limit is broken, buy. From his book, the entry price was usually about 1 to 2% above the upper box limit.
If you enter a trade and the price proceeds to drop out of the new box, and back into the old box, exit the trade.
Entry and stop loss orders should be set in advance, so trades aren’t missed and risk is controlled.
Place, and trail the stop loss order to below the low of the most recent box. This initial stop loss was pretty tight, because Darvas assumed when a price broke out of an old box, it was entering a new box. Therefore, the stop was placed just below the high of old box which was just broken (low of new box).
Record trades, including reasons why you entered and exited.
General conditions of the market must favor buying. Don’t buy stocks when the major indexes are in a bear market, or when volume is flat or declining.
If you are stopped out, but the price moves back into the higher box again providing another buy signal, buy again, using the same stop loss location.
Since the stop is being trailed up, more funds can be added on each consecutive breakout.
Risks and Considerations
During choppy market conditions the strategy is likely to produce many small losses in a row. This is a trend following method, so a trend needs to develop to produce a profit.
Based on his book, the initial stop loss was set just below the breakout price (likely low of the new box). It was then trailed up as new boxes formed. This method takes a lot of discipline, and a trader can’t get emotionally attached to a stock. Buy and sell when the signals say so.
Traders also need the intestinal fortitude to get back into a trade, if the signals say so, even if they were stopped out. Darvas also added to positions as breakouts to higher boxes occurred. This means bigger gains on trades that work out, but if the trend doesn’t continue, adding to positions near (what ends up being) the top of a move can work against you.
The method could also be employed using short selling when the boxes are dropping. An entry occurs when the price moves below the lower limit of the box; a stop is placed just above the entry price (in the old box) and then trailed down above the top of new lower boxes.
A stop loss won’t save you from losing more than expected if the price gaps through your order. Consider this when assessing how much capital you are willing to commit to a stock.
traderhq.com
Tradingview Screener 52 Week High Low
52 Week High Low
New RenaissancePrelim version of MACD long entry and exit with custom time frame selector.
To do:
Add Stoch and Stoch RSI criteria.
Hancock - Filtered Volume OBV OSC [Strategy]Trading strategy based on Donchain channel price breakouts confirmed by an optionally configurable volume filtered OBV oscillator.
Colored diamonds on charts represent signals where top side is buy side and bot side is sell side - green indicates open and red indicates close.
Pretty simple but nicely demonstrates the volume filtered OBV oscillator found here .
Happy trading
Hancock
Incremental Order size +This is an old and incomplete script that is being pulled up and dusted off as per request.
The sole purpose of this script was to provide code snippets allowing one to easily convert their own script/strategy to include incremental order sizes. More control over your pyramiding orders.
**It may repaint, and was not intended for trading but more as an attempt to provide examples for more control with pyramiding.
Voss Strategy (Filter + Trend Indicator) [Bitduke]Created strategy based on Voss Predictive Filter, implemented by TradingView user e2e4mfck.
Voss Predictive Filter
This is a relatively new filter from John F. Ehlers’ article, “A Peek Into The Future .” Ehlers describes the calculation of a new filter that could help signal cyclical turning points in markets.
But filter has a negative group delay and while an indicator based on it cannot actually see into the future, it may provide the trader with signals in advance of other indicators.
In mentioned article he tested filter on SPY and at one point in time "it went into a trend mode in January 2019, and the cycle signal failed miserably, signaling a short position during the runup. <...> The only way to minimize the impact of this condition is to employ an additional trend detector."
Thus I've added another Ehlers' based trend based indicator Instantaneous Trendline (thanks to LazyBear for implementation) to minimize the impact of the trend mode and got a good results on XBTUSD pair 4h.
Backtest :
> Range: 2016 - 2020
> XBTUSD
> 4h
> ~20% drawdown
> Sharpe (0.361, not too impressive)
I think it can be improved with Risk Management system and experimenting with various trend following indicators.
RSI-VWAPBacktest script based on the previous RSI-VWAP indicator:
It's the popular RSI indicator with VWAP as a source instead of close:
- RSI_VWAP = rsi(vwap(close), RSI_VWAP_length)
What is the Volume Weighted Average Price ( VWAP )?
VWAP is calculated by adding up the dollars traded for every transaction (price multiplied by the number of shares traded) and then dividing by the total shares traded.
Trades are laddered to improve the average entry price and each entry is increased, improving the entry but increasing the risk of being liquidated.
It can be easily converted to study (alerts)
Settings for BINANCE:BTCUSDT at 30m
RSI-VWAP INDICATORThis simple indicator provides great results.
It is the popular RSI indicator with VWAP as a source instead of close.
What is the Volume Weighted Average Price (VWAP)?
VWAP is calculated by adding up the dollars traded for every transaction (price multiplied by the number of shares traded) and then dividing by the total shares traded. That is, volume.
On the Backtest, trades are laddered to improve the average entrance price.
Combo Backtest 123 Detrended Price Oscillator This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The Detrend Price Osc indicator is similar to a moving average,
in that it filters out trends in prices to more easily identify
cycles. The indicator is an attempt to define cycles in a trend
by drawing a moving average as a horizontal straight line and
placing prices along the line according to their relation to a
moving average. It provides a means of identifying underlying
cycles not apparent when the moving average is viewed within a
price chart. Cycles of a longer duration than the Length (number
of bars used to calculate the Detrend Price Osc) are effectively
filtered or removed by the oscillator.
WARNING:
- For purpose educate only
- This script to change bars colors.
Multi-Oscillator Divergence StrategyNote: This is a modified version of TradingView's built-in "Divergence Indicator" and applied in "Strategy" format to show back testing results
It finds bullish and bearish divergence in a selection of well known MA formulas: MACD, RSI, STOCH, DETRENDED PRICE OSCILLATOR, MOMENTUM.
I've found good results even on 1 minute charts!
In this example the chart backtest is utilizing the detrended price oscillator (DPO)
There are multiple variables, so the ability to find good back test can sometimes be "time consuming"
And please note that if you increase "Pivot LookBack Right" variable too high, then you will increase chance of repaint. Keep this variable as low as possible
I've also drawn my own solutions on the chart (red and green trend lines) to find good take profit and safe stop loss. In order to study this properly you need the own the chart. Scripts don't give you this option.
See private chart publication link to "own" the chart for yourself. Simply click on the "Share" button (it's the megaphone icon) and click on "Make it Mine"
I've found the best approach is to create 5 copies of indicator on 1 chart and have each running with different MA formula. This will give you a majority consensus type environment.
I will post study with alert conditions next
Good luck and enjoy!