FRAMA - Supertrend strategyFRAMA Strategy
I found this strategy on internet, in a well-known forex forum.
I have translated the two indicators mentioned in that strategy (originally in mq4) in pine script.
Thanks to Fractured and Shizaru for the FRAMA snippets, to mejialucas for Supertrend snippet, to JayRogers for trade management snippet and to Trost for backtesting snippet.
I also added some code to have FRAME with a deiiferent timeframe
Indicators set-up:
FRAMA period 24 (it was originally 25 but it's better to use an even number)
FRAMA timefarme lower then chart timeframe (e.g. daily chart and weekly FRAMA)
Supertrend indicator as it is.
Of course, it is better to adapt above setting to traded instrument.
Long/Buy rules:
1 - Enter at crossover between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit long when short signal occurs;
Short/Sell rules:
1 - Enter at crossunder between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit short when long signal occurs;
VERY IMPORTANT NOTE: this is a trend following strategy, so the target is to stay in the trade as much as possible (drawdown my be high). If your trading style is more focused on scalping and/or pullbaks, this strategy is not for you.
Credits to who developed this startegy (google it).
Thanks to all pinescripters mentined in the code for their snippets.
I have also a study with alerts.
Please use comment section for any feedback or contact me if you need support.
Kripto
On Balance Volume with CrossOBV indicator with a few key changes that can turn it into a filter or trading indicator as-is.
Volume calculation given a look-back to help clarify trends without smoothing lag
Change the source (HLC3 indicates a little faster in backtesting)
Smooth the signal if desired
Moving average (MA) added for crossover indication in trend change
MA can be either EMA or HMA**
** My personal use:
EMA for trend filtering trades: Trade long signals if OBV is above the MA, trade short signals if OBV is below the MA.
HMA for scalping and chop: Normally set the HMA to 20 or 15 and trade the crosses. Works on most time frames and generates a lot of noise. 5 min and 15 min seems best for me in day trading
Example of trend trading using only the OBV-C and no other indicators, stops, or trailing stops:
This could obviously be improved using stops, trailing stops, or other indicators to filter when to enter & exit trades or mitigate loss.
Example of trading using the HMA and lower time frames with Elder's Force Index (EFI) used as a filter. Trade with both cross at or very near the same time. Winning trades in green:
BEST ABCD Pattern StrategyHello traders
This is the strategy version of this script
I - Concept
I present to you, ladies and gentlemen, the first screener for harmonic patterns.
Starting with an ACBD pattern screener this time!!
I used the calculations from Ricardo Santo's script
In short, he's using fractals (regular or Bill Williams ) for the pattern calculations. A masterpiece !!!
II - Definitions
The ABCD pattern ( AB=CD ) is one of the classic chart patterns which is repeated over and over again.
The ABCD pattern shows perfect harmony between price and time.
The Williams Fractal is an indicator, developed by Bill Williams, that aims to detect reversal points (highs and lows) and marks them with arrows.
Up fractals and down fractals have specific shapes. The Williams Fractal indicator helps users determine in which direction price will develop
💎Strategy filters💎
I included some cool backtest filters:
- flexible take profit in USD value (plotted in blue)
- flexible stop loss in USD value (plotted in red)
The take profit and stop loss should work with Forex/FX pairs as well
All the BEST
Dave
Pivot Boss 4 EMA + BB + Parabolic SAR + IchimokuA combination of a few of my favorite indicators.
1) Pivot Boss 4 EMA
2) Bollinger Bands
3) Parabolic SAR
4) Ichimoku Cloud
All credit to original authors.
Best Volatility Calculator (Multi Instruments)Hello traders
A bit of context
Definition: Volatility is defined as the close of current candle - close of the previous N candle
This is an alternative version of my Best Volatility Calculator
The other version is displayed on a panel below. This one overlays on the chart using the "overlay=true" setting
This indicator shows the average volatility, of last N Periods, for the selected time frames and for 2 selected instruments.
You can select up to 2 timeframes with this version
Presented as Currency, Pip, percentage labels in a panel below.
Will calculate in real-time only for the current instrument on the chart.
The indicator is coded to not be repainting
Example
In the indicator screenshot, I used a lookback period of 1.
That compares the current candle close versus the previous one for the daily and weekly timeframe
Showing how the results look like using FOREX instruments (where using the PIPS labels make more sense than with cryptocurrency assets)
Best regards
Dave
Trade System Crypto InvestidorTrade System created to facilitate the visualization of crossing and extensions of the movements with Bollinger bands.
Composed by:
Moving Averages of 21, 50, 100 and 200.
Exponential Moving Averages: 17,34,72,144, 200 and 610.
Bollinger bands with standard deviation 2 and 3.
How it works?
The indicators work together, however there are some important cross-averages that need to be identified.
- Crossing the MA21 with 50, 100 and 200 up or down will dictate an up or down trend.
- MA200 and EMA200 are excellent indicators of resistance and support zone, if the price is above these averages it will be a great support, if the price is below these averages it will indicate strong resistance.
- Another important crossover refers to exponential moving averages of 17 to 72 indicates a possible start of a trend
- The crossing of the exponential moving average of 34 with 144 will confirm the crossing mentioned above.
- In addition, the exponential moving average of 610 used by Bo Williams is an excellent reference for dictating an upward or downward trend, if the price is above it it will possibly confirm an upward trend and the downside.
- To conclude we have bollinger bands with standard deviation 2 and 3, they help to identify the maximum movements.
Day of week, Forex FixCalendar to work on instruments that trade a 24 hour day like crypto and forex, also does not display if you are above an intraday time. Main tweak was to end the trading day at 0000 (midnight) instead of 1700 (5pm) NYC time.
This update is geared towards Forex traders, which is why I chose to highlight Wednesday in yellow since that is commonly thought of as a midweek reversal point.
@airscape built a good calendar indicator based on the work of @ChrisMoody, this is really an update to their work and directed towards FX and Crypto
airscape:
ChrisMoody:
Future development:
Toggle for light and dark themes
Adjustment/offset for DLST and local vs/ server time
Additional color bands to denote Asian/London/NYC sessions?
Text label for days instead of color option?
Clean up the code and simplify
Intraday S/RPlots yesterday's low and high, and the current day's open, as intraday support/resistance levels.
Bitcoin East vs WestPlots the volume weighted price difference between the top spot exchanges in the "East" (Asian markets) versus the "West" (US/UK/EU markets).
Optional: view the volume difference between the two.
BEST Supertrend CCIHello traders
Today I present you a Supertrend not based on candle close but based on a CCI (Commodity Channel Index)
How does it work?
Bull event: CCI crossing over the 0 line
Bear event: CCI crossing below the 0 line
When the event is triggered, the script will plot the Supertrend as follow
UP Trend = High + ATR * Factor
DOWN Trend = Low - ATR * Factor
This is an alternative of the classical Supertrend based on candle close being above/beyond the previous Supertrend level.
Hope you'll enjoy it and it will improve your trading making you a better trader
Dave
Bitcoin Halving CountdownHello traders,
I offer you today the BTC halving countdown updated in real-time on your charts
I inspired myself greatly from the gentleman @everget's script LTC halving countdown below
(
The countdown date is coming from that source www.bitcoinblockhalf.com.
The halving date is estimated to be around May 13th, 2020 .
That date is hardcoded in the script and is used for the countdown calculation.
The Bitcoin block mining reward halves every 210,000 blocks, the coin reward will decrease from 12.5 to 6.25 coins.
Enjoy the weekend
Dave
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.
BitMEX Liquidation LevelsThis indicator plots BitMEX liquidation levels:
- 25x
- 50x
- 100x
The indicator works as following:
The underlying assumption (as with all liquidation calculations) obviously is that traders used fixed margin or go "all in" on their cross-margin account.
You then can configure a minimum trade volume and a minimum price change in percent for a candle to start computing liquidation levels from that candle
Additionally: configure the price base for the liqudation level: Candle high or low (default) works well, but you can also set "candle close" or "median high/low"
The indicator will then plot horizontal lines on the main chart showing price levels where many positions opened at the configured "start candle" will likely get liquidated.
It works for all BitMEX contracts and while it has been optimized for BitMEX, it will work on other exchanges with the same leverage levels (25x, 50x, 100x) and maintenance margin requirements too.
This indicator uses the Smart Volume indicator to compute the volume at the "start volume candle" setting where the liquidation level starts. This indicator can be found here: Smart Volume:
BEST Supertrend StrategyHello traders
Sharing a sample Supertrend strategy to illustrate how to calculate a convergence and using it in a strategy
I based the setup as follow:
- Entries on Supertrend MTF breakout + moving average cross. Entering whenever there is a convergence
- exit whenever a Simple Moving Averages cross in the opposite direction happen
- possibility to filter only Longs/Shorts or both
All the best
Dave
Market BuySell RatioA script using 1m small candle size (configurable) to compute the volume of buy (up) vs sell (down) candles (instead of actual market buy vs sell orders which are not available in pine script).
It then plots the buy vs sell ratio as an oscillator below the cart.
This gives traders an idea of current order flow in the market.
To compute the small candles this script uses the "Smart Volume" script which can be found here:
Crypto EMA 60/20Intended for use with Cryptocurrency Markets on the 12 hour time frame, the 60/20 exponential moving average frequency has proven successful for identifying trend bottom formations and for verifying head and shoulders top formations.
Combine the Crypto EMA 60/20 with classical RSI and MACD divergences to help verify impending reversals.
Useful for identifying trend changes in the frequency of four to six month price trends followed by a four to six week reversal, as historically found in cryptocurrency bull and bear markets.
This signal gets noisy if prices trend sideways for more than 30 days - consult daily views.
Bitcoin Circulating Supply Overlay [BigBitsIO]This script shows the estimated circulating supply of Bitcoin on any given day.
Features:
- Estimated Bitcoin circulating supply calculated daily
- Uses the Bitcoin reward schedule, past halving dates, and the next upcoming halving estimated date to calculate the current estimated supply.
- Optionally includes an option to use "Log Reduction" on the chart
*** DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB. ***
Bitcoin Energy Value OscillatorBitcoin Energy Value as an oscillator against price.
Calculated as: (Bitcoin Price / Bitcoin Energy Value - 1) * 100
Squeeze Momentum Strategy based on Indicator [LazyBear][Bitduke]I improved Squeeze Momentum Indicator by LazyBear (momentum filter, changed data source to ohlc4) and transformed it into a strategy, adding a risk management system + ability to customize time frames for backtest.
Shortly about Squeeze Momentum Indicator:
This is a derivative of John Carter's "TTM Squeeze" volatility indicator, as discussed in his book "Mastering the Trade" (chapter 11).
Backtested on XBTUSD, ETHUSD (Bitmex). As you may notice it shows good results on 1h - 4h timeframes on these timeframes among these pairs. Relatively low drawdown ~ 12% (to date).
ZoneBand (@Mido_yuiya)Bollinger band is converted to EMA , and support and resistance bands are made into regions
BEST Mayer MultipleHello traders
I'm not a HODLer by any means. I know when to sell (or I think I know....) when an asset starts going against me too much.
Even if it's a "long-term" investment.
My mentor used to telling me this: "If a short-term trade becomes a long-term investment, then you're in for a hell of a ride".
I have no clue if Bitcoin/BTC will go back up or not - I don't even care because I'm an intraday trader.
What if BTC was actually a way to accumulate more fiat? Satoshi fooled us
I coded this Mayer Multiple according to the specifications below. By the way, I'm a big fan of Willy Woo. I've been monitoring all his work since I learned about crypto (10 minutes ago.... it's a joke come on)
charts.woobull.com
Scaling
To respect the Mayer's multiple model, I recommend to select the Logarithmic scaling as shown below
imgur.com
What Mayer's model says
Using the reference below, the model says we're in the oversold zone. But, we can be in that zone for months/years...
When a model says an asset could bounce in a 1000-7000 USD range... well... I don't know how I would be able to perform optimally with that insight. This is very subjective and not a recommendation.
Mayer's Multiple model reference
All the BEST
Dave
BEST Trailing Stop StrategyHello traders
Here we go again.... with the second strategy snippet.
Reminder: the first snipper was a Trailing Profit strategy script
What's on the menu?
A trailing stop is designed to protect gains by enabling a trade to remain open and continue to profit as long as the price is moving in the investor's favor.
The order closes the trade if the price changes direction by a specified percentage or dollar amount.
Trigger me I'm famous
I developed many trading strategies in my career and often I've been asked to trigger a trailing-stop once a certain % move has been made.
On the screenshot below, the SL trigger is plotted in maroon.
Once the price goes past that level for the first time, I'll start trailing the trailing stop level.
In other words, when we see a price makes an interesting move in percentage value - we decide to trail the stop for at least not losing any more
All the BEST
Dave