Wave Trend Strategy [LazyBear] & SqueezeThis strategy is a port of famous script Wave Trend Oscillator with a plus: squeeze indicator (LazyBear).
@author LazyBear
Original study from LazyBear
Scope of this port is to identify corrects inputs to get best results from signals that indicator gives.
The squeeze gives a further filter before orders and avoid to enter in a flat market period.
I attached it to chart with heikin ashi candles to have a better result and remove noise: results are good.
Please use comment section for any feedback.
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.
********************************** IMPORTANT*******************************
I have developed an expert advisor for metatrader4 (MT4): results of expert advisor form 2015-01-01 to 2018-11-25 are very good with low drawdown and good profit.
********************************************************************************
Volatility
KBL Trend - FilterKBL Trend Filter is a combination of Average true range and range breakout settings.
When KBL Trend -Filter Vertical line indicated with Green color and price cross over the candle on which the green vertical indicator came, then it is considered as a buy trades.
And same for sell trade,
When KBL Trend -Filter Vertical line indicated with Red color and price cross below the candle on which the Red vertical indicator came, then it is considered as a sell trades.
KBL Trend - MasterKBL Trend Master is Specially design to detect the upcoming and current trend using Price action and ATR based combined Trading strategy.
When KBL Trend - Master line indicated with Teal color and price is above the KBL Trend - Master Line , Then the trend is in buy side and a buy trade is preferred.
And same for sell trade,
When KBL Trend - Master line indicated with Orange color and price is Below the KBL Trend - Master Line , Then the trend is in sell side and a sell trade is preferred.
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.
DMT Autobot StrategyDMT its a Modified homemade Trend Reversal Indicator base on Volatility & Average true range
You have to have a defined trading plan and you also have to believe it. For this, it is necessary to have coordination and harmony between the conscious and subconscious part of the individual, That is why it is so difficult for most retail traders to be profitable
ĐΜŦ is designed to identify spots in the market that offer some of the most suitable buy and sell scalping trading opportunities plus swing trading over runs.
ĐΜŦ is comprised of three inputs, which are helping to identify the volatility of a security. To determine the level of volatility there are three ranges included in the equation
Input 1 - Current Day's Range
Input 2 - How High has the security risen from the previous day's close
Input 3 - How low has the security dropped from the previous day's close
One of the greatest challenges for new traders is avoiding drawdowns on their account. Drawdowns are what kills a trader's ability to consistently earn over the long haul and creates enormous emotional pain and turmoil.
Drawdowns are a result of two factors:
(1) over-leverage and
(2) extremely volatile stocks. One could argue that if you get to number 1 right, the volatility is irrelevant; however, these two elements are not always mutually exclusive.
HOW TO USE
Buy and sell signals for entry
and 1 take profit levels
1 adjustable stop loss level for each direction.
easy to set up with Autobot service and alert system trading
Percent Trailing Stop %===========
Percent Trailing Stop %
===========
Another Stop Loss Indicator today - our last Fixed SL/TP script went down quite well, this one is for adding a Percent Trailing Stop from Entry Price to your own strategy.
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT profitable and NOT recommended!
You should be using this code as a way of adding a % Trailing Stop to your own scripts - hope it helps!
You should also notice that a generally considered losing strategy (a simple MA cross) could actually become profitable with careful money management - try combining this Trailing Stop script with our Fixed Stop/Take Profit script for really accurate management of your capital.
-----------
Good Luck and Happy Trading!
Fixed Percent Stop Loss & Take Profit %===========
Fixed Percent Stop Loss & Take Profit %
===========
A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price.
Yup, that's about it!
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT really profitable and NOT recommended!
You should be using this code as a way of adding Stops and Takes to your own scripts - hope it helps!
-----------
Good Luck and Happy Trading!
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.
PowerBot Binary Backtest FrameworkHello Traders,
This is the backtest framework for testing the Powerbot algorithm before activating alerts which can be used for precise Trading.
Powerbot can be used across any timeframe and across any expiration based on the performance
This backtest comes with some features to help traders make a decision on the following:
When using the indicator itself.
1. We use our proprietary algorithm - "Powerbot binary algorithm script", which is Public but can only be accessed based on request. If you would like to use the algorithm please ensure you have tested different assets and varying expiration for your trades through the backtest - if you don't know how to do that please contact us by sending a message.
EXPLORE YOUR OPTIONS FOR TRADING THROUGH VARIED ITERATION.
2. You can choose any expiration time by changing the expiration time period from the 'settings' button, this will display new results. example; on a 5 minutes chart timeframe, 6 bars would be 30 minutes, which means 5 minutes times 6, which is 30 and minutes because your timeframe is set to minutes. Another example is that on a 1-hour timeframe, 12 bars would be 12 hours, given 1 * 12 is 12hours, because your timeframe is set to hours.
3. You can choose the trading session you want, please note that we have included the three most active sessions - ASIAN, EU/UK, & US Session, by default, the scripts checks for performance on 24/7, which means it does not omit trades outside of the trading session. The Tradingview time is in UTC (or GMT -4). The best times to trade are during sessions most active times.
This backtesting indicator is free to add to the chart if you would like to use the algorithm during your trading session you need to contact us. After which you can use the algorithm for as long as you want.
Please note that no signal can work in all timeframe across all markets that is why backtesting to search for algorithms with at least 50% performance ratio is excellent for trading. All you need is to diversify alerts across to assets or more to rake in profits.
If you require assistance in understanding what session would work best, you can send us a message to work through the process together.
Thank you for you support. This script is free to use to see potential of the indicator itself.
We are NOT allowed to advertise any script on sale based on tradingview house rules.
Wishing you all the best.
MTF Trailing SL Strategy [QuantNomad]This is a Multi-Timeframe version of my Trailing SL Strategy.
Few weeks ago I published Trailing SL Strategy. There I used only basic Trailing SL to enter positions.
It worked pretty well so I tried to work on it a bit. I thought what if you can use the same ATR TSL on different timeframes and combine them into one signal.
In this strategy you can use only ATR stops and choose 3 other higher timeframes in addition to your current timeframe.
You'll see Trailing SL plotted on the chart form all these timeframes.
Entry Long position if all 4 time-frames agree on long signal.
Exit Long positions when at least 2 time-frames disagree on long signal.
Entry to Short position if all 4 time-frames agree on Short signal.
Exit from Short positions when at least 2 time-frames disagree on Short signal.
Here is the link to my basic Trailing SL Strategy:
Sqeeze Momentum, DMI and Parabolic SAR strategyThe script combines Sqeeze Momentum, Directional Movement Index (DMI) and Parabolic SAR indicators in long and short scalping strategies
When conditions of long or short position from all mentioned indicators are met script opens position. Once trend changes it closes position and fixes profit
Advantages:
1. Deal start condition includes the folowing filters and requirements:
- Momentum value is adjusted using a relative proportion of volume at each timeframe scale to exclude a chance of opening position at a low impulse stage
- Squeeze momentum trigger condition is automatically checked before a position is opened
- +DI , -DI and ADX values are taken into account to confirm the trend direction
- Position size is taken into account to ensure there will not be opened any excess deals or alerts
2. Exit deal condition was modified using Parabolic SAR indicator. Hence, it is ensured positions will not be closed in a middle of a trend
3. Study is modified into strategy allowing you to use it directly through the trading panel
If you want to obtain access to the strategy please send us a personal message
Blue FX Trend StrategyHi, welcome to the Blue FX Trend Strategy Script.
What does it do?
Our strategy will help you identify the current trend in the markets and highlight when this is changing. The strategy itself is based upon 4 indicators lining up in total confluence to increase the probability of the trade being a success, this is specifically an EMA, MACD settings, Supertrend criteria and also Momentum.
Absolutely no technical analysis is needed to trade this successfully - this can be used on all time frames and all pairs - obviously with varying profitability as all pairs work differently - this can be reviewed quickly in 'Strategy Tester' to hone in on your own desired settings.
When all criteria is in alignment the strategy will convert all candles to the relevant colour - Green for an uptrend and Red for a downtrend; a candle that is printed normally simply shows that no current trend is in place to warrant a colour change. A normal coloured candle could possibly indicate a change in current market direction or the market consolidating before a further move in the initial direction. When a new signal is valid 'Blue FX Buy'' or 'Blue FX Sell' will be displayed and the small arrow shown on candle open for entry.
How do I use it?
Our strategy is invite only - upon joining our group we will allow you access to the script. This will then simply display on your device ready for you to start trading from. There is substantial functionality within the strategy, you can;
See the success of the default settings in the past using the 'Strategy Tester' Function for numerous settings
1. Following the settings 'Trail'
2. Changing your TP function with the other criteria listed
3. Using a Fixed TP or SL function
Upon changing the Script to 'Fixed' you will see numerous trades on the chart displayed differently.
Scaling into a profitable position is also possible - this is ideally done when the candle colour confirms the trend is continuing after rejection/support from the EMA; we show this below;
You could also enter here if you missed the initial sell signal, we have MA rejection and a red printed candle indicating all confluences are in play and we have high probability for the move to continue.
How do I know its profitable?
We have built numerous customisable settings into the strategy for you to see that this is profitable - you can visually see this too. The settings are also customisable to find the right criteria for the right pair on the right time-frame. Ultimately, with the strategy confluences in place, you are putting probability in your favour and can quickly determine the trend in place if there is one. Within the customisable settings there is a compound function too, so if you were to compound your profit the results can be exceptional.
We have also added an H4 confluence, so you can ensure if trading on a lower time-frame you are in the overall direction of the H4 trend too, a useful setting for more confluence again.
Where do I set my Stop loss or Take Profit?
There is no right or wrong to this and we have attempted to build numerous ways of doing this into the strategy for reference.
For setting a SL you could;
1. Use a fixed SL.
2. Place the SL below the last high or low in the trend.
3. Use an ATR function.
4. Place the SL 5 pips below the last 3 candles.
5. Or, trail the price if you are on screen until the next signal is given and a new trend starts - although unless a big trend, you may miss out on some profit by the time price has pulled back.
For placing a Take Profit, you could;
1. Use a fixed TP.
2. Look for the next supply/demand area on the chart (if it breaks and candle colour supports direction - you could enter again).
3. Use an ATR function.
5. Or, trail the price if you are on screen until the next signal is given and a new trend starts - although unless a big trend, you may miss out on some profit by the time price has pulled back.
6. Secure multiple TPs - 20/50/100 pips with Stop loss to entry after the first target is hit.
Here are some examples of the Buy and Sell signals in action;
Will also work on Commodities and Indices as shown below too;
Our recommended visual settings are below;
1. Set to'Trail' Strategy
2. Under 'Style' tab, select Trades on Chart, but un-select both Signal Labels and Quantity to clean up the chart - these settings are useful when testing to see where the trades are opened and closed.
3. We like the candles changing colour to the trend and criteria set however, these can be turned off to display normal bullish and bearish candles.
When reviewing profitability you can do this by selecting 'Overview' 'Performance Summary' and 'List of Trades'.
Please consider that the settings based into the strategy could differ to your own money management rules and your management of your SL and TP as outlined above - we have tried to cover as many bases as possible here.
We look forward to you using this strategy to profit from the market, please share your feedback and results with us.
Kind regards
Blue FX Team
XPloRR S&P500 Stock Market Crash Detection Strategy v2XPloRR S&P500 Stock Market Crash Detection Strategy v2
Long-Term Trailing-Stop strategy detecting S&P500 Stock Market Crashes/Corrections and showing Volatility as warning signal for upcoming crashes
Detecting or avoiding stock market crashes seems to be the 'Holy Grail' of strategies.
Since none of the strategies that I tested can beat the long term Buy&Hold strategy, the purpose was to detect a stock market crash on the S&P500 and step out in time to minimize losses and beat the Buy&Hold strategy. So beat the Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade.
With the default parameters the strategy generates 10262% profit (starting at 01/01/1962 until release date), with 10 closed trades, 100% profitable, while the Buy&Hold strategy only generates 3633% profit, so this strategy beats the Buy&Hold strategy by 2.82 times !
Also the strategy detects all major S&P500 stock market crashes and corrections since 1962 depending on the Trailing Stop Smoothness parameter, and steps out in time to cut losses and steps in again after the bottom has been reached. The 5 major crashes/corrections of 1987, 1990, 2001, 2008 and 2010 were successfully detected with the default parameters.
The script was first released on November 03 2019 and detected the Corona Crash on March 04 2020 with a Volatility crash-alert and a Sell crash-alert.
I have also created an Alerter Study Script based on the engine of this script, which generates Buy, Sell and Volatility signals.
If you are interested in this Alerter version script, please drop me a mail.
The script shows a lot of graphical information:
the Close value is shown in light-green. When the Close value is temporarily lower than the Buy value, the Close value is shown in light-red. This way it is possible to evaluate the virtual losses during the current trade.
the Trailing Stop value is shown in dark-green. When the Sell value is lower than the Buy value, the last color of the trade will be red (best viewed when zoomed)
the EMA and SMA values for both Buy and Sell signals are shown as colored graphs
the Buy signals are labeled in blue and the Sell signals are labeled in purple
the Volatility is shown below in green and red. The Alert Threshold (red) is default set to 2 (see Volatility Threshold parameter below)
How to use this Strategy?
Select the SPX (S&P500) graph and add this script to the graph.
Look in the strategy tester overview to optimize the values Percent Profitable and Net Profit (using the strategy settings icon, you can increase/decrease the parameters), then keep using these parameters for future Buy/Sell signals on the S&P500.
More trades don't necessarily generate more overall profit. It is important to detect only the major crashes and avoid closing trades on the smaller corrections. Bearing the smaller corrections generates a higher profit.
Watch out for the Volatility Alerts generated at the bottom (red). The Threshold can by changed by the Volatility Threshold parameter (default=2% ATR). In almost all crashes/corrections there is an alert ahead of the crash.
Although the signal doesn't predict the exact timing of the crash/correction, it is a clear warning signal that bearish times are ahead!
The correction in December 2018 was not a major crash but there was already a red Volatility warning alert. If the Volatility Alert repeats the next weeks/months, chances are higher that a bigger crash or correction is near. As can be seen in the graphic, the deeper the crash is, the higher and wider the red Volatility signal goes. So keep an eye on the red flag!
Here are the parameters:
Fast MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 10-20)
Slow MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 21-50)
Minimum Buy Strength: minimum upward trend value of the Fast MA Buy value (directional coefficient)(use values between 10-100)
Fast MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 10-20)
Slow MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 21-50)
Minimum Sell Strength: minimum downward trend value of the Fast MA Sell value (directional coefficient)(use values between 10-100)
Trailing Stop ATR: trailing stop % distance from the smoothed Close value (use values between 2-20)
Trailing Stop Smoothness: MA value for smoothing out the Trailing Stop close value
Buy On Start Date: force Buy on start date even without Buy signal (default: true)
Sell On End Date: force Sell on end date even without Sell signal (default: true)
Volatility EMA Period: MA value of the Volatility value (default 15)
Volatility Threshold: Threshold value to change volatility graph to red (default 2)
Volatility Graph Scaler: Scaling of the volatility graph (default 5)
Important : optimizing and using these parameters is no guarantee for future winning trades!
BTC efficient TF 1 min scalping strategyThis strategy is optimized for bitcoin (XBTUSD on bitmex)
It catch fast trades going with the trend, so it should work in trends like in consolidation.
This strategy is based on S/R mixed with parabolic SAR, the point is to catch a movement when it's starting and confirmed.
It's optimized for 1 min timeframe, you might try it on other other tf but change the SL/TP too.
You should used it for few minutes scalp, fast enter and exit, on 1 min TF.
Rules:
- Use small position, max leverage x5
- Place TP between 55 and 60 $
- Place SL at 150$
- Entre in position by limit, you get paid for it
Enjoy, test it and make some money :)
No repaint.
AP short strategyThis strategy generates sell signals in a trending market. The exit signals show weakness in the current trend and can also indicate reversal of the trend. If two signals are generated within a short span like between 10-12 candles with the price locked in a range, then it can be considered as a stronger signal.
The best parameters to use this strategy is on a 5 min time frame and the best time for the strategy is from morning 9:30 am to 2:30 pm.
This strategy can produce false signals in a sideways or choppy market. It works best on liquid stocks and high beta stocks.
Rsi, Ema , Ma and Bollinger Bands for 1 min BtcusdtThis is for 1 min Btcusdt pair.
I am tring to find a way to catch %1 ups and downs.
Basicly it buys when rsi low and minute candle closes under ema,ma and lower bollinger band,
it sells when candle goes over upper bb,low ma, when rsi high.
It sells when rsi high ,candle closes over upper bb,over low ma and does the opposite when buying.
I know it's crowded but still tring to learn what to do ^^
I welcome any suggestions to improve.
It works better with shorts for now.
Don't buy with this !! You might lose big !
hft-breakpointwhen it's a short trend(red line),the price breakout highpoint in smaller level,it will use a stop order to long in realtime,vice versa.this strategy will perform better in 1 minute,so it trades frequently,need a low fee.
Super Algorithm Strategy (Joy Bangla)This is the strategy tester for the
Below are the performance results
Starting with $10,000
Net Profit: 88%
66% profitable trades
34% losing trades. Do look at the losing trades. If one did careful moment management, some of those may end up profitable as well.
4.158 Profit factor.
16.1% drawdown. I would go a bit more and say if I am using this, my risk management should ensure for a stop loss of 20%.
66 bars on average (aka it holds for a long time. So, one needs to look into the funding factor in money management)
Sharpe Ratio: 0.291
Only 7 trades done (with 6 closed) in 2 and a half years. So this absolutely reduces noise as much as possible.
In short, if I had $10000 of BTC beginning of 2018, I would be having $18,878 worth of btc right now.
With 4x leverage, this could be a huge potential.
For info on gaining access see the ⬇ link below ⬇ in our signature field & direct message me. I have a busy schedule at my own workplace. Trading is my hobby. Hence, please be kind to me if I am late in replying.
Full Candle Outside BB [Bishnu103]Bollinger band defines volatility range based on the current market condition. If a full candle is created outside BB then it is highly volatile and it may reverse to the mean, i.e. middle BB.
Buy - when a green candle is created below lower BB (alert candle) and price goes above high of it.
Buy SL - low of alert candle
Target 1 - middle band
Target 2- upper band
Sell - when a red candle is cerated above upper BB (alert candle) and price goes below low of it
Sell SL - high of alert candle
Target 1 - middle band
Target 2 - lower band
************************************************************************************************************************************************************************************
Disclaimer: This is in-progress strategy. I plan to work further and improve this. So please use this in the live market very carefully and based on your own risk factors.
************************************************************************************************************************************************************************************
Why is it ok to backtest on TradingView from now on!TradingView backtester has bad reputation. For a good reason - it was producing wrong results, and it was clear at first sight how bad they were.
But this has changed. Along with many other improvements in its PineScript coding capabilities, TradingView fixed important bug, which was the main reason for miscalculations. TradingView didn't really speak out about this fix, so let me try :)
Have a look at this short code of a swing trading strategy (PLEASE DON'T FOCUS ON BACKTEST RESULTS ATTACHED HERE - THEY DO NOT MATTER). Sometimes entry condition happens together with closing condition for the already ongoing trade. Example: the condition to close Long entry is the same as a condition to enter Short. And when these two aligned, not only a Long was closed and Short was entered (as intended), but also a second Short was entered, too!!! What's even worse, that second short was not controlled with closing conditions inside strategy.exit() function and it very often lead to losses exceeding whatever was declared in "loss=" parameter. This could not have worked well...
But HOORAY!!! - it has been fixed and won't happen anymore. So together with other improvements - TradingView's backtester and PineScript is now ok to work with on standard candlesticks :)
Yep, no need to code strategies and backtest them on other platforms anymore.
----------------
Having said the above, there are still some pitfalls remaining, which you need to be aware of and avoid:
Don't backtest on HeikenAshi, Renko, Kagi candlesticks. They were not invented with backtesting in mind. There are still using wrong price levels for entries and therefore producing always too good backtesting results. Only standard candlesticks are reliable to backtest on.
Don't use Trailing Stop in your code. TradingView operates only on closed candlesticks, not on tick data and because of that, backtester will always assume price has first reached its favourable extreme (so 'high' when you are in Long trade and 'low' when you are in Short trade) before it starts to pull back. Which is rarely the truth in reality. Therefore strategies using Trailing Stop are also producing too good backtesting results. It is especially well visible on higher timeframe strategies - for some reason your strategy manages to make gains on those huge, fat candlesticks :) But that's not reality.
"when=" inside strategy.exit() does not work as you would intuitively expect. If you want to have logical condition to close your trade (for example - crossover(rsi(close,14),20)) you need to place it inside strategy.close() function. And leave StopLoss + TakeProfit conditions inside strategy.exit() function. Just as in attached code.
If you're working with pyramiding, add "process_orders_on_close=ANY" to your strategy() script header. Default setting ("=FIFO") will first close the trade, which was opened first, not the one which was hit by Stop-Loss condidtion.
----------------
That's it, I guess :) If you are noticing other issues with backtester and would like to share, let everyone know in comments. If the issue is indeed a bug, there is a chance TradingView dev team will hear your voice and take it into account when working on other improvements. Just like they heard about the bug I described above.
P.S. I know for a fact that more improvements in the backtesting area are coming. Some will change the game even for non-coding traders. If you want to be notified quickly and with my comment - gimme "follow".
FRAMA - Supertrend strategyFRAMA Strategy
I found this strategy on internet, in a well-known forex forum.
I have translated the two indicators mentioned in that strategy (originally in mq4) in pine script.
Thanks to Fractured and Shizaru for the FRAMA snippets, to mejialucas for Supertrend snippet, to JayRogers for trade management snippet and to Trost for backtesting snippet.
I also added some code to have FRAME with a deiiferent timeframe
Indicators set-up:
FRAMA period 24 (it was originally 25 but it's better to use an even number)
FRAMA timefarme lower then chart timeframe (e.g. daily chart and weekly FRAMA)
Supertrend indicator as it is.
Of course, it is better to adapt above setting to traded instrument.
Long/Buy rules:
1 - Enter at crossover between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit long when short signal occurs;
Short/Sell rules:
1 - Enter at crossunder between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit short when long signal occurs;
VERY IMPORTANT NOTE: this is a trend following strategy, so the target is to stay in the trade as much as possible (drawdown my be high). If your trading style is more focused on scalping and/or pullbaks, this strategy is not for you.
Credits to who developed this startegy (google it).
Thanks to all pinescripters mentined in the code for their snippets.
I have also a study with alerts.
Please use comment section for any feedback or contact me if you need support.
Combo Backtest 123 Reversal & Donchian Channel Width This is combo strategies for get a cumulative signal.
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 Donchian Channel was developed by Richard Donchian and it could be compared
to the Bollinger Bands. When it comes to volatility analysis, the Donchian Channel
Width was created in the same way as the Bollinger Bandwidth technical indicator was.
As was mentioned above the Donchian Channel Width is used in technical analysis to measure
volatility. Volatility is one of the most important parameters in technical analysis.
A price trend is not just about a price change. It is also about volume traded during this
price change and volatility of a this price change. When a technical analyst focuses his/her
attention solely on price analysis by ignoring volume and volatility, he/she only sees a part
of a complete picture only. This could lead to a situation when a trader may miss something and
lose money. Lets take a look at a simple example how volatility may help a trader:
Most of the price based technical indicators are lagging indicators.
When price moves on low volatility, it takes time for a price trend to change its direction and
it could be ok to have some lag in an indicator.
When price moves on high volatility, a price trend changes its direction faster and stronger.
An indicator's lag acceptable under low volatility could be financially suicidal now - Buy/Sell signals could be generated when it is already too late.
Another use of volatility - very popular one - it is to adapt a stop loss strategy to it:
Smaller stop-loss recommended in low volatility periods. If it is not done, a stop-loss could
be generated when it is too late.
Bigger stop-loss recommended in high volatility periods. If it is not done, a stop-loss could
be triggered too often and you may miss good trades.
WARNING:
- For purpose educate only
- This script to change bars colors.