HFT Quant AlgoPrivate Fund Algo - HFT/Quant Approach Beta I
2019 Performance
1/Jan/2019 ~ 8/May/2019
Included:
Commission 0.1%
Slippage 100 ticks
Algotrading
Combo Backtest 123 Reversal and ADXR This is combo strategies for get 
 a cumulative signal. Result signal will return 1 if two strategies 
 is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
 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.
 Secon strategy
 The Average Directional Movement Index Rating (ADXR) measures the strength 
 of the Average Directional Movement Index (ADX). It's calculated by taking 
 the average of the current ADX and the ADX from one time period before 
 (time periods can vary, but the most typical period used is 14 days).
 Like the ADX, the ADXR ranges from values of 0 to 100 and reflects strengthening 
 and weakening trends. However, because it represents an average of ADX, values 
 don't fluctuate as dramatically and some analysts believe the indicator helps 
 better display trends in volatile markets.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Reversal and Accelerator Oscillator (AC) This is combo strategies for get 
 a cumulative signal. Result signal will return 1 if two strategies 
 is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
 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 Accelerator Oscillator has been developed by Bill Williams 
 as the development of the Awesome Oscillator. It represents the 
 difference between the Awesome Oscillator and the 5-period moving 
 average, and as such it shows the speed of change of the Awesome 
 Oscillator, which can be useful to find trend reversals before the 
 Awesome Oscillator does.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Reversal and Absolute Price Oscillator (APO) This is combo strategies for get 
 a cumulative signal. Result signal will return 1 if two strategies 
 is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
 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.
 Secon strategy
 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.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Strategies 123 Reversal and 3-Bar-Reversal-Pattern This is combo strategies for get 
 a cumulative signal. Result signal will return 1 if two strategies 
 is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
 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.
 Secon strategy
 This startegy based on 3-day pattern reversal described in "Are Three-Bar 
 Patterns Reliable For Stocks" article by Thomas Bulkowski, presented in 
 January,2000 issue of Stocks&Commodities magazine.
 That pattern conforms to the following rules:
 - It uses daily prices, not intraday or weekly prices;
 - The middle day of the three-day pattern has the lowest low of the three days, with no ties allowed;
 - The last day must have a close above the prior day's high, with no ties allowed;
 - Each day must have a nonzero trading range. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Reversal and 2/20 EMA This is combo strategies for get 
 a cumulative signal. Result signal will return 1 if two strategies 
 is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
 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.
 Secon strategy
 This indicator plots 2/20 exponential moving average. For the Mov 
 Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.
 Please, use it only for learning or paper trading. Do not for real trading.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Commodity Selection Index Backtest The Commodity Selection Index ("CSI") is a momentum indicator. It was 
 developed by Welles Wilder and is presented in his book New Concepts in 
 Technical Trading Systems. The name of the index reflects its primary purpose. 
 That is, to help select commodities suitable for short-term trading.
 A high CSI rating indicates that the commodity has strong trending and volatility 
 characteristics. The trending characteristics are brought out by the Directional 
 Movement factor in the calculation--the volatility characteristic by the Average 
 True Range factor.
 Wilder's approach is to trade commodities with high CSI values (relative to other 
 commodities). Because these commodities are highly volatile, they have the potential 
 to make the "most money in the shortest period of time." High CSI values imply 
 trending characteristics which make it easier to trade the security.
 The Commodity Selection Index is designed for short-term traders who can handle 
 the risks associated with highly volatile markets.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Three Outside Up Backtest    This is a three candlestick bullish reversal pattern consisting of a bullish 
    engulfing pattern formed by the first two candlesticks then followed by an up 
    candlestick with a higher close than the prior candlestick.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Three Outside Down Backtest    This is a three candlestick bearish reversal pattern consisting of a bearish 
    engulfing pattern formed by the first two candlesticks then followed by a down 
    candlestick with a lower close than the prior candlestick.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Three Inside Up Backtest    This is a three candlestick bullish reversal pattern consisting of a 
    bullish harami pattern formed by the first 2 candlesticks then followed 
    by up candlestick with a higher close than the prior candlestick.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Three Inside Down Backtest    This is a three candlestick bearish reversal pattern consisting of a bearish 
    harami pattern formed by the first 2 candlesticks then followed by down 
    candlestick with a lower close than the prior candlestick.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Adaptive Zero Lag EMA v2This is my most successful strategy to date! Please enjoy and join the Open Source movement by sharing your code and ideas online!
