Strategy Myth-Busting #20 - HalfTrend+HullButterfly - [MYN]#20 on the Myth-Busting bench, we are automating the " I Found Super Easy 1 Minute Scalping System And Backtest It 100 Times " strategy from " Jessy Trading " who claims 30.58% net profit over 100 trades in a couple of weeks with a 51% win rate and profit factor of 1.56 on EURUSD .
This one surprised us quite a bit. Despite the title of this strategy indicating this is on the 1 min timeframe, the author demonstrates the backtesting manually on the 5 minute timeframe. Given the simplicity of this strategy only incorporating a couple of indicators, it's robustness being able to be profitable in both low and high timeframes and on multiple symbols was quite refreshing.
The 3 settings which we need to pay most attention to here is the Hull Butterfly length, HalfTrend amplitude and the Max Number Of Bars Between Hull and HalfTrend Trigger. Depending on the timeframe and symbol, these settings greatly impact the performance outcomes of the strategy. I've listed a couple of these below.
And as always, If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
This strategy uses a combination of 3 open-source public indicators:
Hull Butterfly Oscillator by LuxAlgo
HalfTrend by Everget
Trading Rules
5 min candles but higher / lower candles work too.
Stop loss at swing high/low
Take Profit 1.5x the risk
Long
Hull Butterfly gives us green column, Wait for HalfTrend to present an up arrow and enter trade.
Short
Hull Butterfly gives us a red column , Wait for HalfTrend to present a down arrow and enter trade.
Alternative Trading Settings for different time frames
1 Minute Timeframe
Move the Hull Butterfly length from the default 11 to 9
Move the HalfTrend Amplitude from the default 2 to 1
Enabling ADX Filter with a 25 threshold
2 Hour Timeframe
Move the HalfTrend Amplitude from the default 2 to 1
Laddered Take Profits from 14.5% to 19% with an 8% SL
Bands and Channels
SPX Expected MoveThis indicator plots the "expected move" of SPX for today's trading session. Expected move is the amount that SPX is predicted to increase or decrease from its current price, based on the current level of implied volatility. The implied volatility in this indicator is computed from the current value of the VIX (or one of several volatility symbols available on Trading view). The computation is done using standard formula. The resulting plots are labeled as 1 and 2 standard deviations. The default values are to use VIX as well as 252 trading days in the years.
Use the square root of (days to expiration, or in this case a fraction of the day remaining) divided but the square root of (252, or number of trading days in a year).
timeRemaining = math.sqrt(DTE) / math.sqrt(252)
Standard deviation move = SPX bar closing price * (VIX/100) * timeRemaining
[blackcat] L3 Bull ChannelLevel 3
Background
This is a bullish channel with spikes for long entries. Optimized for 4H time frame.
Function
This indicator places a fast and smooth lines into a channel for 4H time frame. The channel can work as overbought and oversould threshold for judgement. Also, the fast and smooth (green , red lines) will cross together and you can judge short term momentum with their cross status as golden cross or dead cross status.
For the color definitions:
Output upper_rail = 21-day moving average of the highest price*1.05, draw upper_rail
Output lower_rail = 21-day moving average of the lowest price*0.95, painted yellow
Output smooth_trend = 5-day moving average of the lowest price, painted red
Output fast_trend = 2-day moving average of the closing price, painted green
Output swing_long = If fast_trend wears smooth_trend, return upper_rail*1.05, otherwise return smooth_trend, draw red
Output leader_long = If fast_trend wears upper_rail, return upper_rail*1.10, otherwise return lower_rail, draw orange
Remarks
Feedbacks are appreciated.
[blackcat] L3 Bull Bear GameLevel 3
Background
A bull bear banker fund game trajectories.
Function
This technical indicator draws a track diagram of the long-short power comparison through a custom trend line. The red curve represents the long line, and the green curve represents the short line. When the red line crosses the green line, it means that the upward momentum is sufficient, the whale is controlling the market, and the rise is imminent, which is a buy signal. When the red line enters the strong zone, it means that the whale is in control of the stock, and the stock is about to enter the stage of pulling up. On the contrary, if the green line turns upwards, it means that the whale is washing or retreating, and we must quickly reduce or clear the position. Sometimes when the indicator sends out a long entry signal, because the whale still has to go through a round of washing, I introduced a golden pit inflection point filter scheme, which can filter out these signals, so only when the signals appear at the same time is a long entry point signal.
Remarks
Feedbacks are appreciated.
VWAP Market Session AnchoredVWAP Market Session Anchored differs from the traditional VWAP or VWAP Auto Anchored indicator in that the Volume Weighted Average Price calculation is automatically anchored to four major market session starts: Sydney, London, Tokyo, New York.
Settings
Source: the source for the VWAP calculation.
Offset: changing this number will move the VWAP either Forwards or Backwards, relative to the current market. Zero is the default.
Band: enabling this will show Standard Deviation bands.
Band Multiplier: the value the Standard Deviation bands will be multiplied by before being plotted on the chart.
Sessions : enabling the sessions will plot the respective anchored VWAP on chart.
Custom: enabling this will show a custom user-defined session.
Custom UTC : the custom session is defined by a starting UTC hour followed by the ending UTC hour.
Usage
Similar to the traditional VWAP, VWAP Market Session Anchored is a technical analysis tool used to measure the average price weighted by volume. VWAP Market Session Anchored can be used to identify the trend during a specific market session.
Limitations
When setting a custom session, be mindful that calculations are based off of the Coordinated Universal Time (UTC) time, you must convert your local time zone to UTC in order to have an accurate representation of your custom session.
It is not recommended to use this indicator on timeframes above 1 hour as market sessions only last a few hours.
VWMA Fibonacci Bands (VFIBs)This is a momentum indicator , utilizing Volume Weighted Moving Averages (VWMAs), Average True Range (ATR), and Fibonacci Levels.
This indicator can be used in most, if not all, financial markets. I have personally found it to be most useful in mid or large cap stocks, index funds, and cryptocurrencies in the top 25 by market cap. I have not tested this indicator in Forex markets, but I imagine that it would function well there, too.
The idea behind proper use of this indicator centers around mean reversion. If price is low compared to previous price action, mean reversion implies that it is likely to revert back to the mean, over time. If price is high, it implies that it will move lower. Generally, the different period VWMAs (center lines) will act as support when in an uptrend and resistance when in a downtrend. Additionally, it is rare for price to go above the upper bounds or lower bounds of the Fibonacci Bollinger Bands . Price action doing so may indicate a potential short or long position, respectively.
This indicator is intended to be used in tandem with the oscillator 'VFIBs Agreement', to be published shortly.
As we can see in the chart, the 50 week VWMA has been acting as resistance and recently dipped down to the bottom range of the band, only to bounce back. Holding above the 50 VWMA might indicate a bullish reversal, treating it as support moving forward.
Fibonacci Bollinger Band ClusterThis indicator creates moving averages based on Fibonacci numbers (3-233, divided by 10 to average) sourced by high, low, and ohlc4 and plots lines based on these three. The Fib MA High line is either green or red (Fib High < Close), the Fib MA Low line is either lime or orange (Fib Low < Close), and the Fib MA OHLC4 line is constantly white. A cluster or series of Bollinger Bands is then created using the Fib MA OHLC4 line as the basis. Fibonacci-based deviations (1, 2, 3, 5, 8) are then used to create three upper and three lower Bollinger lines.
Four Block Zone - Oliver VelezThis is pretty straight forward indicator as explained by Oliver Velez ... Be bullish if price crosses upper band and bearish if crosses lower band.. that's it.
[blackcat] L2 Dragon CloudLevel 2
Background
In addition to characterizing the trend through the special parameter SAR, this dragon cloud indicator also indicates that it is currently in the corresponding stage of the bull and bear market through the cloud layer of the large parameter.
Function
The SAR indicator characterizes short-term trend changes and provides swing buying and selling points. Red crosses and candles represent declines and their strength; green crosses and candles represent rises and their strength. At the same time, this technical indicator can judge which stage the market is currently in through the thickness of the bear cloud and the thickness of the bull cloud. When the blue cloud layer on the main picture is relatively thick, it means that it is in a deep bear market; as the blue cloud becomes thinner, and the red cloud is edited, it means that the bull-bear power game is in the process of transformation. The red cloud indicates the strength of doing more, and when its thickness is greater than the blue cloud, it means that the bull market is coming!
Remarks
Feedbacks are appreciated.
Distance Bands Oscillator_KT █ OVERVIEW
This tool is based on both Bollinger Bands and Keltner Channels, and measures 3 distances between the two, respectively.
Upper Kelt to Upper Bollinger Band
Lower Kelt to Lower Bollinger Band
Kelt Basis to Bollinger Basis Basis
Similar to the Band Width indicator, this can be used as a measure of volatility, and can be used to measure uptrend, downtrend and chop regions on a given chart.
Happy Trading,
ET
[HM] Fibonacci Fractals Absolute Auto v20221114Basically:
F - Fibonacci levels
F - fractals: retracement of retracement
A - absolute: based on two fixed points instead user chosen Fibonacci points
A - auto: automatically draws based on volatility
Explanation:
This script will automatically trace TWO Fibonacci levels from these points:
- ALL TIME HIGH (ATH) and ALL TIME LOW ( ATL ) prices
This is our first Fibonacci FRACTAL retracement and the line caption will show ONE character:
"↥" for 0.618
"↧" for 0.382
The FRACTAL with two lines will define THREE regions.
The second Fibonacci FRACTAL retracement will show TWO characters:
the same "↥" "↧" characters with:
"a" if the price is between TOP region of previous fractal
"b" if the price is between MIDDLE region of previous fractal
"c" if the price is between BOTTOM region of previous fractal
The third Fibonacci FRACTAL will show THREE characters and so on.
Delimited by volatility (otherwise this script will go to 10th fractal maximum).
OPTIONS to give a try:
- use ALL TIME HIGH and ZERO prices (instead ATH and ATL )
- use a non-Fibonacci retracement:
---> "⅓": 1/3 and 2/3 levels instead 0.618 and 0.382 (based on chess master Hindenburg Melão article hint)
---> "fibonaccing": 0.764 and 0.236 levels (based on Brazilian trader Marco Antonio Rossi method hint)
#script under development, sugestions and questions are welcome.
Volume RSIThis is an indicator that shows the inflow and outflow of volume into a financial instrument. Volume is likely one of the most underrated source of data in trading unfortunately so there seems to be a lack of studies on it. The size of the candle is related to the strength of the move. The calculations for this are: cumulative sum of +volume if open < close OR -volume if open > close. This has been now transformed into an rsi style indicator to give a distinct advantage (or atleast thats the idea). The idea is that we take rsi of candles so we might as well take the rsi of volume candles. As far as I can tell it is faster/its own thing compared to regular rsi. I ave also added a smoothing option. Dont forget you can change the settings and you wont die. Thank you for your interest in this release I hope you find great piles of money with it.
link to the script I used to make this
Z Score BandThis is a band based on Z Score. What is Z Score? In layman's terms it's a method of finding outliers within a sequence of numbers. It's highly effective to quantify pump and dumps in the crypto market.
The middle line is a simple Exponential Moving Average, you can configure this with whatever period you prefer. It comes default with a period of 247 to which I find suitable for my style of trading. The upper and lower bound are determined by the standard deviation you choose in the settings, it comes with a default of 1.69 although I've heard people saying 2.5 is a better number to really pinpoint outliers.
Trading with this indicator is like trading with any band based indicator. The main difference is that this indicator's sole purpose when I wrote it is to help me find shorting positions in the futures market. On the contrary though, longs are also achievable although I rarely long the futures market.
If prices hit the upper bound and get rejected, it's probably because the move was an outlier, it doesn't happen often and when it does usually it reveals crypto's nature of buying spot and hedging short in the futures market. When prices stay above the upper bound, switch to a higher timeframe until we can see that it's still have some ways upwards.
What's true about using this as a shorting tool is also true with longs. However, it might not be as effective, I'd like to be proven wrong.
Fibonacci Zones EMA Zones StrategyThis idea is only for fun and learning purposes only.
The strategy represents 2 simple math formulas that are very simple. the "Fibo Formula" and the "EMA Formula" Please see source code for reference
I Feel like coders can learn a lot about developing strategies using this source code
This is to show that there is unlimited amount of variables and factors to a strategy and its all about working with probability.
Also to show that unlimited amount of conditions could be added to a strategy.
And unlimited amount of variables/factors with the settings that could change the results.
Rules are simple
Entry on close, Close/Entry must be in the blue Fibo Zone
Blue Fibonacci zone fully customizable
Other Conditions could be added involving EMA zones, Over Ema1, Under Ema1 etc..
TP/SL and Dates Fully Customizable
This script is just an idea fully for learning purposes.
Adaptive VWAP Stdev BandsIntroduction
Heyo, here are some adaptive VWAP Standard Deviation Bands with nice colors.
I used Ehlers dominant cycle theories and ZLSMA smoothing to create this indicator.
You can choose between different algorithms to determine the dominant cycle and this will be used as reset period.
Everytime bar_index can be divided through the dominant cycle length and the result is zero VWAP resets if have chosen an adaptive mode in the settings.
The other reset event you can use is just a simple time-based event, e.g. reset every day.
Usage
I think people buy/sell when it reaches extreme zones.
Enjoy!
---
Credits to:
@SandroTurriate - VWAP Stdev Bands
@blackcat1402 - Dominant Cycle Analysis
@DasanC - Dominant Cycle Analysis
@veryfid - ZLSMA
(Sry, too lazy for linking)
I took parts of their code. Ty guys for your work! Just awesome.
Swing BandsThis indicator is a result of experimentation with price action of candle high and lows for quantifying reversals and trend continuation.
The band area shows trend reversal incoming and possible chop.
Middle line is the trend reversal price level. Candle colors change if the close price is above or below the middle line.
Long and short positions can be taken when above or below the bands.
Trend continuations are in effect when price retraces into the bands and breaks above or below in the same direction of the trend.
Hull Moving Average Bollinger Bands (HMABB)Hello! This is simply Bollinger Bands calculated with HMA! Heres a recap on both.
The Hull Moving Average (HMA) attempts to minimize the lag of a traditional moving average while retaining the smoothness of the moving average line. Developed by Alan Hull in 2005, this indicator makes use of weighted moving averages to prioritize more recent values and greatly reduce lag.
Bollinger Bands are envelopes plotted at a standard deviation level above and below a simple moving average of the price. Because the distance of the bands is based on standard deviation, they adjust to volatility swings in the underlying price. Bollinger Bands use 2 parameters, Period and Standard Deviations, StdDev.
Colorful Channelwhat is "Colorful Channel"?
it is a overbought - oversold indicator.
what it does?
It fills the area between the upper band of the channel and the price line with green, the area between the lower band of the channel and the price line with red color and applies a transparency to these colors according to the distance of the price from the channel lines. thus allowing users to get an idea of ??the current value of the price.
how it does it?
subtracts the percentage of the price from the lower channel from the transparency ratio of the red color, and the percentage of the price from the upper band from the transparency ratio of the green color. thus, a different transparency value is obtained for each percentile. In addition, the transparency rate can be changed with a multiplier determined by the users.
how to use it?
In the "lenght" section, you select the number of bars that the indicator will base backwards on. For example, if length=100, the indicator determines the upper and lower bands according to the distances from the highest and lowest values ??within 100 bar. so the length part works like donchian channels.
You can change the transparency ratio of the colors in the "transp" section.
1 saat transp
yan trend
4 saat
Click Draw TrendLine [UhoKang] v2
This is an indicator that directly draws a trend line by clicking on the candle.
Click to Create Trend lines !!
Create a trend line by connecting A, B, and C with three vertices.
1. Draw Bear Trend line
Click pivot high : First pivothigh of the downtrend line
Click pivot low : pivotlow of the downtrend line
Click pivot high : Second pivothigh of the downtrend line
2. Draw Bull Trend line
Click pivot low : First pivotlow of the uptrend line
Click pivot high : pivothigh of the uptrend line
Click pivot low : Second pivotlow of the uptrend line
Modefiy Trendlines
1. Edit Bear Trend line
Drag Red , ,
2. Edit Bull Trend line
Drag Green , ,
Heiken Ashi Swing High/LowIt uses Heiken Ashi candles to detect recent swing high and low.
It can be used as a stop-loss or support/resistance indicator.
Price Action AverageThis indicator is perfect for scalping in 1 minute, it consists of a channel and a line that is made up of the average of the highs and lows of the price in 12 and 64 cycles.
The channel has as its center a 7 cycles SMA, when the average line (Called Signal, the purple one) crosses the upper band it is time to make a Long.
If it crosses the lower band it is time to make a short, if the line returns to the channel a signal appears to close the operation.
The indicator works with all timeframes, I use it on the 1 hour chart and I do the trades in 1 minute.
Heikin Ashi SupertrendAbout this Strategy
This supertrend strategy uses the Heikin Ashi candles to generate the supertrend but enters and exits trades using normal candle close prices. If you use the standard built in Supertrend indicator on Heikin Ashi candles, it will produce very unrealistic backtesting results because it uses the Heikin Ashi prices instead of the real prices. However, by signaling the supertrend reversals using Heikin Ashi while using standard candle close prices for the entries and exits, it corrects the backtesting errors and gives you a more realistic equity curve. You should set the chart to use standard candles and then hide them (the strategy creates the candles).
This strategy includes:
Plotting of Heikin Ashi candles
Heikin Ashi Supertrend
Long and Short Entry Signals
Move stop loss after trade is X% in profit
Profit Target
Stop Loss
Built in Alertatron automation
Alertatron Trade Automation Integration
For Alertatron integration, be sure to configure the strategy settings and "Enable Webhook Messages" before creating an alert with {{strategy.order.alert_message}} in the body of your alert message. Be sure to enable webhooks and point it to your Incoming Alertatron webhook URL.
Notes
While this strategy does pretty well during trending markets, It's worth noting that the Buy and Hold ROI is much better during peak times of the bull market
Not financial advice. Do not risk more than you can afford to lose.