ANN MACD Future Forecast (SPY 1D) NOTE : Deep learning was conducted in a narrow sample set for testing purposes. So this script is Experimental .
This system is based on the following article and is inspired by an external program:
hackernoon.com
None of the artificial neural networks in Tradingview work and are not based on completely correct logic. Unlike others in this system:
IMPORTANT NOTE: If the tangent activation function is used, the input data must also have tangent values (compared to the previous values of 1 bar).
Inputs were prepared according to this judgment.
1. The tangent function which is the activation function is written correctly. (The tangent function in the article: ActivationFunctionTanh (v) => (1 - exp (-2 * v)) / (1 + exp (-2 * v)))
2. Missing bias parts in the formulas were added.
3. The output function is taken from the next day (historical), so that the next bar can be predicted, which is the truth.
4.The forecast value of the next bar is subtracted from the current bar change and the market direction is determined.
5.When the future forecast and the current close are added together, the resulting data is called seed.
The seed carries data both from the present and from yesterday and from the future.
6.And this seed was subjected to the MACD method.
Thus, due to exponential averages, more importance will be given to recent developments and
The acceleration situations will show us the direction.
However, a short position should be taken for crossover and a long position for crossunder .
Because the predicted values work in reverse.Even though we use the same period (9,12,26) it is much faster!
7. There is no future code that can cause Repaint.
However, the color after closing should be checked.
The system is completely correct.
However, a very narrow sample was selected.
100 data: Tangent diffs ; volume change, bollinger bands values changes (Upband , Midband , Lowband) and LazyBear's Squeeze Momentum Indicator (SQZMOM_LB) change and the next bar data (historical) price change were put into the deep learning test.
IMPORTANT NOTE : The larger the sample set and the more effective dependent variables, the higher the hit rate of the deep learning test!
EDIT : This code is open source under the MIT License. If you have any improvements or corrections to suggest, please send me a pull request via the github repository github.com
Stay tuned. Best regards!
Tìm kiếm tập lệnh với "MACD"
MACD BF 🚀Customised MACD strategy with dynamic stop losses based on ATR.
Signals are generated when the delta value becomes positive or negative (when it crosses the zero line)
Stop losses are printed on the chart in yellow and orange. They are based on recent average True Range to allow for volatility.
INSTRUCTIONS
Green background = long
Red background = short
Yellow dotted line = stop loss placement for long
Orange dotted line = stop loss placement for short
White background = you have been stopped out, wait patiently for the next signal
MACD with RSI WarningI like using both MACD and RSI for my strategies to confirm patterns, but I really only check RSI to see if it is outside of the normal range. So I rewrote the MACD indicator to color bars that are above or below the set RSI boundaries in a different color (yellow by default) so I can quickly check that parameter without needing both indicators up.
This is my first indicator, so please feel free to let me know how I might clean it up!
RSI & MACDJust combined the template RSI and MACD scripts from the pine library and it seems to work better in pine version 4 :) ty tradingview!
Koby's ZLEMA MACD and KAMA signalUsing zero lag ema for MACD line, and using KAMA for MACD's signal line.
Test version.
This has MACD and signal cross alert, and 0 line alert.
Koby's HMA MACDThis my custom MACD based on Hull Moving Average for our SNS group.
I will add other features later.
MACD LB MFIThis script includes MACD histogram plus MFI in four states
All backgrounds are compared to previous bar in +/- 10%
1. Green (green) + Volume + Range (++)
2. Fading (yellow) - Volume - Range (--)
3. False (gray) - Volume + Range (-+)
4. Crouching (red) + Volume - Range (+-)
Simple MACD Strategy - CrossoverSimple MACD Crossover Strategy
No secret sauce here!
Script was requested by user
Multi-indicador MACD/RSI/volumen en ventanaComplemento para el otro indicador que ya publiqué.
En esta caso añado las gráficas de MACD, RSI y volumen en una sola ventana.
El problema para esto es el escalado de las gráficas del MACD y el volumen para que entren en una escala de 1 a 100 para lo que tomo los máximos y mínimos de 500 velas (este valor se puede cambiar).
Adicionalmente, coloreo el macd de verde cuando sobrepasa a la señal o de rojo cuando va por debajo y lo mismo con el rsi.
Añado el volumen a todo esto, también escalado.
MACD SlopeShows slopes of macd line, signal line and histogram. A negative and rising slope shows improvement within a downtrend. A positive and falling slope shows deterioration within an uptrend.
Simple Alt Coin Strategy - EMA and MACD w/Profit and StopThis script prints BUY and SELL signals based on settings you input. I use it to save time while scrolling through charts deciding what alts I want to look at.
BUY SIGNALS
Positive EMA Crossover
Positive MACD Crossover
Single Candle Gains
SELL SIGNALS
Profit Capture
Stop Loss
I don't trade based just on the BUY or SELL from this strategy, but I have found that these indicators do very well well looking at the large cap alt coins. It backtests well.
Default Settings EMA 5/12/50, MACD 9/12/26, Single Candle Gain 10%, Stop 10%, Profit Capture 45%
EMA Cross + MACD Signal Cross overlay Einfacher EMA-Cross Indikator mit Indikation der Crosses auf EMA-Linie und am Chart-Bottom +
MACD-Cross wird default an: location.top angezeigt zusätzlich zeigt die Hintergrundfarbe an ob der MACD über (grün) oder unter (rot) seinem Signal liegt.
V-MACDHello traders!
This is a variation of classical MACD that uses volume instead of price.
Like and follow for more cool indicators!
Happy Trading!
Dual MACDI like the Dual MACD for detecting moves a bit earlier. I use the standard MACD for actual confirmation.
9 x TimeFrames: MACD + Histogram, Logarithmic***Up to 9 MACD's with fixed timeframes***
-Simply enter your MACD settings, and which timeframes you would like to see.
-Settings stick regardless of viewing resolution (within reason)
-Enter 0 to disable if you want less than 9 MACD's
***Logarithmic option for consistency over long timeframes***
***Layered histogram, can be disabled, adjusted vertically***
MACD/Histogram Divergence ToolThis MACD/Histogram indicator helps me to identify divergences and crosses without much effort.
The MACD line is green during a positive cross, and red during a negative.
My favourite feature is the following: when the histogram changes direction, the histogram bars become yellow, which should help you locate divergences without straining yourself.
Example: Upticking (Green) histogram begins to downtick, turns Yellow. Downticking (Red) histogram begins to uptick, turns Yellow as well.
CCI MACDWe usually use closing prices for MACD calculations.
However, this indicator is calculated using CCI.
Better MACD with clearer cross and histogram signalsSimple but much needed visual improvements to the default MACD script. First, every time the MACD and signal cross, a white cross is placed on he chart, which lets you quickly identify the crosses. Second, whenever the histogram goes from increasing to decreasing or from increasing to decreasing, a color change occurs. Colors can be customized under "Style" tab under settings.