MTF C Strategy A
The Pearson coefficient is a type of correlation coefficient that represents the relationship between two variables that are measured on the same interval or ratio scale. It's a measure of the strength of the association between two continuous variables.
This script allows you to choose one or more sources as a curve, if several sources are chosen, their average is taken into account in an EMA or SMA of your choice. It is possible to have the average of all the curves and to add one or more other curves for an influence on the calculated average.
Then, on the basis of this curve a correlation is calculated from 8 time ranges which give 4 curves, it is on this basis that the conditions of entries in the trade and / or exits are based with the possibility of adding an RSI condition.
For some entries, it is possible to try the symmetrically opposite condition, ie the one that is used in shorts.
To make entry short work, you must activate an exit short option.
However, exit conditions are more flexible than entry conditions because they allow the inverse entry condition used and / or to use statistical indices such as CCI / RSI / ROC / BB as exit condition independently or combined way.
It should be noted that if a condition among those chosen is executed substantially first, it will predominate over the others (same for long / short entries).
In addition, it is possible to choose a stop loss as an exit condition, however, it is not possible to combine the other exit conditions with the stoploss at the same time. Credits to adolgov for the base of the stoploss script part.
You can combine several curves, just as it is possible to combine several types of trade entries / exits.
The strategy uses 100% of equity, it has not been configured in such a way that there is an order pyramid and the closings are done on a total equity basis.
You can configure a daily session interval, a limit of the number of daily trades, a limit of drawdown.
You can add comments for each execution of an opening / closing order respectively to the direction (long or short).
Each step of the configuration has a tip, a button that must be hovered over in order to have the information relating to the configuration.
Mtf
MACD Divergence + MTF EMA Reversal by @DaviddTechMACD Divergence + MTF Indicator / EMA by @DaviddTech
Long :
* Find Divergence in the MACD line
* Multi Time Frame EMA 50 15 minutes above Multi Time Frame EMA 50 60 minutes
* MACD and Signal line are below the 0 line
* MACD crosses above the Signal line
Short :
* Find Divergence in the MACD line
* Multi Time Frame EMA 50 15 minutes below Multi Time Frame EMA 50 60 minutes
* MACD and Signal line are above the 0 line
* MACD crosses below the Signal line
EMA usages instead.
* I found that as a strategy this could work better with the 200 EMA line.
* Trends reversals also gave good results.
Trend Reversals :
* Price is below EMA 200 - Take LONG on divergence.
* Price is above EMA 200 - Take SHORT on divergence.
** You may need to turn off MTF ema when using the Simple EMA 200
WARNING:
- For purpose educate only - My mission is to debunk fake strategies with code to find THE ONE.
- Plots EMAs and other values on chart.
- This script to change bars colors.
TDI Hedge Strategy
This is the incomplete version but upon multiple requests, I have released it early. All of the strategy and alert functions are yet to be written and I'll get around to it soon.
This indicator aims to be the best TDI indicator on TradingView. It is a strategy or study. It will have all of the filter, entry, and exit conditions for the strategies around the TDI.
What is implemented
MFI or RSI: the MFI is a much better TDI baseline than the RSI, in my opinion, and very effective
EMA or SMA used for the moving averages on fast, slow, and volatility band
Dynamic timeframe: set a factor of current timeframe and indicator will analyse higher timeframe automatically
Manual timeframe: set a higher timeframe to analyse different to currently viewed
Features for later
conditions for TDI filters/entries/exits
Strategy functions to use built-in strategy tester
BTE signal plot for Backtesting & Trading Engine
alerts
Enjoy!
MA-SS ( EMA SSL ) Indicator StrategyThis is the strategy script relating to the already-published MA-SS Indicator Study.
Backtest properties for the strategy tester results shown below are;
- 10k initial capital
- 50% of equity
- 0.0075% commission
- zero values on everything else
The MA-SS Indicator is a simple yet effective indicator using a combination of EMAs and SSL channel, utilising higher time frame data to help confirm trend/ price direction.
How does it work?
The Indicator consists of;
- 3 x EMAs – The 3rd EMA being a filter EMA
- Multi Time Frame EMA (This is an additional filter EMA which can be switched on and off)
- Multi Time Frame SSL Channel (This acts as a filter and can also be switched on and off)
The concept initially began as a simple EMA crossing indicator, but adding an MTF EMA plus a MTF SSL channel for additional filtering, helped to give a better indication of trend and ultimately filter out several bad trades.
- EXAMPLE: If price is …
o below the MTF EMA filter
o The MTF SSL Channel is red
o White and blue EMAs cross below the yellow (filter) EMA in the red SSL channel
> …a short is fired!
- (Opposite scenario for longs)
- Your stop loss would ideally be the top/ bottom of the SSL channel (either the MTF SSL channel or a standard SSL channel added manually to the chart), or, go for a clear pivot point or support/ resistance level.
- Take profit is yours to decide but I opt for a 1:1.5 risk/reward ratio. You could also use the MTF SSL channel to gauge when you should exit your trade (i.e. if you're in a long, wait for the SSL channel to flip red).
Any questions please fire away in the comments
(IK) Stoch-60-15This strategy uses 60 minute and 15 minute stochastic data to determine entry and exit; it only executes long trades. I've only used this on BTC/USD, but I imagine the concepts employed should hold for any ticker
The script builds a simple Stochastic indicator for the current timeframe, and it also plots a single stochastic line for a higher resolution time frame. I've found good results trading on 15 minutes with a 60 minute higher resolution.
We enter a trade if the higher resolution stochastic is in an uptrend, if the current resolution stochastic is in an uptrend, and if the current stochastic value is less than 50.
We exit a trade when the current stochastic value crosses below 80 or the trailing stop loss is hit.
Stop loss is calculated with the input value, Stop Loss Percent. This value represents the percent of capital you're willing to lose before exiting a trade. A stop loss percent of 0.050 means your trade will exit if it falls 5% from the highest high since entering a trade. You will have at least 95% of your original capital left. There is no option to change a trailing stop loss to a set stop loss (in order to keep the code as simple as possible), however, you can turn it off by setting Stop Loss Percent to 1.
I tried to keep the script itself lightweight and very easy to understand, so it's not very customizable in regards to input options. You can change stochastic data, as well as the trailing stop percentage. The script can be adjusted to other timeframes, however this requires a small change in the code (details in script comments). Changing just the "Higher Resolution" input will not produce expected results
My hope is that by keeping it lightweight and simple, it will be easier for you to adjust to your specific needs, or work into a larger strategy.
Heatmap - Multi-Timeframe Indicators - StrategyHeatmap - Multi-Timeframe Indicators - Strategy
▪ Main features :
- 19 Timeframes: 1m, 3m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 3h, 4h, 5h, 6h, 8h, 10h, 12h, 1D, 1W, 1M
- 6 indicators per timeframe
- choose specific timeframes for indicators (example - 1 hour)
- or choose specific timeframe ranges (example - 1 hour to 1 month)
The general idea is that the higher timeframe signals are stronger than the lower timeframe ones.
When a trend is starting, it is first visible on the lower timeframes.
The more time passes, the more the trend propagates through higher timeframes.
The default settings are meant to show all the available features. You may fine-tune it to your specific needs.
How to choose the timeframe for the chart : use the lowest of the choosen timeframes for indicators.
If the heatmap doesn't display correctly on your device, you may check the Heatmap Theme 🎨 setting.
It doesn't repaint.
"Repaint" version available though - good to check the past history, but very bad for real-time analysis.
▪ Indicators used for trend detection
1. MACD Cross
2. Stochastic Cross
3. Stochastic Cross and Overbought or Oversold
4. Moving Average
5. Parabolic SAR
6. Heikin Ashi
▪ Find the best Heatmap settings with the Strategy Tester version.
The signals generated by the Heatmap are considered to be valid at the bar open .
The Strategy Tester, however, uses the bar close in its calculations.
Therefore, the results may seem to be worse than they can be.
The Profitability, Profit Factor and other stats should be taken into consideration relatively to other configurations of the same Heatmap.
▪ Using a score system to consider a change in trend valid.
Example: consider the signal valid if 65% or more of all indicators (max 6) among all timeframes (max 19) hint at a change in trend.
The % percent value can be inserted in settings.
When using the default settings or when all timeframes and indicators are activated,
the ratio of 100% downtrend or 100% uptrend may be less occuring. Adjust accordingly.
The signals across timeframes and indicators are aggregated to show simple entry and exit signals.
▪ Combined Alerts, to be set to fire once per bar open :
0 - 📈 Long! - Heatmap - Multi-TFI
0 - 📈 Short! - Heatmap - Multi-TFI
0 - 📈 Long Exit! - Heatmap - Multi-TFI
0 - 📈 Short Exit! - Heatmap - Multi-TFI
1 *** BUY or SELL (single alert) ***
1 *** Entries or Exits (single alert) ***
▪ Note : The initial load may be slow. If something doesn't seem to work, you can try the following:
- wait more time for it to load
- hide & show or remove & add back to chart
- don't add the indicator to chart multiple times in a short amount of time, as you may be rate limited
▪ Related Studies :
- Heatmap - Multi-Timeframe Indicators - Alerts
- Risk Management System (Stop Loss, Take Profit, Trailing Stop Loss, Trailing Take Profit) - it can be connected to Heatmap - Multi-Timeframe Indicators - Alerts
▪ Layout example:
MavilimW Strategy MTF EMA with HA CandlesThis is a strategy adapted initially for Mavilim moving average indicator, based on WMA MA.
It seems to works amazingly on long term markets, like stocks, some futures, some comodities and so on.
In this strategy, I form initially the candle, using EMA values, so I take the EMA of last 50 closes, open, highs and lows and form the candle
After this I take interally HA and convert the EMA candle to HA.
Then using the moving averages on multiple timeframes, like in this example we have a chart on 4h, but I use 1h and 1d moving averages.
For long condition we have : close is above moving average timeframe1 and oving average timeframe2 and oving average timeframe3
Initially short would be close below ma timeframe1, ma timeframe2 and timeframe3 -> but here I also convert it into a long signal.
So we actually go only long .
And we have 2 different exits : for first long if we have a crossdown of 1h ma with 1 day ma, and for second long if we have a cross up of 1h ma with 1 day ma in this example.
Message me if you have any questions about this strategy.
RSI on VWAP Upgraded strategyFirst of all, the idea of apply RSI to VWAP was inspired by XaviZ; at least, that where I first saw that.
I simply applied the idea and searched for apply this on lower timeframe (M15) to increase the number of positions and improve the profit factor.
The conditions to enter are the same :
long : enter on RSI crossover oversold level
short : enter on RSI crossunder oversell level
To close position, I found a little change to apply :
long : close position when RSI(VWAP) went in overbought zone and crossunder the overbought level OR after being at least x bars in the overbought zone (parameter is 28 by default) => when the first condition happens
short : close position when RSI(VWAP) went in oversold zone and crossover the oversold level OR after being at least x bars in the oversell zone (parameter is 28 by default) => when the first condition happens
With this change, I got better results specially on BTCUSDTPERP (M15) where I reach a 6.8 profit factor with 119 trades closed. Not BAD !
The defaults parameters are the best found for BTCUSDTPERP (M15), but the strategy works fine for other pairs if you take time to find the rights combinations.
In this strategy you can change (with defaults in () ):
RSI length (28)
RSI overbought level (85)
RSI oversell level (30)
Number of bars before leaving as explain above (28)
The choice to take longs only, shorts only or both
The number of coin/token by position
The start date for backtesting
Please note that the script use a pyramiding parameter of 3 (can be changed in the first line of the script); that means that you can take up to 3 positions before closing. It lets you improve average enter price but increase the risk. 3 is the best I found to improve profit factor without expose myself too much.
This script would be better if automated because of the conditions of buy and sell.
It's only for educative purpose, not an advice to invest.
All my free scripts here : fr.tradingview.com
Leave a message and don't forget to follow me ;) !
RSI - Rate of ChangeCode based on RSI lower value crossing over higher value
RSI Rate of Change of different lengths used in all parts of code
ADX and CCI use is limited in V1.0
Script provides 3 RSIs and overbrought and oversold for each of these RSIs. When RSI cross over each other clearly Buy and Sell signals are fired.
Lime is buy and Maroon means sell. Use it along with EMA
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
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:
FSCG-TSSLA modification of dasanc's "Fisher Stochastic Center of Gravity"
Added:
- Thresholds for Buy/Sell Signals
- Trailing Stop / Stop Loss
- Backtest Range
Support the open-source community.
Screw you people selling open-source scripts to newbies.
Tip Jar: 3KNZq8mE24MuBmpDJVF31bBy8zc9beDiZo
Contact me for collaborations and let's take things to the next level!
Do NOT contact me for alert scripts or paid-custom work, I don't work for clients.
Alberto - Strategy 1A multi-timeframe strategy developed as a custom service.
Note
This strategy has been published only for customer verification and acceptance. Sorry, I cannot grant access to anyone else.
NINA-BTHello Fellow Traders !
KikingAlgo has produced another amazing tool which is now fully operational and ready.
This Algo is called NINA-BT ( Backtesting + Multi Time Frame ) and is based on mathematical formula over 11 timeframes to create trend signals based on the current market conditions.
The Algo can operate on any market, any pair in any timeframe and shows a clear trend direction and strength.
This is a PRO BT version of NINA - drop private message for details.
Regards
KikingAlgo
Bones1390's GANN Strategy - Works for Cryptocurrency too! [MTF]Simple Strategy.
Use this strategy with Heiken Ashi candlesticks.
RULES:
Enter Long ONE BAR after the green Vertical Signal Line plots, and sell as soon as a red Vertical Signal Line. Vice versa. You get it. ;)
MTF stochastic strategyThis strategy is based on MTF strategy found on Forex Factory forum and published by bobby2 (credits to him).
This is quite simple but need improvement to work properly:
1- it is made for 5 min chart
2- when 15min stochastic cross above 50 and 5min stochastic is rising, buy
3- when 15min stochastic cross below 50 and 5min stochastic is falling, sell
SlingShot + MTF + Open Close Cross StrategyIt's a merge of three really good scripts CM sling shot, CM MTC and Open Close Cross
Indicates open and close with Sling shot and shots after peaks by MTC and OCC.
Yellow zones before drop prices, green bar, red bar for open and close.
imgur.com
[RichG] Easy MTF Strategy v1.1This is a second attempt at an easy to understand multiple time frame strategy. This one uses ATR for exits. If the position is long, and the price closes below the ATR multiplier, it triggers a close. If the position is short, and the price closes above the ATR/multiplier, it triggers a close. This generates a lot of little trades but is useful because it uses multiple time frames along with cutting losses when the ATR disagrees.
[RichG] Easy MTF StrategyAs we all know, timeframe agreement is a powerful tool. This strategy uses 4 time frames and the Keltner ATR for entries and exits.
MTF MACD 2 By YuthavithiIf you want a good strategy without repaint. This one might be for you. Excellent profitable for BTCUSD3M for OKCoin.
It uses multiple time frame MACD for trading decision. To avoid repaint, set the delay period = 1 for both long term and midterm.
The idea is that, if long term, mid term and current time frame all agree on traidng direction, the trade will take place.
I also uses it in my automated trading bot with good result.
www.tradingview.com