OPERATING PRINCIPLE
The strategy is based on Ehlers idea that any indicator can be turned into a signal-producing trade system through smoothing and other filtering processes.
In fact, I'm using his Zero Lag EMA (ZLEMA) as a baseline indicator as well as some code snippets he has made public (1). God bless open source!
Next, I've provided the option to use an Instantaneous Frequency Measurement (IFM) method, which will adaptively choose the best period for the ZLEMA (2)
I've written other studies that use the differential calculus approximations for IFM, so it was only natural to include them in this strategy.
The primary two are Cosine IFM (3) and In-phase Quadrature IFM (4). You can also find an indicator with both plotted and the ability to average them together, as one IFM prefers long periods and the other short. (5)
BEFORE WE BEGIN
1. This strategy only runs on "normal" FX pairs (EURUSD, GBPJPY, AUDUSD ...) and will fail on Metals or Commodities.
    Cryptos are largely untested.
2. Please run it on these time frames: M15 to D.
    Anything outside this range will likely fail.
HOW TO USE AND SUCCEED
1. If the Default settings don't produce good results right off the bat, then lower  gain limit  to 1 or 2 and  threshold  to 0.01.
2. Test each setting under  adaptive method . If you want to leave it  Off , then I'd recommend using some kind of IFM (see my links below) to 
    discover the most efficient period to use.
3. Once you have the best  adaptive method  chosen, begin incrementing  gain limit  until you find a nice balance between profit factor (PF) and drawdown.
4. Now, begin incrementing  threshold . The goal is to have PF above 2 and a drawdown as low as possible.
5. Finally, change the  source ! Typically,  close  is the best option, but I have run into cases where  high 
    yielded the highest returns and win rate.
6. Sit back, relax, and tweak the  risk  until you're happy with the return and drawdown amounts.
ADVANCED
You may need to adjust take profit (TP) points and stop loss (SL) points to create the best entry possible. Don't be greedy! You'll likely have poor
results if the TP is set to 300 and SL is 50.
If you are trading a pair that has a long  Dominant Cycle Period , then you may increase  Max Period  to allow the IFM 
to accept longer periods. Any period above the  Max Period  will be rejected. This may increase lag time!
Cheers and good luck trading!
-DasanC
PS - This code doesn't repaint or have future-leak, which was present in Pinescript v2. 
PPS - Believe me! These returns are typical! Sometimes you must push aside the "if it's too good to be true..." mindset that society has ingrained in you. 
         Do you really believe the most successful pass up opportunities before investigating them? ;)
(1) Ehlers & Ric Zero Lag EMA  
(2) Measuring Cycles by Ehlers  
(3) Cosine IFM 
(4) Inphase Quadrature IFM 
(5) Averaging IFM
Adaptive Zero Lag EMA Strategy [Ehlers + Ric]Behold! A strategy that makes use of Ehlers research into the field of signal processing and wins so consistently, on multiple time frames AND on multiple currency pairs.
The Adaptive Zero Lag EMA (AZLEMA) is based on an informative report by Ehlers and Ric  .
I've modified it by using Cosine IFM, a method by Ehlers on determining the dominant cycle period without using fast-Fourier transforms    
Instead, we use some basic differential equations that are simplified to approximate the cycle period over a 100 bar sample size.
The settings for this strategy allow you to scalp or swing trade! High versatility!
Since this strategy is frequency based, you can run it on any timeframe (M1 is untested) and even have the option of using adaptive settings for a best-fit.
>Settings
 
 Source :       Choose the value for calculations (close, open, high + low / 2, etc...)
 Period :       Choose the dominant cycle for the ZLEMA (typically under 100)
 Adaptive? :  Allow the strategy to continuously update the Period for you (disables Period setting)
 Gain Limit : Higher = faster response. Lower = smoother response. See   for more information.
 Threshold :  Provides a bit more control over entering a trade. Lower = less selective. Higher = More selective. (range from 0 to 1)
 SL Points :   Stop Poss level in points (10 points = 1 pip)
 TP Points :   Take Profit level in points
 Risk :           Percent of current balance to risk on each trade (0.01 = 1%)
 
  www.mesasoftware.com
  www.jamesgoulding.com(Measuring%20Cycles).doc
  
