Triple Moving Average HeatmapHi everyone
I didn't publish on Friday because I was working on an Expert Advisor in MT4. The day I don't publish, some scripts spamming guys published many (not useful) scripts the same to kick me out of the TOP #1 ranking.
So what I'm going to do about it? crying or sharing more quality scripts than before? :)
I guess you know the answer :) I'm gonna share a few quality scripts that I have in my library. I noticed that you guys tend to like more the scripts useful for your trading actually making you money rather than a copy-paste (of another copy-paste)
Alright, enough for the trolling now let's introduce the Three MA heatmap which is an upgrade of that script : MA-heatmap-Double-cross-edition/
The challenge was to keep the heatmap not rolling and to make it match with the MA cross. I did it using this
```
since_ma_buy = barssince(macrossover)
since_ma_sell = barssince(macrossunder)
heatmap_color() =>
since_ma_buy < since_ma_sell ? color.new(color.green, 20) : since_ma_buy > since_ma_sell ? color.new(color.red, 20) : na
```
This is a technique that I found after drinking three glasses of red wine (#french) to keep the heatmap stable and not rolling.
To get what I'm saying I invite you to replace the piece of code above by what everyone would normally do
```
heatmap_color() =>
macrossunder() ? color.new(color.green, 20) : macrossover() ? color.new(color.red, 20) : na
```
Ah and I'm not done sharing for the day, a few scripts are coming also after that one and tonight !!!!! I want to live in a world where you guys can enjoy quality scripts (mostly) :)
PS
____________________________________________________________
Feel free to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future.
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Color
Adaptive Autonomous Recursive Moving AverageIntroduction
Using conditions in filters is a way to make them adapt to those, i already used this methodology in one of my proposed indicators ARMA which gave a really promising adaptive filter, ARMA tried to have a flat response when dealing with ranging market while following the price when the market where trending or exhibiting volatile movements, the filter was terribly simple which is one of its plus points but its down points where clearly affecting its performance thus making it almost impractical.
Today i propose a new filter A2ARMA which aim to correct all the bad behaviours of ARMA while having a good performance on various markets thanks to the added adaptivity.
Fixes And Changes
ARMA was dealing with terribles over/under-shoots which affected its performance, adding a zero-lag option made the thing even worse, in order to fix those mistakes i first cleaned the code, then i removed the offset for src in d , this choice is optional but the filter is sometimes more accurate this way.
The major change is the use of an adaptive moving average instead of the triangular moving average that smoothed the output, this adaptive moving average is calculated using exponential averaging while using the efficiency ratio as smoothing variable, this choice surprisingly removed the majority of overshoots while adding more adaptivity to the filter.
The Indicator
The Indicator work the same way as ARMA, not reacting during flat market periods while following the price when this one is volatile or trending. length control the smoothing amount while gamma determine how the filter is affected during flat market periods, gamma = 0 is just a double smoothed adaptive moving average, higher values of gamma will filter flat markets with a certain degree.
On Intel Corp with gamma = 0, i want to filter the flat period starting at July 10, gamma = 3 will certainly help us on this task.
Hooray, the problem appear to be solved ! Lower values of gamma also produce desirable effect as shown below :
gamma = 2
So far so good, but gamma or length might have different optimal values depending on the market, also problems still exists as shown here :
Seagate is tricky, gamma at 2.4 might help
The relationship between length and gamma is somewhat complicated.
On Different Markets
While some filters will process market price the same way no matter the market they are affected, A2ARMA will change drastically depending of the market.
On AMD
On EURUSD
On BTCUSD
Comparison With ARMA
ARMA with parameters roughly matching A2RMA, overall most of the problems i wanted to fix where indeed fixed.
Conclusion
A huge thanks for the support i received during this "Blank Page" period i'am suffering, ARMA was an indicator i really wanted to further develop without giving up on the code simplicity and i think this version might provide useful results, we can also notice that the decision making is easier with this version of the indicator thanks to the added coloring (which would have been impossible with ARMA).
My work don't have license attached to it, feel free to modify and share your findings, mentioning is appreciated :)
Thanks for reading !
SMA_TKP_TREND SYSTEMI took the "EMA_TKP_TREND SYSTEM" and converted it to plot a simple moving average for the "slow moving average".
EMA_TKP_TREND_ SYSTEMThis script was cannibalized by another member on here (Kudos given in Script). I trimmed down the script and created this to give a visual representation of the changing slope on exponential moving averages.
Trend Impulse FilterIntroduction
There is a lot of indicators similar to this one, however i think this one don't share the same calculation method and this is why i share it. This indicator aim to forecast price direction using an exponential filter architecture using highest and lowest information for the estimation of a smoothing variable. This filter is similar to the average Max-Min filter.
The Indicator
In the code a is equal to 1 when the price is greater or lower than any past price over length period, else a is equal to 0. The center parameter control the filtering degree of the output, when center is equal to 1 and a = 1 the indicator return the highest or lowest depending on market current trend, when center is superior to 1 the output will be smoother, however the reactivity of the indicator will still depend on the length parameter.
A color option show you the trend of the market, however the generated signals are the same that can be generated from a Donchian channel.
When highest is greater than previous highest the indicator direction will move upward, else if lowest is lower than previous lowest the indicator direction will move downward. Therefore the indicator can give information on the Donchian channels direction and provide a nice filter.
Conclusions
Adapting to highest and lowest can make an indicator adapt to the essence of trend trading, the indicator i showed can be used as source for others indicator or in MA crossover strategies. If you have a strategy using Donchian channels you may be interested in using this indicator and se how it fit in your strategy. Hope you like it.
Thanks for reading !
High Performance Candlestick Patterns Colors//Candle Patterns Ranked by Performance THOMAS N. BULKOWSKI
//1. Bearish Three Line Strike +Up 67.38%
//2. Bullish Three Line Strike -Down 65.23%
//3. Bearish Three Black Crows -Down 59.83%
//4. Bearish Evening Star -Down 55.85%
//5. Bullish Upside Tasuki Gap +Up 54.44%
//6. Bullish Inverted Hammer -Down 51.73%
//7. Bullish Matching Low -Down 50.00%
//8. Bullish Abandone Baby +Up 49.73%
//9. Bearish Two Black Gapping -Down 49.64%
//10. Brearish Breakaway -Down 49.24%
//11. Bullish Morning Star +Up 49.05%
//12. Bullish Piercing Line +Up 48.37%
//13. Bullish Stick Sandwich +Up 48.20%
//14. Bearish Thrusting Line During Dowtrend +Up 48.10%
//15. Bearish Meeting Line +Up 48.07%
//Down=Yellow Bar Color and Black Text
//Up=Blue Bar Color and Blue Text
//High Performance Candlestick Patterns Colors Top 15
BBand width bgcolorSimple backround colouring based upon input criteria.
Published by request of a TV user.
Sorry if this is duplicate, but I couldn't see any other scripts on TV.
Volume+ (RVOL/Alerts)This indicator colors the volume bars based on any of the three follow criteria:
- Volume Amount
- RVOL (Relative Volume)
- Lookback (Highest Over Period)
You can use one, two or all three of these settings at the same time.
You can also set alerts with this indicator. The script will trigger an alert whenever any of the three specified flags are triggered.
RVOL is calculated as: Volume divided by Moving Average value. You can change the moving average period (and type) in the settings.
Efficient Auto LineMore Efficiency
Based on the Auto-Line code, the Efficient Auto Line aim to provide a more controlled adaptivity of the indicator. The first indicator of this sort worked this way : when the absolute difference between the price and the indicator is higher than the previous indicator +/- A pips of amplitude, the indicator will display the closing price, else its anterior value. The second indicator (Auto-Line) was adaptive and used the standard deviation instead of a constant A . This indicator will run both methodology providing both a trend strength indicator (Efficiency Ratio) parameter and two constant parameter.
Parameters
The length parameter will control the period of the efficiency ratio, a high period return lower values of the efficiency ratio. Since its an indicator in a range of (0,1) we use it to make our indicator more adaptive in trending market, this is when we need our two constant parameters, the fast/slow parameter can be any amount of pips where fast < slow , when the price is trending (efficiency ratio close to 1) the indicator will use the fast parameter, if its ranging (efficiency ratio away from 1) the indicator will use the slow parameter, then it will work like the first methodology previously explained. So the fast parameter should be equal to a small movement of pips (0.0001 or 1 pip) and the slow parameter should be equal to a number of pips you wont expect to see in a ranging market. At this point it is good to test for both parameter and see which values work better (a more automatic process is in development) .
Hope you like it !
[RS]Function - RGB Color (low resolution)Function to handle rgb color selection, it has low resolution due to pinescript limitations.
included examples with manual background color selection via inputs and automatic color of a rsi plot based on its value.
let your rainbow dreams come true!! :D
Tabajara + 3 MA + Vwap + Volume Confirmation + Background Color Hi Traders!!!
My name is Alan and i'm here to share my script based on Tabajara Rule from Brasilian Professor/Trader Andre Machado.
This script shows:
1 Long SMA
1 Tabajara Color SMA
1 Color Long EMA
1 Color Short EMA
1 Vwap
1 Background Colored based in 21 EMA
So what Tabajara is?
Tabajara is a Trend Following Trade System.
If the MA is going up, you look for buy oportunitys.
If the MA is going down you only look for sell oportunitys.
And the coloring Candlesticks are based on Tabajara MA, if an buy candle closes above Tabajara MA which is going up, it candlestick is painted green acoording Tabajara MA, if Tabajara is going down and the candle closes as a sell candle, this candle is painted red.
To this indicator was added a volume ma to confirm Tabajara Candle Rule, if the volume is over the 21 ma the condition is ok.
Well my english isn't good as all you can see.
But my intentions are.
I use the trade system to operate futures market and USD/BRL and works very well at 1 minute time frame.
I hope you enjoy and make money.
If you have any question you are free to ask me and share your experience.
Remember to follow all Technical Analysis instructions. This script only helps to see the trend and volume. We only recieve 2 information from Stock Exchange, price and volume, they need to be used together, volume confirms trend, and all basic rules to be a sucessfull trader.
Thank you all.
Chart Theme - Change Bar and Background Colors using HEX #sAdds aesthetic ability to charts by allowing the trader to change the color of the bars, background, and plots using HEX colors, rather than TradingView's limited color selector box. This makes for easy application of color palettes to charts. The color palettes can be saved as indicators and applied quickly, as desired.
Moving Average & PriceBars that change color to red/green when the price closes below/above Simple MA
Colored EMAThis is a modified version of the exponential moving average indicator to change color based on trend (red/bearish if price has closed below EMA, green/bullish if price has closed above EMA).
Volume Strength Candles / Colored BarsIs Price Action Higher or Lower on STRONG or WEAK VOLUME from lookback
(Strong or Weak Bulls // Strong or Weak Bears)
Candles / Bars Indicate the Following (default 13 period lookback / Length)
MAROON Bear Candle with STRONG VOLUME more than 150% of the lookback / length (13 default), STRONG Bear Candle Confirmed With Volume
RED Bear Candle while VOLUME is BETWEEN 50% & 150% of the Lookback / Length (13 default), Neutral Bear Volume Neither strong or weak
ORANGE Bear Candle with WEAK VOLUME (Less than 50% of the Length / Lookback)
DARK GREEN Bull Candle with STRONG VOLUME MORE than 150% of lookback
GREEN Bull Candle with Neutral VOLUME BETWEEN 50% & 150% of the lookback / Length
AQUA Bull Candle with WEAK VOLUME less than 50% of the Lookback
Is price confirmed by volume?
Can Change the Lookback / Length from 13
Can Change the Colors and Transparency to easily see based off your chart background colors I recommend ZERO Transparency to easily identify volume strength (i use white background but many use black or other)