PGT: Pretty Good TraderLittle bit of background :
I am a broke college student on the East coast, and I have developed a hobby for creating trading algorithms. This is one of the better scripts that I have written. Unfortunately, as a broke college student, I don't have the disposable income to actually trade using real money. If you are interested in donating to my broke college student fund, please message me!
On to the script :
This script was written in pine version 3 and does not calculate_on_tick . This means that it does not repaint . The numbers you see are, to the best of my knowledge, accurate.
Because most scripts tend to overfit data to generate the "best looking data", I decided to create an algorithm that would be generalizable as possible to a diverse number of trading pairs. This script works on both crytpo markets(works best on smaller time frame) and stock markets(works best on larger time frames).
I am publishing this script to both gauge and generate interest in a Python trading bot which I have written which automatically buys and sells on different exchanges by using the predictive signals of this indicator.
Algotrading
My AlgoTraderFirst, please find it in your heart to donate to my broke college student fund. I am in the final stages of making an algorithmic trading bot in Python, which hooks up to this particular exchange, but I do not have the disposable income to really test it out, so any donation helps. Comment below to let me know you donated so others can see your support!
Please send BTC Donations to: 13ZJ3xTLgJ6hNrv7e5eyEqhabxivYnuu8p
Please send LTC Donations to: LYeFrR9faLaAxJdB1anqVu3mCNxADZDHND
Anyway, on the the program.
I made an algorithmic trader which uses a set of self made indicators. This algorithm was written in pine version 3 and does not calculate_on_tick , therefore it does not repaint . The numbers you see are, to the best of my understanding, accurate.
Because I was concerned about overfitting, I created this algorithm with the intention of being generalizable to many different trading pairs. This program is generalizable to most trading pairs -- both crypto and normal stocks. This algorithm works best on shorter time frames for crypto markets, and longer timeframes for the conventional stock market.
Please let me know what you think and what I could do better!
CB Signals - Holla-724 BITMEX BTC/USD Long/Short (Paid Algo)This algo uses a number of strategies developed from 7 yrs of trading this concept in the FX markets. I have modified it for Leverage trading on BITMEX exchange.
You may view detail summary of live performance of this Algo dating from Jan 1st 2018 - Nov 9th 2018 (In one of Bitcoin's worst bear markets) below by clicking the "Performance Summary" Tab :
To signup for this algo please visit the link below:
www.cryptoblood.io
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.
Trend Precognition - Mtrl_ScientistHi everyone,
This is an updated version of my base algorithm "BTC Precognition". I've managed to remove some lag, while at the same time smoothing the curve (blue).
All you need to know about it is on the chart's legend. The arrows just correspond to the bottoms/tops of the blue signal curve (marked with green/red circles). However, predicting turning points is difficult and I'm still working on that. So for now, the signals are offset by 1 candle into the past. This means that all of your trades will be 1 candle late, unless you trade intrabar using your own intuition. As a help, I've also included the first derivative (black curve) that will tell you the slope of the blue curve. Remember, when the curve is about to turn, the slope becomes zero. However, you can anticipate this by looking at the slope's direction and guessing when it will cross the zero line.
This is still all work in progress, so invite-only.
(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.
BCH Precognition - Mtrl_Scientist (study version)Hey everyone!
As requested, this is the study version of the improved 'BCH- Precognition' algorithm, meaning you'll only see the indicator and not have 'longs/shorts' painted on your chart.
- Works better with normal candles now, as internal calculations are forced to be done on Heikin Ashi, regardless of chosen candle format
- Turned into a study, rather than strategy, as not to interfere with strategies that are already in place
- Added Overbought/Oversold conditions (orange) with adjustable threshold, based on normalized price action helper indicator
Green means buy condition is valid, red mean short condition is valid, and orange means overbought/oversold (adjustable in settings).
Reminder: Only for use with BCHUSD, as it draws data for that coin from specific exchanges!
These changes were also added to the strategy version.
Please let me know what you would like to see improved!
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.
BCH Precognition - Mtrl_ScientistHello everyone,
Following up on my first bot, I've tuned my algorithm to work with Bitcoin Cash. In order to get rid of these nasty (and sometimes costly) indecision points, I've just enabled the 'Recalculated After Order Fill' option, which... well, recalculates the algorithm on the spot (instead of waiting for 1 additional bar) for situations where a signal is immediately followed by a conflicting signal, effectively cancelling it out. Obviously you have to rely on your own judgement if that happens in a real world scenario. However, in this simulated environment, this change resulted in a 0% risk, whereas the gain exceeded 800% with an initial capital of $100'000.
Again, in order for the results to be as accurate as possible, I've averaged the date from all major exchanges.
All of this is free to use for you, and you are welcome to share it.
If you like it, please give me a follow on Trading View & Twitter.
If you have any requests or suggestions/concerns, please let me know!
Note:
- This algorithm works best for Heikn Ashi candles, but I'm working on improving it for normal candles
- This is not financial advice (I'm in chemistry, not finance), so do your own research
Mtrl_Scientist
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.
Zos Ichimoku Trading SystemFully automated Ichimoku Cloud based trading system. Automated entry and exits.
Message me on Telegram for access. @zacharyo
(c) Bronte Capital
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.