Doji Backtest   This is a candlestick where the open and close are the same. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Dark Cloud Backtest    This is a bearish reversal pattern formed by two candlesticks  within a uptrend. 
    Consists of an up candlestick followed by a down candlestick which opens lower 
    than the prior candlestick and closes below the midrange of the prior candlestick. 
    It is the reverse of the Piercing Line.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Bullish Harami Backtest    This is a bullish reversal pattern formed by two candlesticks in which a small 
    real body is contained within the prior session's unusually large real body.
    Usually the second real body is the opposite color of the first real body. 
    The Harami pattern is the reverse of the Engulfing pattern. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
CB Signals - Holla-724 BITMEX ETH/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 - Jan 17th 2019 (In one of Crypto's worst bear markets) below by clicking the "Performance Summary" Tab: 
To signup for this algo please visit the link below: 
www.cryptoblood.io
Bearish Harami Backtest    This is a bearish reversal pattern formed by two candlesticks in which a short 
    real body is contained within the prior session's long real body. Usually the 
    second real body is the opposite color of the first real body. The Harami pattern 
    is the reverse of the Engulfing pattern. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
[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.
HATbot v1 Automation Script and Indicator [Backtest]This is the debut release of HATbot. 
HATbot is a terrible name for a new trend following indicator and strategy script. 
Backtest window: 2018-01-01 to 2019-01-01. 
Initial capital: $1000 
Shorting: enabled
Megalodon Pro Automated Trader BackTester
 Why Megalodon? 
 We believe that  enlightening  others is an incredible way to make this world a better place. That's why we created the tools you need to stop worrying about your investments and focus on what really matters in your life.
 What is Megalodon? 
 Megalodon uses  Artificial Intelligence  that combines  574  back-tested indicators and  2674  back-tested setups, simultaneously.
 Megalodon works with any kind of  asset ,  market state  and  time frame .
 What is the win rate? 
 Megalodon is  extremely accurate  and offers  insane profits  as long as  the fundamental analysis is done right . 
 Backtesting results can be found on our  social media  or  down below .
 How to use Megalodon Pro Automated Trader? 
 Simply, orange rectangles are  buy signals  and purple rectangles are  sell signals .
 Green clouds show buy signals and red clouds show sell signals.
 Yellow line shows the difference between buy and sell counts.
 How to set alarms on Megalodon Pro Automated Trader? 
 Click on Alert, select  Megalodon Pro Automated Trader  and click on Buy-Signal or Sell-Signal. More details can be found on our social media. 
 You may also watch our Megalodon Investing Tutorials on Youtube for more information.
 How to purchase? 
 Megalodon  is totally  FREE .
You may upgrade to  Megalodon Pro  for the  most important features , including  automizing your trading  on any asset profitably,  setting up alarms to get notified ,  joining to our VIP telegram channel  to get daily updates and our VIP telegram group to interact with the community. Simply  go to our website  on our  TradingView page  for learning more and joining us for free.
 
 Some of the backtesting results are: 
 BTC/USD for longer time frame trading in the bear market for the last year.
  
 APPLE for longer time frame trading in the bull market for the last 10 years.
  
 EURO/USD for day trading in the neutral market for the last month.
  
 BTC/USD for day trading in the bull market for the last 15 days.
  
 APPLE for day trading in the neutral market for the last 2 days and 6 hours.
  
Bitcoin Trading Algo, 30,500% profit long + short. Beats HODLingREAD DISCRIPTION FIRST 
Trading view have taken off the Invite Only options for scripts from free accounts and since I usually only like people I know using my scripts I have programmed my own password and Keycode system within pine script, the Keycode changes every month and is determined by a random number algorithm so you will need to know both the password and the keycode for the script to wok for you. 
The objective for this strategy was to reduce the standard divination of bitcoin returns through risk management, this is done with both long and short trades. It looks to get on board when a trend is detected and adds to the position to average out all entry points. When the momentum begins to decelerate all trades are closed. 50% of these trades will usually be in profit and 50% will usually be a loss, however profits are 3x larger than losses.
To demonstrate that the deviation of retuns of the strategy is lower than hodling, I leaveraged the strategy to a similar drawdown level to hodling so that you can compare the two. 
When risk adjusted, my strategy beats buy and hold returns by about 600%, although I am personally trading the strategy unleaveraged.
CB Signals - Holla-724 SPOT BTC/USD LONG ONLY (Paid Algo)This is the updated script with results for the last 3 months of the trading room July 19 - Oct 19th. This algo returned (1.86%) vs. Buy and Hold returns of (-12%) 
See details on performance in this period below by clicking the "Performance Summary" Tab






















