Hello traders, That one is an experiment I was curious to see what a supertrend based on moving average cross could give How does it work? Bull event: fast moving average crossing over the slow moving average Bear event: fast moving average crossing under the slow moving average When the event is triggered, the script will plot the Supertrend as follow UP...
This script consist of two parts: linear SSL and DEMA. The difference between original SSL and current is that it calculated by linear regression. The logic is simple: when SSL "crossunder" and DEMA is above the price - we get short signal. When price became above DEMA and SSL "crossover" - close short.
This 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...
Software part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector...
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...
This is only a slight modification to the existing "MACD Strategy" strategy plugin! found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** . I also had a problem with the standard MACD trading late, per se. To that end I modified the...
Dear community, I've made another simple trading bot for you to use. This bot is based on the Stochastic Oscillator. It only produces long trades currently. I changed the oscillation period to a much longer one, which in turn creates opportunities to trade long term trends. The bot goes long when the Entry lines is crossed from below and it will close its long...
The Gann Swing Oscillator has been adapted from Robert Krausz's book, "A W.D. Gann Treasure Discovered". The Gann Swing Oscillator helps define market swings. You can change long to short in the Input Settings Please, use it only for learning or paper trading. Do not for real trading.
Market prices do not have a Gaussian probability density function as many traders think. Their probability curve is not bell-shaped. But trader can create a nearly Gaussian PDF for prices by normalizing them or creating a normalized indicator such as the relative strength index and applying the Fisher transform. Such a transformed output creates the...
Published source code is subject to the terms of the GNU Affero General Public License v3.0 This script describes and provides backtesting functionality to internal strategy of algorithmic crypto trading software "HatiKO bot". Suitable for backtesting any Cryptocurrency Pair on any Exchange/Platform, any Timeframe. Core Mechanics of this strategy are based on...
MACD – Moving Average Convergence Divergence. The MACD is calculated by subtracting a 26-day moving average of a security's price from a 12-day moving average of its price. The result is an indicator that oscillates above and below zero. When the MACD is above zero, it means the 12-day moving average is higher than the 26-day moving average. This is...
TRADINGVIEW BACKTEST SCRIPT by Lionshare (c) 2015 THS IS A REAL ALTERNATIVE FOR LONG AWAITED TV NATIVE BACKTEST ENGINE. READY FOR USE JUST RIGHT NOW. For user provided trading strategy, executes the trades on pricedata history and continues to make it over live datafeed. Calculates and (plots on premise) the next performance statistics: profit - i.e. gross...
This technique was described by William Blau in his book "Momentum, Direction and Divergence" (1995). 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...
If Volume is less then the previous 20 intervals, Volume is gray. If Volume is greater then the previous 40 intervals, Volume is black. If Volume is less then the previous 2 intervals, Volume is purple. If Volume is less then the previous, Volume is red. If Volume is greater then the previous, Volume is blue. Other - white. You can add on the indicator a...
This script was built using a logical approach to trading systems. All the details can be found in a step by step guide below. I hope you enjoy it. I am really glad to be part of this community. Thank you all. I hope you not only succeed on your trading career but also enjoy it. docs.google.com
The goal of this script is honestly to help everyone learn about trading with bots and algos. At least, to get started. Level 1: 10 lines of code. learn to plot 2 moving averages on your chart. learn to create a signal from a crossover. learn the very basics of Pine Script algo.
Moving Average Envelopes are percentage-based envelopes set above and below a moving average. The moving average, which forms the base for this indicator, can be a simple or exponential moving average. Each envelope is then set the same percentage above or below the moving average. This creates parallel bands that follow price action. With a moving...
Demarker is an indicator similar to DM+ developed by Welles Wilder. The DM+ (a part of Directional Movement System which includes both DM+ and DM- indicators) indicator helps determine if a security is "trending." The differences between the indicators are in the somewhat different calculation methods. You can change long to short in the Input Settings ...