[New series!] [Consistent Losing Strategies] 34 EMA Scalping//---------------------------INTRO------------------------------
Hi All!
Let me introduce myself as a semi-successful forex trader & lover of automation.
I've taken to algo trading and have been hunting down strategies (that usually use indicators) to automate, backtest, and hopefully implement in MT4.
Unfortunately, most strategies are complete bulls*** and the select cases that are shown to "prove" success are limited.
These strategy sources often do not provide useful analytics either.
I want to change that approach to trading! We can really benefit each other and the community by being methodical about backtesting
as well as evaluating our results with some kind of scoring heuristic.
As for what that standardized process looks like..well I'm still working on it.
I'm pretty much on Tv for multiple hours of the day, screening strategies via Pinescript and I'd like to start sharing my progress!
This is a new series I'd like to start on consistently losing strategies. I'll make all the code public, so if you think I've made a blunder
or approached a problem the wrong way, then drop me a DM or paste your fix into the comments.
//---------------------------STRAT------------------------------
34 EMA Scalping strategy (ref. forextradingstrategies4u )
How you're supposed to trade it:
BUY:
1. Market is in an down trend as shown by the 34 EMA
2. Price breaks above a downwards trend line
3. Price breaks above the 34 EMA
4. Look for a very bullish candlestick or chart pattern
SELL:
1. Look for the 34 EMA to show we are in an uptrend
2. Price breaks below an upwards sloping trend line
3. Price breaks below 34 EMA
4. Look for a bearish candlestick or a chart pattern
//---------------------------CONC------------------------------
Q: Why does it fail?
A: I believe this strategy relies too much on subjective input (aka, trendlines).
Q: Why does it fail as an algo?
A: The 34 EMA is no more predictive than any other EMA, although it does a good job at filtering out noise.
Q: Should I try it out?
A: No, it's trash. This is the proof that it is trash.
Algotrading
Bullish Engulfing Backtest This is a bullish reversal pattern formed by two candlesticks. Following a downtrend,
the first candlestick is a down candlestick which is followed by an up candlestick
which has a long real body that engulfs or contains the real body of the prior bar.
The Engulfing pattern is the reverse of the Harami pattern.
WARNING:
- For purpose educate only
- This script to change bars colors.
Bearish Engulfing Backtest This is a bearish candlestick reversal pattern formed by two candlesticks.
Following an uptrend, the first candlestick is a up candlestick which is
followed by a down candlestick which has a long real body that engulfs or
contains the real body of the prior bar. The Engulfing pattern is the reverse
of the Harami pattern.
WARNING:
- For purpose educate only
- This script to change bars colors.
(H-L)/C Histogram Backtest This histogram displays (high-low)/close
Can be applied to any time frame.
WARNING:
- For purpose educate only
- This script to change bars colors.
CMO & WMA Backtest ver 2.0 This indicator plots Chandre Momentum Oscillator and its WMA on the
same chart. This indicator plots the absolute value of CMO.
The CMO is closely related to, yet unique from, other momentum oriented
indicators such as Relative Strength Index, Stochastic, Rate-of-Change,
etc. It is most closely related to Welles Wilder?s RSI, yet it differs
in several ways:
- It uses data for both up days and down days in the numerator, thereby
directly measuring momentum;
- The calculations are applied on unsmoothed data. Therefore, short-term
extreme movements in price are not hidden. Once calculated, smoothing
can be applied to the CMO, if desired;
- The scale is bounded between +100 and -100, thereby allowing you to clearly
see changes in net momentum using the 0 level. The bounded scale also allows
you to conveniently compare values across different securities.
Trend Trader Bands Backtest This is plots the indicator developed by Andrew Abraham
in the Trading the Trend article of TASC September 1998
It was modified, result values wass averages.
And draw two bands above and below TT line.
Trend Trader AVR Backtest This is plots the indicator developed by Andrew Abraham
in the Trading the Trend article of TASC September 1998
It was modified, result values wass averages.
Ichimoku Backtest Ichimoku Strategy
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Absolute Price Oscillator (APO) Backtest 2.0 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.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Market Facilitation Index (MFI) Backtest The Market Facilitation Index is an indicator that relates price range to
volume and measures the efficency of price movement. Use the indicator to
determine if the market is trending. If the Market Facilitation Index increased,
then the market is facilitating trade and is more efficient, implying that the
market is trending. If the Market Facilitation Index decreased, then the market
is becoming less efficient, which may indicate a trading range is developing that
may be a trend reversal.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Keltner Channel Backtest The Keltner Channel, a classic indicator
of technical analysis developed by Chester Keltner in 1960.
The indicator is a bit like Bollinger Bands and Envelopes.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Woodie Pivot Points Backtest Simply input the vales of the high, low and closing price of the previous
period to calculate the Woodie pivot point and the associated resistance
and support levels for the present period.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Volatility Backtest The Volatility function measures the market volatility by plotting a
smoothed average of the True Range. It returns an average of the TrueRange
over a specific number of bars, giving higher weight to the TrueRange of
the most recent bar.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
TFS: MBO Backtest MBO indicator is the third component of TFS trading system. This indicator
was developed by Bryan Strain and Mark Whitley.
The idea of MBO is similar to moving average convergence/divergence (MACD)
indicator. It is calculated by subtracting the 200-day moving average from
the 25-day moving average.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
TEMA1 Backtest This study plots the TEMA1 indicator. TEMA1 ia s triple MA (Moving Average),
and is calculated as 3*MA - (3*MA(MA)) + (MA(MA(MA)))
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Smart Money Index (SMI) Backtest Attention:
If you would to use this indicator on the ES, you should have intraday data 60min in your account.
Smart money index (SMI) or smart money flow index is a technical analysis indicator demonstrating investors sentiment.
The index was invented and popularized by money manager Don Hays. The indicator is based on intra-day price patterns.
The main idea is that the majority of traders (emotional, news-driven) overreact at the beginning of the trading day
because of the overnight news and economic data. There is also a lot of buying on market orders and short covering at the opening.
Smart, experienced investors start trading closer to the end of the day having the opportunity to evaluate market performance.
Therefore, the basic strategy is to bet against the morning price trend and bet with the evening price trend. The SMI may be calculated
for many markets and market indices (S&P 500, DJIA, etc.)
The SMI sends no clear signal whether the market is bullish or bearish. There are also no fixed absolute or relative readings signaling
about the trend. Traders need to look at the SMI dynamics relative to that of the market. If, for example, SMI rises sharply when the
market falls, this fact would mean that smart money is buying, and the market is to revert to an uptrend soon. The opposite situation
is also true. A rapidly falling SMI during a bullish market means that smart money is selling and that market is to revert to a downtrend
soon. The SMI is, therefore, a trend-based indicator.
Some analysts use the smart money index to claim that precious metals such as gold will continually maintain value in the future.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Percent difference between price and MA Backtest Percent difference between price and MA
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Modified Price-Volume Trend Backtest The related article is copyrighted material from
Stocks & Commodities.
Strategy by HPotter.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Last High and Low Level Backtest This script shows a high and low period value.
SelectPeriod - Day or Week or Month and etc.
LookBackPeriods - Shift levels 0 - current period, 1 - previous and etc.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
High and Low Levels Backtest This script shows a high and low period value.
Width - width of lines
SelectPeriod - Day or Week or Month and etc.
LookBack - Shift levels 0 - current period, 1 - previous and etc.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Floor Pivot Points Backtest The name ‘Floor-Trader Pivot,’ came from the fact that Pivot points can
be calculated quickly, on the fly using price data from the previous day
as an input. Although time-frames of less than a day can be used, Pivots are
commonly plotted on the Daily Chart; using price data from the previous day’s
trading activity.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Finite Volume Elements (FVE) Backtest The FVE is a pure volume indicator. Unlike most of the other indicators
(except OBV), price change doesn?t come into the equation for the FVE (price
is not multiplied by volume), but is only used to determine whether money is
flowing in or out of the stock. This is contrary to the current trend in the
design of modern money flow indicators. The author decided against a price-volume
indicator for the following reasons:
- A pure volume indicator has more power to contradict.
- The number of buyers or sellers (which is assessed by volume) will be the same,
regardless of the price fluctuation.
- Price-volume indicators tend to spike excessively at breakouts or breakdowns.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Ergodic CSI Backtest This is one of the techniques described by William Blau in his book
"Momentum, Direction and Divergence" (1995). If you like to learn more,
we advise you to read this book. His book focuses on three key aspects
of trading: momentum, direction and divergence. Blau, who was an electrical
engineer before becoming a trader, thoroughly examines the relationship between
price and momentum in step-by-step examples. From this grounding, he then looks
at the deficiencies in other oscillators and introduces some innovative techniques,
including a fresh twist on Stochastics. On directional issues, he analyzes the
intricacies of ADX and offers a unique approach to help define trending and
non-trending periods.
This indicator plots Ergotic CSI and smoothed Ergotic CSI to filter out noise.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.