Credit goes to QuantNomad for the idea behind this code. Here
is the original script.
This strategy simply goes long on a cross above zero of the calculated delta line and short on a cross down below zero.
The delta line is calculated using 2 volume based moving averages.
There is a fixed 9% stop loss but you can change this to an ATR Derived stop in the settings.
MACD Indicator which plots local peaks and troughs in divergence.
"Classic" Divergence is specified as:
- A higher price, with reduced MACD high --> Potential Sell Point
- A lower price, with higher MACD low --> Potential Buy Point
"Alternative" Divergence is specified as:
- A higher MACD high, with reduced price --> Potential Sell Point
- A lower MACD low, with...
This is a combination of my MACD Leader script and MAC-Z with option to add Laguerre filter. The advantage of the MAC-Z over MACD is that it is a more accurate and “assumption-free” indicator that can more accurately describe how a market actually perform. But you can use this as a regular MACD indicator.
The MAC-Z line and signal line can be...
Early/Delayed Signal Function (before the bar close or after)
Usually, signals are considered to be valid at the bar close.
Some traders may prefer to have a chance to enter earlier.
It is of great risk, and the Strategy Tester is unable to provide consistent backtest data with regards to this.
But for those who want to integrate such a choice in their...
This is an MACD indicator with the ability to use zeror lag moving average instead of exponential moving average. I also added different background color when histogram is over or under center line, MACD Leader, Laguerre filter and dots to indicate when Leader line crosses macd line. Good luck traders!
Here is a unique way of looking at your price & volume information. Utilize the calculated value of "Shannon Entropy". This is a measure of "surprise" in the data, the larger the move or deviation from the most probable value, the higher the new information gain. What I think is so interesting about this value, is the smoothness that it displays the information...
This is my thank you to the TradingView community, for the people who are sharing their scripts, which allowed me to learn Pine Script.
So here is my first creation, feel free to experiment, modify and use it as you wish.
It is a CCI(default value is 100, can be changed), combined with an EMA of that CCI(default 21,changeable) that then colors the background...
This script shows the values of MACD, RSI, Momentum, Stoch, CCI for current and higher time frames in a panel. if higher time frame is equal or smaller than current time frame and it doesn't show the values for HTF.
And also it shows if their values are increasing, decreasing or equal to last value with "▲", "▼", "="
The signal length for all indicators is 9...
This script consists of converting the value of 1 gram and / or 1 ounce of gold according to the national currencies into a system with artificial neural networks.
Why did I feel such a need?
Even though the printed products in the market are digitally circulated, only precious metals are available in full or near full.
Silver is difficult to carry because you...
This is an alerts script for my Squeeze X strategy.
The default settings are the same. The alerts are based on the long and short signals that occur upon a cross of the momentum line to the positive or negative respectively.
Green background is bullish, red is bearish. Bright green lines indicate a long signal, bright red a short signal.
White background means...
This is combo strategies for get a cumulative signal.
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow...