ANN Next Coming Candlestick Forecast SPX 1D v1.0WARNING:
Experimental and incomplete.
Script is open to development and will be developed.
This is just version 1.0
STRUCTURE
This script is trained according to the open, close, high and low values of the bars.
It is tried to predict the future values of opening, closing, high and low values.
A few simple codes were used to correlate expectation with current values. (You can see between line 129 - 159 )
Therefore, they are all individually trained.
You can see in functions.
The average training error of each variable is less than 0.011.
NOTE :
This script is designed for experimental use on S & P 500 and connected instruments only on 1-day bars.
The Plotcandle function is inspired by the following script of alexgrover :
Since we estimate the next values, our error rates should be much lower for all candlestick values. This is just first version to show logic.
I will continue to look for other variables to reach average error = 0.001 - 0.005 for each candlestick status.
Feel free to use and improve , this is open-source.
Best regards.
HIGH-LOW
[PX] M/W/D LevelHey guys,
this script shows monthly, weekly and daily OHLC data represented as horizontal level.
I tried to make it as user-friendly as possible. Therefore, you can add different colors and styles for each level, as well as turn them on and off.
With the "Label Offset" -parameter you are in control where the label text should appear. You can shift it from left to right and vice-versa. To shift it to the left choose a negative value. To shift it to the right use a positive one.
This best setting for me personally is the "Candle Selection" -dropdown. This allows you to decide wether you want to show the previous candles OHLC-data or the current live OHLC-data.
!!CAUTION!! If you use the "Current Month/Week/Day" -selection be aware that values shown are "live"-data of the current candle. Therefore, values will change the same way your chart keeps changing on live data.
The "Previous Month/Week/Day" -selection on the other hand is historical data and therefore only changes once we reached a new month/week/day.
If you like my work, consider leaving a like :)
Happy trading!
MACD Divergence Tops + BottomsMACD 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 higher price --> Potential Buy Point
MACD Divergence should be used in combination with other indicators. This indicator identifies local tops and bottoms, with potential for macro trend shifts.
Charles Recession WatchThe “Recession Watch” indicator tracks 7 key economic metrics which have historically preceded US recessions. It provides a real-time indication of incoming recession risk.
This indicator gives a picture of when risk is increasing, and therefore when you might want to start taking some money out of risky assets.
All of the last seven recessions were preceded by a risk score of 3 or higher. Six of them were preceded by a risk score of 4 or higher. Unfortunately data prior to 1965 was inconsistent and prior recessions could not be considered.
Based on the indicator hit rate at successfully flagging recessions over the last 50 years, risk scores have the following approximate probabilities of recession:
- 0-1: Low
- 2: 25% within next 18 months
- 3: 30% within next 12 months
- 4-7: 50% within next 12 months
Note that a score of 3 is not necessarily a cause for panic. After all, there are substantial rewards to be had in the lead up to recessions (averaging 19% following yield curve inversion). For the brave, staying invested until the score jumps to 4+, or until the S&P500 drops below the 200day MA, will likely yield the best returns.
Notes on use:
- use MONTHLY time period only (the economic metrics are reported monthly)
- If you want to view the risk Score (1-7) you need to set your chart axis to "Logarithmic"
Enjoy and good luck!
Multiple SMAs + X-Bar High/LowWhen starting my daily analysis, I typically open a daily chart and check where the price is compared to several SMAs, as well as check the high/low of today and the 10-day high/low. This indicator was designed to save chart space as well as make finding the highs and lows more efficient. Everything is adjustable, so you don't have to stick with my 10-bar rule.
Function : Pivots High and Low WARNING: The toil of this script is not mine . In order to avoid disrespect for work, I deleted some extensions only pure pivots , that is, only the information this script needed. I liked the fact that high and low pivots were in one function. I found this command by chance on stackoverflow. I don't know the authors and the nicknames because they are the stackoverflow nicknames. I hope it will help your adaptive periods. Finally, the length of the pivot must be at least 3 to be available.If the author reaches me, I will give his/her Tradingview name as a reference.
Pivot Points High Low (HH/HL/LH/LL) [Anan]Hello Friends,
This is my own version of ( Pivot Hilo Support n Resistance Levels R3-3 by JustUncleL )
- V4 Pinescript
- Removed MA dependency filters
- Add some arrows
Timelines-Buschi
English:
This is a little, simple script I made upon request from a user.
It shows the highs ad lows of up to three custom timelines (e. g. 60 min, 30 min and 15 min) within a chart.
Deutsch:
Dies ist ein kleines, einfaches Skript, das ich auf Anfrage eines Nutzers erstellt habe.
Es zeigt die Hochs und Tiefs von bis zu drei individueller Zeitreihen (z. B. 60 min, 30 min und 15 min) innerhalb eines Charts.
Previous OHLC LevelsQuick dirty code for personal use. Plots previous OHLC levels based on a selected time-frame on the chart.
Not bad if you want to see different time-frame levels.
Fill function can serve to highlight the daily range (high-low or open-close) on non-standard charts
Uses base code from JayRogers
High and lows round vs full numbersLiterally the name, just checks if a high or low is a full number or decimal (i.e 100.5) then shows the percentage of full number highs vs percentage of full number lows.
I couldn't really find anything useful with it but maybe someone else can
Daily High Low MovementIndicates the daily high and low drawn by green and red lines. Fill blocks indicate the average value movement relevant to the previous day. Green fills indicate that the value is moving higher than the previous day and red meaning lower.
NYSE:BA
[RD] LCS - line channels (basic) v3 - [republish]==================================================================
July 18 2019 - LCS - line channels (basic) by RootDuk
Version : v3 - read the notes
==================================================================
Easy script to draw channels based on ie. GANN using the following
input params
- ibback : barsback to search for high and low
- ffactor : factor to up/downscale the lines
- oextend : extend lines, left, right, both, none
- bshowline : show horizontal lines yes/no
- bsshowdown : show diag down lines yes/no
- bsshowup : show diag up lines yes/no
- bshowindm : show index marker, where is you current ibback
===================================================================
Notes
===================================================================
When you use this code, pls let me know where and how you used it
as iam always curious what some can do with it. Thanks!
===================================================================
Updates
===================================================================
v1
v2 - July 17 2019
- Removed support wallets from source code. I think the source
- has been deleted because of this, find no other clue.
v3 - July 18 2019
- Republish
Triple Coppock CurveThe Coppock Curve is a zero-centered momentum oscillator that relies primarily on rate of change calculations. The Coppock Curve in its most basic form is already a great indicator, especially for spotting shifts in momentum. But, we wanted to see how we could modify it to get some better performance out of it.
As the ‘cop’ function demonstrates, the Coppock Curve has a pretty simple calculation. The first step is to calculate the rate of change at a longer and shorter window length. Next, the sum of the two rate of change values is calculated and finally a weighted moving average of a user defined length is calculated(this is the Coppock Curve).
The ‘cop()’ function set the foundation to allow us to implement our modifications. As you can see in the graph, there are 3 different lines (2 histogram and 1 normal line) comprising the Coppock values based on the rate of change of high, low, and closing prices. We liked this layout because it allows traders to easily identify the curve’s pivots and the balance of negative vs. positive momentum.
The Coppock Curve based on high prices is plotted as the teal histogram, wile the pink histogram represents the Coppock Curve of low prices. The curve based on closing prices is the red and green alternating line plotted on top of the two histograms.
We included some notes on the chart to help with interpreting the three curves.
There are two common approaches traders can take when trading with the indicator:
1. Trade based on closing price curve: Go long when line changes from bearish(red) to bullish(green). Then, go short when same line changes from bullish to bearish.
2. Trade based on crossings of the zero-line. This could be based on the high, low, or closing price curves, but closing price is the safest bet. So, go long when it crosses from negative into positive territory and short when it crosses under the zero line from positive into negative territory.
Support/Resistance Zones x3Support and Resistance Levels + Zones for 3 time frames, based on volume at fractal levels with Zones based on wick size which is a true reflection of a Zone when compared to other S/R Zone scripts which only use a thick line not based on anything.
Original script is thanks to synapticex I have just migrated to version 3, heavily modified it and added Support and Resistance Zones.
Japanese Correlation CoefficientIntroduction
This indicator was asked and named by a trading meetup participant in Sevilla. The original question was "How to estimate the correlation between the price and a line as easy as possible", a question who got little attention. I previously proposed a correlation estimate using a modification of the standard score (see at the end of the post) for the estimation of a Savitzky-Golay moving average (LSMA) of order 1, however something faster could maybe be done and this is why i accepted the challenge.
Japanese Correlation
Correlation is defined as the linear relationship between two variables x and y , if x and y follow the same direction then the correlation increase else decrease. The correlation coefficient is always equal or below 1 and equal or above -1, it also have to be taken into account that this coefficient is quite smooth. Smoothing is not a problem, scaling however require more attention, high price > closing price > low price, therefore scaling can be done. First we smooth the closing/high/low price with a simple moving average of period p/2 , then we take the difference of the smoothed close with the smoothed close p/2 bars back, this result is then divided by the difference between the highest smoothed high's with the lowest smoothed low's over period p/2 .
Since we use information provided by candlesticks (close/high/low) i have been asked to publish this estimator with the name Japanese correlation coefficient , this name don't imply the use of data from Japanese markets, "Japanese" is used because of the candlestick method coming from Japan.
Comparison
I compare this estimation with the correlation coefficient provided in pinescript by the correlation function.
The estimation in orange with the original correlation coefficient using n as independent variable in blue with both length = 50.
comparison with length = 200.
Conclusion
I have shown that it is possible to roughly estimate the correlation coefficient between price and a linear function by using different price information. Correlation can be further estimated by using homogeneous bridge OHLC volatility estimators thus making able the use of different independent variables. I really hope you like this indicator and thanks to the meetup participant asking the question, i had a lot of fun making the indicator.
An alternative method
Range: OHLC vs Previous OHLCThis will plot your choice of OHLC (or any of the averaging choices) of the current candle compared to the previous candle.
For example if you choose "high" for the input and set the chart to daily, you'll see the currently daily high vs the previous daily high.
Green candle represent a higher high and the length of the candle represents how much higher.
Red candles represent a lower high than the previous day and the length is by how much lower.
This indicator is pretty straight forward, look for me to build on this with something a little more elaborate in the near future.
High Low LinesThis script allows you to see a line graph of the highs and lows. Useful for drawing trend lines.