Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
You can add both a UniversalKeltner and Universal Bollinger Band indicator to your chart. If you want to get alerted to a squeeze (Bollinger Band inside Keltner Channel), there is a squeez indicator in the downloads.
So far, I have not coded an indicator that combines both Bollinger Bands and Keltner Channels. I have posted a screenshot some time ago, of a multi-timeframe Keltner Channel. which shows a larger and smaller timeframe Keltner Channel.
Slope is a geometrical measure that depends on the chart compression. With scalable charts, the concept of slope or angles is void.
In the past slope was used as a proxy for momentum. A "steep" trend line was showing that momentum over that period was high. A "flat" trendline would show that momentum was close to zero.
Momentum is just the size of the price move, where an upmove is seen as positive and a downmove is seen as negative momentum. Instead of the slope of a moving average or a linear regression line you would rather measure rise over run. Some explanations are here:
The absolute value of the rise over run does not tell you whether the market is trending or sideways. If you look at a 240 min chart the momentum measured over 20 bars can take much higher values, then the 20-bar momentum on a 1 min chart. Also the momentum depends on the tick value and volatility of an instrument.
Therefore to get a comprehensive and normalized measure for slope or steepness of a move, you need to put the size of that move into relationship with the average bar size. Divide the rise over run - or momentum - by either
- the SMA of the simple range over an extended lookback period
- the SMA of the average range over that lookback period
- or the standard deviation over that lookback period
and you will get a measure for the strength of a move that is coherent across all instruments and timeframes.
I've monitored several of the posts on futures.io (formerly BMT) about angles and slopes and it all sounds reasonable considering the type of charts created by NT.
This made me think that maybe there are other considerations about this.
If a trendline is drawn on a tick chart, and lows or highs are connected in the series.
Many times if the lines are set to show on "ALL CHARTS" the lines are either off by a small to considerable amount on range or other chart types.
When trendlines are drawn on tick charts many times the duplicated trendline on a minute chart is totally off the scale.
Would this type of issue, invalidate trendlines?
Does that mean the concept of 'touches' of trendlines is just snake oil since it is dependent upon the type of chart and is not universal?
Or am I over thinking the issue?
Thanks for your response.
Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
You have correctly observed that the exact location of a trendline depends on the bar type and bar period. The same is true for a SMA. A SMA on a tick chart will be in a different location than the same period SMA on a minute chart. This does not entirely invalidate these tools for analyzing markets. However, if you apply such tools to exotic bar types, then it is questionable whether there is any support and resistance at the exact location where they print.
The main point to consider is that trendlines and moving averages and many other tools rely on self-fulfilling prophecy. A trendline will only produce a reaction, if that same trendline is watched by any other traders. If you are the only one to watch it on your exotic chart, then it may be well ignored.
This leads us to the question whether there are tools available that do not depend on the bar type and the bar period of a chart and help to find S/R on all charts at the same time. And yes, such tools exist. Please have a look at the VWAP, the market profile or the floor and GLOBEX pivots. But even these tools rely on self-fulfilling prophecy - swarm behaviour - to work.
Imagine a strategy that buys a bullish candlestick pattern. I want to improve this strategy by only buying when the 20SMA is "rising". For that I've been using a very simple method.
So to know if the 20SMA "is rising", I would call IsMARising(20, EnumMAType.Simple).
@Fat Tails posted a very nice indicator, the "Bollinger Universal V4" that correctly shows if a 20SMA is "rising".
What I would like to do is change my IsRising method to something like
I can see exactly on the OnBarUpdate of anaBollingerUniversal.cs where the lines are made Green, Red or Yellow.
However I don't know how to "output" this value so I could later on read it from within my IsMARising() method.
I tried to create a public property TrendDirection of this indicator, that would return 1,0 or -1, however I can't access it from within my strategy. This is a bit outside my skills, could anyone give a hand please?
I will keep trying and update if I manage to do it.
Thanks everyone for this excellent thread and thanks Fat Tail for the indicator.
I'm attempting the same thing with @Fat Tails Keltner Universal indicator. Did you add code to anaBollinger or is this a separate indicator reference anaBollinger?
I'm attempting the same thing with @Fat Tails Keltner Universal indicator. Did you add code to anaBollinger or is this a separate indicator reference anaBollinger?
Thanks.
Those indicators already come with a public property that allows for catching the trend. The public property is called Trend and can take the three values
+1 for an uptrend (blue)
- 1 for a downtrend (red)
0 for a neutral trend (gray)
The trend is based on the slope of the midline of the channel.
You can directly access these values via the Strategy Builder, the Market Analyzer or another indicator. You do not need to code anything. The public property Trend is available with both the Bollinger Universal and the Keltner Universal indicators.
Below is a picture showing the three different trend states.
It is possible to use the indicator with two trend states only (uptrend or downtrend). This can be achieved by setting the neutral threshold parameter to 0.