Average True RangeThe Default Average True Range doesn't appear to be accurate, not sure why. Rewrote it, hopefully it works better for everyone than the original.
ATR
Flex Renko Emulatorupdate:
As far as my algorithm design will take me this is it. So It's complete in my eyes. Here is a "working" version of something I've been looking for for a long time: "Flex" Renko Charting.
Bricks' sizes are determined by ATR and are set by simply choosing a resolution for the ATR calculation. No need to go in and choose renko granulation(resolution) AND brick size. Renko granulation is current chart resolution. Feel free to send me feedback on how to manage the reversal bricks' calculation or any other thoughts and ideas.
Replace the "close" in the main body of the renko calculation with 'high' and 'low' to get more consistent paintings across different aggregations since renkos aren't technically based off closing prices but where the price has been. Of course it's all a matter of preference:
Brick1 = high >
nz(Brick1) + BrickSize ? nz(Brick1) + BrickSize : low <
nz(Brick1) - BrickSize ?
nz(Brick1) - BrickSize
: nz(Brick1)
WMA BandsIn this chart we can see an adaptation I made of an indicator a certain fellow named nanningbob uses in one of his trading systems.
It's a great thing to have, since Forex pairs are mostly ranging markets. It captures price movement very well, and gives realistic take profit levels, without having to risk major drawdown if used wisely.
Hope you like it and find it useful.
*Props to ucsgears for the original code I modified.
CM ATR Stops/Bands - Multi-TimeFrameCM_MTF ATR Bands/Stops
Many Options Available Via Input Tab:
-Chart Defaults to Upper and Lower ATR's Based on Current Chart TimeFrame
-Ability to Plot either Upper and/or Lower ATR's
-Ability to Change the Time Frame ATR's are Based On!
-Ability to change Look Back Period and ATR Multiplier Individually for Both Time Frames
-This Gives you the ability to plot same Time Frame with (for ex.) a 5 ATR with a 1.5 Mult and a 14 ATR with a 2.0 Mult etc.
-Or you can plot Daily ATR's on a 60 minute Chart etc.
-ATR Multipliers are Calculated with Code that allows "Non Whole Numbers" Allowing Ability to use 1.5 ATR's, 1.8 ATR's etc.
***Endless # of Combinations can be used!!!!
CM ATR PercentileRankCM ATR PercentileRank - Great For Showing Market Bottoms.
When Increased Volatility to the Downside Reaches Extreme Levels it’s Usually a Sign of a Market Bottom.
This Indicator Takes the ATR and uses a different LookBack Period to calculate the Percentile Rank of ATR Which is a Great Way To Calculate Volatility
Be Careful Of Using w/ Market Tops. Not As Reliable.
***Ability to Control ATR Period and set PercentileRank to Different Lookback Period
***Ability to Plot Histogram Just Showing Percentiles or Histogram Based on Up/Down Close
Fuchsia Lines = Greater Than 90th Percentile of Volatility based on ATR and LookBack Period.
Red Lines = Warning — 80-90th Percentile
Orange Lines = 70-80th Percentile
Other Useful Indicators
Williams Vix Fix
CM_RSI EMA Is a Great Filter for Williams Vix Fix
Indicator: Custom COG channelThis is my custom channel (Bear Channel!? :)) derived from BB/STARC. It uses both ATR/STDEV for plotting the bounds.
I use COG (Center of Gravity) for deriving the baseline. This enables it to track the price action better than many other channels that make use of MAs or simply "close". Indicator also marks "squeezes" (stdev bands come inside ATR bands). Pay attention to these, as these usually indicate a move.
I am still exploring this indicator on different BTCUSD time frames, would love to hear your feedback / setups for other instruments.
Code for this indicator: pastebin.com
Code for COG fibs I mentioned in the comments: pastebin.com