Bollinger Bands Trend StrategyThis is a trading strategy for trend traders.
Buy signals are generated when price closes above upper band.
Sell signals are generated when price closes below lower band.
Good luck.
Moving Averages
Supertrend adapted to strategy
Supertrend from KivancOzbilgic adapted to strategy so people can accurately maximise its profit regardless the asset and time-frame. Hope it helps
Strategy Follow Line MTF Any MM AverageThe objective is only to evaluate different configurations of the indicator "Follow Line MTF Any MM Average".
The strategy does not have position management, it's very basic, this indicator should be used to see trend, range zones, evaluate the best areas to enter the market, use higher time frames to confirm a direction can be useful.
I do not recommend using only this indicator to trade, because you can lose all your money if you do not know what you are doing.
I hope you find it useful.
Successes
Pivot Point SuperTrend [Backtest]Hello All,
This is backtesting result of following indicator/strategy. I didn't work on adding other indicators. maybe in the future I can try to combine this with other indicators.
You can visit following link to see "Pivot Point SuperTrend" . by using this backtesting tool, you can test&find better options
There is option "Use Center Line to Close Entry for 50%" . by default it's not enabled. if you enable this option, pivot point center line may push you to close your entry for 50% (can be used as early stoploss/take profit line if you think it's risky)
Enjoy!
Noro's TrendMA StrategyThe strategy uses 2 moving averages. Fast and slow. SMA or EMA - the user can select. Moving averages are needed to identify the direction of the trend.
Trend
If both moving averages are directed upwards, it 's uptrend.
If both moving averages are pointing down, it 's downtrend.
If the moving averages are directed in different directions, the trend has not changed.
Background
Lime color is uptrend.
Red color is downtrend.
By default, background display is disabled, but you can enable it in script settings.
Trading
If uptrend (lime background) - open long position (and close short position)
If downtrend (red background) - open short position (and close long position)
Reverse trading, no stop-loss and take-profit
Short positions can be removed and only long positions can be traded.
For
- crypto/USD (XBT/USD, ETH/USD, etc)
- timeframes: 1h, 4h, 1d
eha Moving Averages StrategyMoving Average based strategies are very popular ones among both long-term investors and short-term traders as they can be tailored to any time frame. One of the main moving average strategies are crossovers. The very simple type is a price crossover , which is when the price crosses above or below a moving average to signal a potential change in trend.
Another strategy is to apply two moving averages to a chart: one longer (or slow) and one shorter (or fast). When the shorter-term MA crosses above the longer-term MA, it's a buy signal, as it indicates that the trend is shifting up (also known as “ Golden Cross ”). Meanwhile, when the shorter-term MA crosses below the longer-term MA, it's a sell signal, as it indicates that the trend is shifting down (which is also known as “ Dead/Death Cross ”).
This is a study to find a suitable trading strategy for 4-6 hour time frames. As you can see the performance is currently very poor. It has just generated almost 90 trades in a very long period from January 2017 to the time of publishing the study for the first time.
Moving averages work quite well in strong trending conditions but poorly in choppy or ranging conditions. Adjusting the time frame can correct this problem temporarily, although, at some point, these issues are likely to occur regardless of the time frame chosen for the moving average(s).
I am working on this basic strategy to make its performance better and I will update the post in the future. So keep in touch by following the post.
Why have I republished my study?
It sounds like TradingView stores and indexes scripts based on the title of the post rather than the actual title of the scripts and if one chose general terms as the title of the post, the TradingView script search engine may be unable to find it. So I decided to repost the strategy with a more searchable and unique prefix of " eha ".
Please provide me with your precious feedback.
FTSMA - Trend is your frendThis my new solid strategy: if you belive that "TREND IS YOUR FRIEND" this is for you!
I have tested with many pairs and at many timeframes and have profit with just minor changes in settings.
I suggest to use it for intraday trading .
VERY IMPORTANT NOTE: this is a trend following strategy, so the target is to stay in the trade as much as possible. If your trading style is more focused on scalping and/or pullbaks, this strategy is not for you.
This strategy uses moving averages applied to Fourier waves for forecasting trend direction.
How strategy works:
- Buy when fast MA is above mid MA and price is above slow MA, which acts as a trend indicator.
- Sell when fast MA is below mid MA and price is below slow MA, which acts as a trend indicator.
Strategy uses a lot of pyramiding orders because when you are in a flat market phase it will close 1 or 2 orders with a loss, but when a big trend starts, it will have profit in a lot of orders.
So, if you analize carefully the strategy results, you will note that "Percent Profitable" is very low (30% in this case) because strategy opened a lot of orders also in flat markets with small losses, BUT "Avg # bars in winning trades" is very high and overall Profit is very high: when a big trend starts, orders are kept open for long time generating big profits.
Thanks to all pinescripters mentioned in the code for their snippets.
I have also a study with alerts. Next improvement (only to whom is interested to this script and follows me): study with alerts on multiple tickers all at one. Leave a comment if you want to have access to study.
HOW TO USE STRATEGY AND STUDY TOGHETER:
1- Add to chart the strategy first, so your workspace will be as clean as possible.
2- Open the Strategy Tester tab at footer of the page.
3- Modify settings to get best results (Profit, Profit Factor, Drawdown).
4- Add study with alerts to your chart with same setting of strategy.
I WILL PROVIDE A DETAILED QUICK INSTALLATION GUIDE WITH THE STUDY!
Please use comment section for any feedback or contact me if you need support.
Price X MA CrossIndicates long or short positions based on the crossing of price with a moving average. Different moving average types are available. There is a tolerance parameter to filter out false breakouts.
Double MA CrossStrategy to open long/short positions based on the crossing of 2 different moving averages. Both moving averages are highly configurable: length, source, and moving average type can be changed.
Moving Averages TestingScript for testing price crossing moving average or two moving averages crossing as trade entry
Wilder’s Moving Average StrategyThe Wilder’s Moving Average indicator (Wilder’s Smoothed Moving Average ) was developed by Welles Wilder and introduced in his 1978 book, “New Concepts in Technical Trading Systems.” Mr. Wilder did not use the standard EMA formula; instead, the following formula is used: EMA = Input * K + EMA * (1-K), where K = 2 / (N+1). Then to find the Wilder’s Moving Average, the following calculation is performed: Input * K + EMA * (1-K), where K =1/N.
Type to use
Moving averages are commonly used to identify trends and reversals as well as identifying support and resistance levels. Moving averages such the WMA and EMA , which are more sensitive to recent prices (experience less lag with price) will turn before an SMA . They are therefore more suitable for dynamic trades, which are reactive to short term price movements. Moving averages such as the SMA move more slowly providing valuable information on the long dominant trend. They can however be prone to giving late signals causing the trader to miss significant parts of the price movement.
Hull Moving Average Swing TraderHull Moving Average Strategy
2 X HMA's,
1st HMA on current price (recommended source OPEN)
2nd HMA on previous candle. signal on crossover.
Buy and Sell signals on chart, red & green view pane (Green Buy, Red Sell)
MA-EMA Crossover LTJust a simple strategy based on dynamic zones by Allenster. Still a work in progress.
Strategy Follow Line Indicator The objective is only to evaluate different configurations, I do not recommend using only this indicator to trade, because you can lose all your money if you do not know what you are doing.
I hope you find it useful.
Successes
STRAT_STEMWAPHere is the update to the stem matcs strategy.
Here are the additions to the strategy.
1. VWAP tuning
2. Stop Loss adjusting fields now act more appropriate in relation to the super trend values.
3. Split out the volume checks to individual values for short and long
4. A max loss setting. This needs to be adjusted to which security and position size you are trading.
If you are using this on short time frames I suggest that you tweak your settings often.
BEST ATR Stop Multiple StrategyHello traders
Here we go again.... with another strategy snippet.
Reminder: it's an alternative of this Trailing Stop strategy script
Entry logic
The entry is based on a Simple Moving Averages (SMA) cross.
This part doesn't matter here - as I wanted to focus on the ATR multiple stop loss component.
ATR STOP
This strategy snippet uses an entry stop loss defined based on a multiple of the average true range value.
The soure code detects ATR value at entry price, applies the multiplier and will set a static (= non trailing) stop-loss to each position
A pinescript v4 label will appear for each new signal displaying the ATR*multiplier value at signal time
All the BEST
Dave
EMA Strategy v_1 by.JanS.This Strategy use in 1 hour and daily graph.
Long Strategy;
The strategy is if the EMA_5 cross over EMA_10 in 1 hour chart, it is long opportunity. Now check the price on daily chart.
If the EMA_5 cross over EMA_10 in daily chart, long more!!.
Short Strategy;
If the EMA_5 cross under EMA_10 in 1 hour chart, it is a short opportunity. Now check the price on daily chart.
If the EMA_5 cross under EMA_10 in daily chart, short more!!
This is my first pine editor code. I am new at coding.
MAs & RSI strategy long onlyThis system originates from many articles by Enrico Malverti, Trading System, 2015.
Many trading systems are more stable if you use simple and not so innovative indicators, like exponential moving averages and Relative Strengthe index.
Differently by the original article:
- there is no ATR Filter, but we have introduced a Schaff Indicator. If you have multiple shares/commodities to choose, prefer what has a better value of Schaff;
- there is no fixed stop loss but a second moving average (fast), used as target. There are also Simple Mov Averages on lows (trailing stop loss for long) and a SMA on highs (trailing stop loss for short position).
Be careful, in the system only long case, because being short is not the reverse of being long (as stated in my blog)
SMA on highs are therefore only graphically put.
In this version, I’ve changed the “religious” use of EMAs (“sponsored by” Alexander Elder) to “ordinary” MAs: this because since simple moving averages measure all the factor in addition egual each one, this involve a sort of “offset” in the graph, while EMAs give a major “importance” to the last value (last close itself, you’re already considering): therefore this calculation may be counterproductive.
HOW TO OPERATE
BUY when prices crosses over SMAon long period (we suggest, however, sma long = Sma fast period = no. 11 for italian and european shares)
SELL when
prices go under SMA on lows (7 period), or under on SMA fast!
RSI crosses under level 70 or is higher than 75 (or 80, but in code there is 75)
Moving average system which waits for a better entryWait for a better entry:
A simple way to improve the relevant conditions is to wait for a better price than the system signal. One obvious problem is that when prices give a new signal and move on, you don't have a chance to enter the market at a better price. Statistically, a lot of small improvements may offset the chance that the deal was completely missed. In order to avoid missing the worst case of maximum profit, if there is no trading opportunity within 5 days, we can enter into the market at the closing and if there is no opportunity, the deal will end on day 5.
Moving Average profit targets with var sizeProfit target:
Profit targets are those scenarios where the system expects to be greater than the actual return at the end of the transaction: they may be short-term benefits, such as a favorable price shock model.
In short-term transactions, profit objectives are essential. Price fluctuations make any favorable event likely to turn around in an instant. Moreover, profit objectives are more difficult to integrate into the longer-term trading system, because they are afraid of losing larger profits at risk, so they will replace them with smaller but more frequent gains. As a follower of the trend, once you make a profit and stop earning, but the trend direction is still intact, you need to find a way to re-enter the transaction to avoid losing the rare but very large market situation.
Profit target is best calculated based on price volatility (V), and the most commonly used method:
For Long, the system buy point (E), needs to be multiplied by the average true volatility or annualized volatility :E+f×V.
The net value multiplier f used to calculate the profit level is usually obtained through data mining.
MAMA (Ehlers) MESA Adaptive Moving AverageMAMA ( Ehlers ) MESA Adaptive Moving Average:
What it is and how it works
MESA Phasor is the most advanced futures trading program on the market!
MESA Phasor derives its name from the sinewave generator you probably recall from your high school trigonometry class. As you can see in the diagram, the rotating phasor generates a sine wave in the time domain, visualized as a shadow from the arrow tip of the phasor on the vertical axis. A cycle is completed on each full rotation of the phasor. The angle of the phasor increases at a constant rate, and is reset to zero when 360 degrees of rotation have been achieved. The idea of the trading system is to buy low at the valley of the sine wave , when phasor passes the lower angle, and to sell short at the crest of the sine wave , when the phasor passes the upper angle. Now the trade entries and exits are defined in terms of angles, which are in the frequency domain. Therefore, trading decisions are removed from waveform vagaries in the time domain. This means that the trading decisions are robust across various futures contracts and across all kinds of market conditions.
Underworld Hunter Backtesting AlgorhitmThis strategy is built to prove the profitability of my Underworld Hunter indicator . It tests two different strategies. I won't be going into the calculation again since it is part of the original script. I just made a few adjustments.
First one is clearly visual. It plots slimmer twin-coloured lines now and has a different colour for every extreme level. Second is less obvious - I switched Relative Strength Index for Commodity Channel Index.
Extreme levels are as follows: green 100 -► 120, yellow 120 -► 140, orange 140 -► 160, red 160 -► 180 and purple above 180, I will have a special separate algorithm for testing optimal CCI levels someday, in this script, these values are only meant to help you with manual operations and do not influence results of the strategy in any way.
#Trending strategy
The trending strategy opens a position whenever the price leaves the bands and holds it until two consecutive bars are closed within the bands. The picture shows one winning position that hasn't yet been resulted. It also shows a few fakeouts. For this strategy, you want to keep the length below 110, the deviation should be below 2 and you probably want to play lower timeframes.
#Within the bands
The second strategy is pretty much the opposite. It opens a position when the price reaches outer bands and holds it until two consecutive bars are closed within the bands and current bar closes below previous bars low in case of long. It is working on hourly timeframes and you need higher length and deviation to succeed. The picture shows a few positions on EURUSD. Each of them is profitable but would be much higher if you closed it manually when it was time. You need to enable this strategy, which automatically disables the other one.
When using my script, you need to bear in mind that the first strategy doesn't detect optimal levels to close the price. A trend is often followed by a less volatile and boring correction which causes bands to shrink and lower your profits if you don't close manually as it will take longer till bands are reached.
On the other hand, second script literally has no stop-loss. As long as the price is outside the range, it will never close which will cause major drawdowns, unless you control the trade manually. CCI is here to help you with both.
I also recommend combining this with Market Profile (on TW, there is only Volume Profile, which can be used in a similar way) and trading day theory (trending with multiple distributions, trending day, normal day, a variation on a normal day, non-trending day or neutral day). Always keep in mind that it is up to traders to be profitable, indicators can support a good trader, but they will not fix a bad one.
volume low standard deviation stystemOn the basis of moving average, add moving average and standard deviation line of volume to filter the entry and exit time.
Filter entries and/or exits based on low volume
options = 1, no not enter on low volume
options = 2, exit on low volume
options = 3, both 1 and 2
For others, please refer to the code and notes。