KK_Average Directional Index (ADX) Higher TFHey guys,
sometimes you just want to plot an Indicator value from a higher Timeframe on your Chart. For most Indicators this is pretty straightforward however there is one Indicator that has been giving me quite a headache while trying to do this: The Average Directional Index . Anyway after going through almost 200 versions of this script I finally found a solution that works and thought I would share this with you, since I'm sure some of you have encountered the same problem.
How it works
Go to your desired Instrument/Timeframe and add the Script
Under Settings in the field for "Higher ADX TF" put the Timeframe-code you want to pull the ADX Values from.
- Codes: Monthly - M, Weekly W, Daily - D
- Codes Intraday: The amount of hours in minutes, e.g. if you want to pull values from the 4h-Chart the code is 240 (60 for 1h, 15 for 15m ...)
In some cases (see below) the calculation might not be correct. So make sure the values are correct:
a) Write down the latest ADX of the higher TF while you are on the lower TF
b) Switch the Resolution to the higher TF
c) Compare the value you have just written down to the next to last value. They should be the same.
d) Switch back the Resolution to the lower TF and you're good to go.
Limitations
You can only pull values from higher Timeframes, e.g. you're on a 4h Chart, so you can only pull values from the Daily, Weekly and Monthly Chart. You can't pull values from the 1h Chart.
You can only pull values from Timeframes, where the higher Timeframe Close always has a corresponding Close on the lower Timeframe, e.g. you can't pull values from the 3h Chart when you are on a 2h Chart. This should be pretty rare.
The Script needs a certain amount of Data from the Higher TF before the calculated values are correct. I have tested this on several Instruments and the Script usually needs approximately 100 Bars on the higher Timeframe (often less) for the values to be correct (error < 1%).
So when the difference between your lower Timeframe and you higher Timeframe is large, e.g. you want to pull the Daily ADX value on a 15m-Chart, the calculation can be wrong. This can lead to errors in 2 Cases:
a) Backtesting: When you go over old data and get close to the last available Bar the Data will be wrong. This will limit the amount of data you can backtest.
b) Live values: When the difference between the two Timeframes is too large, it is possible that even live values are wrong, e.g. this will be the case when you are trying to pull the Daily ADX value on a 5 minute Chart. Always check if the calculation works with your desired combination of Timeframes before using it (see above).
I hope this is useful for you and whish all of you successful trading!
Best regards
Kurbelklaus
Timeframe
MTF_Stochastic_SignalThis script sets up signals based on Multi-timeframe (MTF) stochastics. Alerts can easily be created to inform users of aggressive and conservative potential BUY and SELL opportunities. Overbought and oversold levels do not matter when it comes to signalling, but each trader can set their own limits.
DEFAULT CRITERION
Conservative BUY criteria is when both stochastic timeframes cross upward at the same time the closing price is above the simple moving average.
Conservative SELL criteria is when both stochastic timeframes cross downward at the same time the closing price is below the simple moving average.
Aggressive BUY criteria is when both stochastic timeframes cross upward at the same time.
Aggressive SELL criteria is when both stochastic timeframes cross downward at the same time.
TO SET UP ALERTS
1. In the "Create Alert" menu, select the "MTF_Stochastic_Signal" as the Condition.
2. To the right of the condition select one of the options that has "greater than 1" at the end of it.
3. Instead of the word crossing in the dropdown below, select "Greater Than"
4. For the value, input 1. (My TRUE values are set to 50 in the event you want to turn the plot on, however, this is not neccessary as it is redundant)
5. Select the remaining options that suit your needs and click "Create". You have now set up alerts. I suggest setting all four options fo reach symbol you monitor.
Please feel free to ask questions and provide comments. I am always looking for ways to improve my scripts.
Enjoy!
TrendAlertTrend Alert indicator based on Long term (daily) en Mid term (4h) timeframes so you can enter a trade in direction of the trend at the Short term (1h) timeframe in direction of trend. You can configure the LongTerm en MidTerm timeframe to your liking. Method by Jospeh Nemeth www.youtube.com
Trading Sessions v.2 - Max WarrenUpdated to work with Pine updates:
London DST timezone still broken. Will fix later.
As always full customization visually, with London fix I'll add more options.
Keep in mind the render resolution option
Fractal Quad Components8 Fractal Resonance Component indicators on a chart eats up LOTS of vertical space, so we're providing this Fractal Quad Components script to group 4 components a bit more compactly (eliminating the margin whitespace between indicator rows).
To view 8 components you'll need to add a second instance of this script to your chart and set its Base Timescale Multiplier to 16. Then grab the dividers to stretch both instances to a good viewing height.
One disadvantage of this grouping method is that to read off the x2, x4, and x8 lead and lag line values, you'll need to mentally add 200, 400 or 600 respectively.
We also replaced the "Extreme" > +-100% black crosses (+) with more subtle purple circle outlines. These extreme crosses are often (but not always) too early to be a major reversal so it's best not to overemphasize them.
Significant crosses (> +-75%) are still highlighted with black circle outlines, and are the most likely to be major reversals for buy/sell.
Note how the 30-minute oscillator (2nd row) showed the cleanest (black-outlined) reversals on the S&P for the last week of 2016, with just a bit more profit-eating lag than the 15-minute oscillator above.
cooltoyz: ghost candleThis is a tool. Do with it what you like :)
The ghost candle works by drawing a bigger time frame candles in ghost mode over a chart. The time frame is default of 4h, can be changed in the "format" pop-up.
What we see in a time frame as the "wick", is really a set of candles when looked at lower resolutions/timeframes, that info is crunched into the OHLC format. But, when we look at a represntation of the "internals" of a candle, the wicks are not just a single candle that "walked out of the reservation".
So, in this ghost mode, a wick makes no sense visually. In this case, the OHLC is represented as a darker area for the main candle body, and lighter zones for the wicks. Just another way to sing the same song...
Note 1: the ghost candles are skewed, due to the way that TV plots a line. It's most visible when a chart is very zoomed.
Note 2:As result of the TV real time engine, the last candle presents sometimes mixed colors. There's no easy way to fix it, so until the candle closes, if you see weird colors, well, that's life :)
EMA Time-FrameThis EMA allows you to specify a time-frame for the price used to calculate the moving average. For example, you can create 1 hour EMAs on your 5 minute chart.
NOTE: This indicator only works on intraday charts. The time-frame specified for the indicator must be greater than or equal to the time-frame of the chart.
VWAP MTF Custom Dates (Multi Timeframe VWAP with Custom Dates)This is extremely useful tool for analyzing the market. Brian Shannon from alphatrends.net uses this very frequently and I've programmed it for tradingview.
you can calculate the VWAP from any dates on the chart and it works with any intraday timeframe. Simply select on the settings icon and select your day month and year parameters!
Please follow for more future updates
Happy trading!
Daniel
Multi Time Frame Compatible Simple Moving AverageDisplays 5, 20, 50, and 200 days moving averages on any chart regardless of the chart's resolution.It makes sure you see the same moving average regardless the resolution of your chart or your timeframe
Trading TimeCode put blue bars during times you input. I put it to show times I am asleep and not alert to trade. I also put code into strategy to control when trades can open or close. FXCM and IDC exchanges have different time zones, as well as AMEX, etc. You will have to change it for each zone.
Universal Time Frame v1.1Now it should work better but is only for intraday charts. There are some other glitches though; I'll try to fix them as soon as possible.
Stochastic CCI MTF w/ UP/DOWN colours - squattterStoch CCI has a nicer divergence than Stoch RSI.
Enjoy!
Stochastic CCI MTF w/ UP/DOWN colours - squattterStoch CCI has nicer divergences than Stoch RSI.
Enjoy.
Super StochThis is a multi-time frame Stoch RSI based on Chris Moody's "CM_Stochastic_MTF". Changes are primarily cosmetic and the "stock" signal and Stoch RSI calculations are retained.
EMA bullish/bearish dashboard - MTFThis is a good reminder for which way you should be placing orders.
It's best to not ignore these signals!!!
lime = full bull - 100ema above 200ema and price is above 200ema
green = hallf bull - price now below 200ema but 100ema is still above the 200
maroon = full bear - opposite of full bull
red = half bear - opposite of half bull
Also with multi timeframe option - so I guess you could stack several of these on a single framed chart if you wanted.
Forex Trading Sessions with Daylight Savings TimeV1 - Max WarrenDifferent version of the CM one but everything is configurable and easy to manage.
Daylight savings may also be toggled, I cannot automatically toggle it yet but hopefully with a pine update I will be able to.
It had the four main sessions but version two could possibly have all of them as optional toggles
Hope it is useful
Single Timeframe Moving AverageProvides Moving average of 200 and 50 at the specific timeframe regardless of what interval you're looking at.
Saving the need to change it manually each time you switch the interval.
In this chart, I am looking at 4H interval with EMA of 50/200 of daily timeframe.