loxxexpandedsourcetypesLibrary "loxxexpandedsourcetypes"
Expanded source types used in Loxx's indicators and strategies.
rclose()
rClose: regular close
Returns: float
ropen()
rClose: regular open
Returns: float
rhigh()
rClose: regular high
Returns: float
rlow()
rClose: regular low
Returns: float
rmedian()
rClose: regular hl2
Returns: float
rtypical()
rClose: regular hlc3
Returns: float
rweighted()
rClose: regular hlcc4
Returns: float
raverage()
rClose: regular ohlc4
Returns: float
ravemedbody()
rClose: median body
Returns: float
rtrendb()
rClose: trend regular
Returns: float
rtrendbext()
rClose: trend extreme
Returns: float
haclose(haclose)
haclose: heiken-ashi close
Parameters:
haclose : float
Returns: float
haopen(haopen)
haopen: heiken-ashi open
Parameters:
haopen : float
Returns: float
hahigh(hahigh)
hahigh: heiken-ashi high
Parameters:
hahigh : float
Returns: float
halow(halow)
halow: heiken-ashi low
Parameters:
halow : float
Returns: float
hamedian(hamedian)
hamedian: heiken-ashi median
Parameters:
hamedian : float
Returns: float
hatypical(hatypical)
hatypical: heiken-ashi typical
Parameters:
hatypical : float
Returns: float
haweighted(haweighted)
haweighted: heiken-ashi weighted
Parameters:
haweighted : float
Returns: float
haaverage(haweighted)
haaverage: heiken-ashi average
Parameters:
haweighted : float
Returns: float
haavemedbody(haclose, haopen)
haavemedbody: heiken-ashi median body
Parameters:
haclose : float
haopen : float
Returns: float
hatrendb(haclose, haopen, hahigh, halow)
hatrendb: heiken-ashi trend
Parameters:
haclose : float
haopen : float
hahigh : float
halow : float
Returns: float
hatrendbext(haclose, haopen, hahigh, halow)
hatrendext: heiken-ashi trend extreme
Parameters:
haclose : float
haopen : float
hahigh : float
halow : float
Returns: float
habclose(smthtype, amafl, amasl, kfl, ksl)
habclose: heiken-ashi better open
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habopen(smthtype, amafl, amasl, kfl, ksl)
habopen: heiken-ashi better open
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habhigh(smthtype, amafl, amasl, kfl, ksl)
habhigh: heiken-ashi better high
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
hablow(smthtype, amafl, amasl, kfl, ksl)
hablow: heiken-ashi better low
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habmedian(smthtype, amafl, amasl, kfl, ksl)
habmedian: heiken-ashi better median
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habtypical(smthtype, amafl, amasl, kfl, ksl)
habtypical: heiken-ashi better typical
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habweighted(smthtype, amafl, amasl, kfl, ksl)
habweighted: heiken-ashi better weighted
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habaverage(smthtype, amafl, amasl, kfl, ksl)
habaverage: heiken-ashi better average
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habavemedbody(smthtype, amafl, amasl, kfl, ksl)
habavemedbody: heiken-ashi better median body
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habtrendb(smthtype, amafl, amasl, kfl, ksl)
habtrendb: heiken-ashi better trend
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
habtrendbext(smthtype, amafl, amasl, kfl, ksl)
habtrendbext: heiken-ashi better trend extreme
Parameters:
smthtype : string
amafl : int
amasl : int
kfl : int
ksl : int
Returns: float
Ashi
Better Heiken-Ashi Candles w/ Expanded Source Types [Loxx]Better Heiken-Ashi Candles w/ Expanded Source Types is an indicator to compare regular candles to traditional Heiken-Ashi candles to "better" Heiken Ashi candles. This indicator and comparison study appears an oscillator. The purpose of this indicator is to demonstrate a better way to calculate HA candles and also to demonstrate expanded source types. This indicator is meant to be used by advanced Pine Coders who wish to add fine-tuning to their indicators and strategies.
What are Heiken Ashi "better" candles?
The "better formula" was proposed in an article/memo by BNP-Paribas (In Warrants & Zertifikate, No. 8, August 2004 (a monthly German magazine published by BNP Paribas, Frankfurt), there is an article by Sebastian Schmidt about further development (smoothing) of Heikin-Ashi chart.)
They proposed to use the following :
(Open+Close)/2+(((Close-Open)/(High-Low))*ABS((Close-Open)/2))
instead of using :
haClose = (O+H+L+C)/4
According to that document the HA representation using their proposed formula is better than the traditional formula.
What are traditional Heiken-Ashi candles?
The Heikin-Ashi technique averages price data to create a Japanese candlestick chart that filters out market noise.
Heikin-Ashi charts, developed by Munehisa Homma in the 1700s, share some characteristics with standard candlestick charts but differ based on the values used to create each candle. Instead of using the open, high, low, and close like standard candlestick charts, the Heikin-Ashi technique uses a modified formula based on two-period averages. This gives the chart a smoother appearance, making it easier to spots trends and reversals, but also obscures gaps and some price data.
What's going on with this indicator?
- First, we have the options to select the candlestick type: Regular, HA, HA Better
- Next, and to demonstrate the expanded source types, I've added a simple moving average. In the drop down for the SMA source you'll notice something very different from the typical TradingView source selector. Here's how to decode the new names for the sources:
Close = close
Open = open
High = high
Low = low
Median = hl2
Typical = hlc3
Weighted = hlcc4
Average = ohlc4
Average Median Body = (open+close)/2
Trend Biased = (see code, too complex to explain here)
Trend Biased (extreme) = (see code, too complex to explain here)
... for HA and HA better, see the same set up as above but with different open and close values to calcualate the other source types
- For the HA better calculations, we run the close value through either an Adaptive, Kaufman, or T3 smoothing filter. The length for these smoothing filters, either 2 or 3, can be found in the code and is a constant value that shouldn't be changed. This smoothing is in inline with what is described in the article mentioned above
- Lastly, I've placed an SMA over the oscillator so that the user can test out the various sources explained above
Included:
- Toggle on/off bar coloring
Trend Ribbon on Heiken AshiThis indicator shows mini trends using 2 Simple Moving Averages based on Heiken Ashi candles.
This indicator also shows overlay of Heiken Ashi candles, so you can stay on standard candles and see actual price.
This indicator helps finding entries on Heiken Ashi breaking up/down at M1-M5 timeframe.
Heiken Ashi MTF Oracle [JoseMetal]============
ENGLISH
============
- Description:
This indicator shows a 3 Multi Time Frame (MTF) Heiken Ashi candlestick oracle.
It shows 3 different lines with changes between bullish and bearish Heiken Ashi candlesticks for 3 automatic or custom timeframes.
It has alerts for LONG and SHORT (when all timeframes agree in the same candle).
- Visual:
Each line represents the color of the Heiken Ashi candlestick on a different timeframe, by default, green is bullis and red is bearish.
A square (configurable) shows the change between bullish and bearish.
When the combination of the 3 timeframes occur (3 bull or bear) the background is highlighted, after that as long as they agree the background will remain with that color.
- Customization:
As usual in my indicators, everything is customizable, timeframes are auto, but you can pick yours, colors, figures etc.
- Usage and recommendations:
Everything is good by default, it's recommended to use a x3 or x4 multiplier for the timeframes, example: 5 min, 15 min, 45 min or 5 min, 20 min and 60 min.
Personally, I use this in 1-3 min for scalping getting the very first time the 3 timeframes agree usually gives awesome entries.
Enjoy!
============
ESPAÑOL
============
- Descripción:
Este indicador muestra un oráculo de velas Heiken Ashi en 3 temporalidades diferentes (MTF).
Muestra 3 líneas diferentes con cambios entre velas Heiken Ashi alcistas y bajistas para 3 marcos temporales automáticos o personalizados.
Tiene alertas para LONG y SHORT (cuando todas las temporalidades coinciden en la misma vela).
- Visual:
Cada línea representa el color de la vela Heiken Ashi en un marco temporal diferente, por defecto, el verde es alcista y el rojo es bajista.
Un cuadrado (configurable) muestra el cambio entre alcista y bajista.
Cuando se produce la combinación de los 3 temporalidades (3 alcistas o bajistas) el fondo se resalta, después mientras coincidan el fondo permanecerá con ese color.
- Personalización:
Como es habitual en mis indicadores, todo es personalizable, los marcos de tiempo son automáticos, pero puedes elegir los tuyos, colores, figuras, etc.
- Uso y recomendaciones:
Todo está bien por defecto, se recomienda usar un multiplicador x3 o x4 para las temporalidades, ejemplo: 5 min, 15 min, 45 min o 5 min, 20 min y 60 min.
Personalmente, uso éste indicador en 1-3 min para scalping, si entras la primera vez que las 3 temporalidades coinciden sueles coger un muy buen movimiento.
¡Que lo disfrutéis!
Heikin Ashi CandlesLibrary "heikin_ashi_candles"
This library is programmed to calculate the Heikin Ashi candles using the standard formula of Heikin Ashi Candles.
Notice the Heikin Ashi chart type isn't 100% like the results from this calculation.
You can import this library in your code to use it as a smoothing method for your strategy which operates on the standard chart type.
_close()
_open()
_high()
_low()
_ohlc4()
_hlcc4()
_hlc3()
_hl2()
Smoothed Heikin Ashi Trend on Chart - TraderHalaiThis indicator is a predictive tool using Heikinashi to calculate shifts in trade direction.
It works by reverse-engineering the regular candle stick closing price required, to flip the Heiken Ashi candle from Red to Green and vice-versa.
Below, is an earlier indicator that I released and created. This plots this price as an oscillator, which allows traders to get a predictive indicator of a trend change.
This indicator extends upon this functionality by adding a smoothing function to the reverse-engineered regular candle stick closing price, to reduce the choppiness of signals. It also plots the indicator on the chart to allow for easier visual confirmation.
How to use
1) As a directional bias - Bullish or bearish
2) Volatility expansion/contraction - further distance from line means volatility expansion - am planning to release an oscillator version also
3) Trailing stop loss - once you are in a trade
Other Features
Select a moving average period and smoothing calculation method (e.g. SMA / EMA)
Non-repaint mode for backtesting and use/integration with higher timeframes
Final note - Open Source
I am releasing this as open-source for the benefit of the community and to allow further development, scrutiny and criticism. Please feel free to use this indicator as you see fit. If you do use this indicator to create another script, feel free to drop me a note, as I would be highly interested in your idea.
Thanks, and Enjoy!
Heikin Ashi OscillatorThis indicator plots a delta between the Heiken Ashi close price and the regular candlestick closing price as a histogram, which allows you to quickly analyse changes in trend
direction.
It also provides a reverse-engineered closing price for regular candlesticks, to reach in order to maintain the momentum, which allows you to be forewarned of potential pivot points to change in bias in direction.
Feel free to use this indicator to modify and add to your charts as you wish.
Heikin-Ashi Candle ColorOne of the biggest complaints about Heikin Ashi is the lack of real price data you receive. This attempts to give you as much information as possible by displaying both the candle color and the Heikin Ashi color. The wick takes on the original color while the body of the candle gets the Heikin Ashi color. The only downside to this method is that you do not get to see candle patterns. As always I hope you enjoy this release!
Heiken Ashi Smoothed Net VolumeThis indicator attempts to use Heiken Ashi calculations to smooth the Volume net histogram indicator by RafaelZioni. Long above zero line, short below zero line.
Market Bias (CEREBR)Hello Everyone. I hope you are all doing great. It's been a long time since I posted my first script here, and I got a lot of response from that.
So, I thought I should share this script also to everyone, and anyone that may find it useful. Personally, I use it to tell the general market conditions.
Here's how I works : The script tries to determine the overall direction of the market, using smoothed Heiken Ashi candles. The coloring system (using bright and dark colors) is an attempt to detect strong market and weak market conditions. There's also an oscillator within the script, but for now it isn't plotted. Credits to @jackvmk, I used part of his open-script code in this indicator.\
I have considered using the slope of the indicator plot as a filter for ranging market conditions. The plot goes relatively flat in 'flat' markets. However, I have not done anything about that yet. Maybe some other time.
I hope you find this useful. If you find a way to use this, please share it with the community in the comment section.
NOTE: THIS IS BY NO MEANS FINANCIAL ADVICE. You'll have to make your studies and come up with a way to apply this indicator to your trading style and strategy.
By the way, I would be going with the name 'CEREBR' for any subsequent scripts I release from now on.
Happy Trading, guys.
ARKA-haDelta+This Indicator is based on Mr. Dan Valcu ideas.
Bodies of candles(open-close) are the main component used to indicate and assess trend direction, strength, and reversals.
The indicator measures difference between Heikin Ashi close and open.
Measuring the height of candle bodies leads to extreme values that point to trend slowdowns. Thus quantifies Heikin Ashi to get earlier signals.
I used this indicator on Heiken Ashi charts but, it's possible to choose to calculate Body size based on Heiken Ashi or Candles.
haDelta can be smoothed with a simple moving average .
We see that crossings between the haDelta and SMA confirm trend changes with an anticipated delay introduced by each average. Crossings between the indicator and its average are better
confirmations of trend changes.
When Delta crosses above SMA it is an uptrend.
When Delta crosses below SMA it is a downtrend.
Default haDelta smoothed value is by applying 3 periods SMA .
Also, it is possible to deactivate SMA and see just The Delta Values.
In this indicator can choose the MA period and type.
This version has an option that makes it possible to draw dynamic levels. By choosing Dynamic from levels Type and set your preferred length.
The Length value is the max value in the past candles that are used to draw the levels.
In this version, I added the Z-score level. By choosing z-score areas the z-score is above 2 or below -2 shown by colors. I also added Alert ability into the indicator. The alert has two modes. First, when level type equals Z-Score it shows signals where delta cross ma and Z-Score are below or above high and low levels.
The second mode is when the level type is not Z-Score it shows delta cross ma.
So far, this is the description of the indicator(haDelta), which has been written separately and published for the public. In this indicator, we intend to smooth the value of haDelta we get using moving averages.
A simple three-day moving average has been applied to the Delta(3) and its MA to reduce the number of false signals generated by haDelta.
haDelta+=SMA(haDelta,3)
SMA(haDelta+,3)=SMA(haDelta+,3)
HARSI[Rex version]This indicator based on Heikin Ashi RSI Oscillator
The indicator like a plugin of Heikin Ashi RSI Oscillator
At the line NO.1 the (the red candle turn into green) ,but price sitll bumpy .
At the line NO.2 after the mark and long signal appears and price goes up
And the Vegas tunnel could be TPotSL
一號線的位置出現了Heikin Ashi RSI Oscillator 多方進場訊號但是價格還是持續震盪
二號線位置出現了上升箭頭後價格才開始慢慢向上走
Heikin Multi Time Frame// How it Works \\
This script calculates the open and close prices of Heikin Ashi candles across multiple timeframes,
If the candle formed on that timeframe is green it will display in the table a green square, If the candle is red, the square will display red.
// Settings \\
You can change the colours of the plots
You can also Change any of the timeframes which the Heikin Ashi candles are being calculated on
// Use Case \\
Heikin Ashi candles are often used to give a smoother trend direction and help cancel out some of the noice/consolidation.
It can also be use as trend detection for multiple timeframes at once
/ / Suggestions \\
Happy for anyone to make any suggestions on changes which could improve the script,
// Terms \\
Feel free to use the script, If you do use the scrip please just tag me as I am interested to see how people are using it. Good Luck!
Heikin-Ashi Trend AlertThis script:
Adds a Heikin-Ashi line to the chart (EMA-based).
Provides alerts triggered when the color goes from green to red and vice versa.
Just add the indicator to the chart, create an alert and select " Heikin-Ashi Trend Alert " from the dropdown. Profit.
ARKA-Smoothed Z-ScoreThis Indicator is based on Mr. Dan Valcu ideas.
The author of this article is Veronica Valcu.
The z-score (z) for a data item x measures the distance (in standard deviations StdDev) and direction
of the item from its mean (U):
z = (x-StdDev) / U
A value of zero indicates that the data item x is equal to the mean U, while
positive or negative values show that the data item is above (x>U) or below
(x Values of +2 and -2 show that the data item is two standard deviations
above or below the chosen mean, respectively, and over 95.5% of all data
items are contained within these two horizontal references.
Based on the article and ideas about the z-score concept we can use it to get more confidence where we want to be sure this is an oversold or overbought zone.
The indicator draws two levels on 2 and -2. Z-Score color comes red when it goes above 2, and the color changes to green when it goes below the -2 level. The Z-Score color which value is between 2 & -2 is gray.
So far, this is the description of the indicator(ARKA-Z Score), which has been written separately and published for the public. In this indicator, we intend to smooth the value of Z-Score we get using moving averages.
Z-score applied to close prices is an irregular curve that can be smoothed by applying
moving averages. A simple three-day moving average has been applied to the z-score (20), and a simple five-day moving average is applied to the resulting average.
Long opportunities were initiated when the three-day simple moving average crossed above the five-day simple moving average of the three-day simple moving average. Short opportunities were initiated when the three-day simple moving average crossed below the five-day simple moving average of the three-day simple moving average.
ARKA-Synergy Heikin Ashi & PriceThis Indicator is based on Mr. Dan Valcu ideas. In this indicator, trend points and possible return points in the Heikin Ashi chart are calculated based on their position.
Closing price in front of the middle point of the body of Heikin Ashi. So we can get more trend information from the Heikin Ashi chart. The basic idea behind combined charts is to be ready to act when a warning (0.5 or -0.5) is displayed during a trend.
The indicator has four column types:
UP: Uptrend(1)
DN: Downtrend(-1)
NW: Negative warning(0.5)
PW: Positive warning(-0.5)
ARKA-Z-ScoreThis Indicator is based on Mr. Dan Valcu ideas.
The author of this article is Veronica Valcu.
The z-score (z) for a data item x measures the distance (in standard deviations StdDev) and direction
of the item from its mean (U):
z = (x-StdDev) / U
A value of zero indicates that the data item x is equal to the mean U, while
positive or negative values show that the data item is above (x>U) or below
(x Values of +2 and -2 show that the data item is two standard deviations
above or below the chosen mean, respectively, and over 95.5% of all data
items are contained within these two horizontal references.
Based on the article and ideas about the z-score concept we can use it to get more confidence where we want to be sure this is an oversold or overbought zone.
The indicator draws two levels on 2 and -2. Z-Score color comes red when it goes above 2, and the color changes to green when it goes below the -2 level. The Z-Score color which value is between 2 & -2 is gray.
HARSI - The WHALE v2This strategy is credited to the "Heikin Ashi RSI Oscillator" By JayRogers.
The core of this strategy is "Heikin Ashi RSI Oscillator (HARSI)" By JayRogers, with multiple confirmation indicators. The buy signal is generated by HARSI when there is green HA, and there is a positive stochastic cross under the line OB line.
To confirm the buys signal, you can use one or all of the following:
- EMA: the buy confirmation is positive if the candle closes above the EMA.
- Volume Oscillator: the buy confirmation is positive if the volume value is above the zero line.
- ADX: the buy confirmation is positive if the D+ is above the D- and the D+ is above the threshold level.
- Vortex: the buy confirmation is positive if VI+ is above VI-.
You can enable the take profit, trailing stop loss (TSL), and stop lose (SL), if not, then the strategy will give a sell signal by itself when there is a negative stochastic cross above OB Extreme line.
Note, that the TSL arming value should be lower than the TSL %.
The strategy can give a different result based on your selection. However, the best timeframe is 4 hours without TP.
Heikin Ashi CountObjective:
This indicator aims to obtain an oscillator indicating the trend of a market by minimizing noise through the use of Heikin Ashi candles.
The idea is to make the oscillator tend towards 100 at each bullish Heikin Ashi candle, and inversely towards 0 when bearish.
The advantage is that this indicator has little noise compared to the RSI, but also little lag compared to the Schaff Trend Cycle, which are the two indicators that inspired me to create this one.
Usage:
As a general rule, below 15, HA Count indicates an oversell and above 85 an overbuy.
Setting the length for the candle count results in an indicator that is less sensitive when close to 1 and more sensitive when it is at 2 or higher.
Chosen as the default value, 1.15 seems to give the best indications, regardless of the market or time period.
Also it looks very similar to the values that the RSI could give set over 14 periods, so it can be used in the same way. Especially with regard to divergences.
---- FR ----
Objectif :
Cet indicateur vise à obtenir un oscillateur indicant la tendance d'un marché en minimisant le bruit grace à l'utilisation des bougies Heikin Ashi.
L'idée est de faire tendre l'oscillateur vers 100 à chaque bougie Heikin Ashi haussière, et inversement vers 0 lorsque baissière.
L'avantage est que cet indicateur a peu de bruit comparé au RSI, mais peu de lag aussi comparé au Schaff Trend Cycle, qui sont les deux indicateurs qui m'ont inspiré pour la création de celui-ci.
Utilisation :
En régle général, en dessous de 15 HA Count indique une sur-vente et au-dessus de 85 un sur-achat.
Le paramétrage de la longueur pour le comptage de bougie permet d'obtenir un indicateur moins sensible lorsque proche de 1 et plus sensible lorsqu'il est à 2 ou supérieur.
Choisie comme valeur par défaut, 1.15 semble donner les meilleures indications, peu importe le marché ou la période de temps.
En outre cela ressemble beaucoup aux valeurs que pourrait donner le RSI régler sur 14 périodes, ainsi il peut être utilisé de la même manière. Notamment pour ce qui est des divergences.
Heikin Aishi VolumeThis indicator plots the volume of each Heikin - Ashi bar...
As you all know the color of the volume depends on the open and close of the current and previous candle. So this indicator will give different color result when used on regular candles...
FUTURES ScalpV2 PROTECHFUTURES ScalpV2 PROTECH system
This indicator is built specifically for fast trading i.e. scalping/intraday in the commodity market or futures market. It uses an indicator instrument consisting of ATR TRAILING STOP (ATR), EXPONENTIAL MOVING AVERAGE, PIVOT POINT, and FIBONACCI.
Rebuild of Instrument & Parameter
This indicator is also an upgraded instrument that is sourced from the previous indicator, the COMPLETELY FCPO INDICATOR.
This R&D of course to make trading activities more effective, dynamic and to increase the confidence of traders in current trading activities. The indicator has been upgraded in terms of parameters as well as additional instruments. Among them are;
1. ATR Trailing Stop
2. Exponential Moving Average – fastMA/slowMA Length
3. Label@Entry Price/Stoploss/Takeprofit line
>The best timeframe is 3 minutes
>The take profit and stop loss rates are based on percentages. However
traders can change the percentage rate according to their respective
trading plans.
>existing percentage rates have been set(build-in) specifically for the FCPO
market. So you have to reset for other markets.
>The candle/bars have been colored to make it easier for traders to see price
trends whether in bullish or bearish conditions.
The original instrument has been retained but changed in terms of display & facelift features.
The original indicator (COMPLETELY FCPO INDICATOR) still remains in use and can used together. Hopefully with the combination of these indicators will make traders more successful in trading activities, especially in the futures market.
DISCLAIMER;
ALL NOTES AND INDICATING TOOLS ARE FOR EDUCATIONAL ONLY AND AS A FACILITATOR AND PREPARATION IN TRADING ACTIVITIES. ADMIN IS NOT RESPONSIBLE FOR ANY RISKS IN YOUR TRADING ACTIVITIES. TAKE AT YOUR OWN RISK.
FunTrader/Aieyee @2022
SuperJump Multi Time Frame Heiken Ashi ColorThis is my first public simple script.
It expresses the color of Heiken ashi Candle on a different time chart.
As you already know about it, If you change your chart directly to Heiken ashi, the value of candle changes.
For eaxmple, moving average lines change little by little from Non Heiken ashi Candle.
I was very uncomfortable with this.
If you use this, you can check the Heiken ashi color while using a Non Heiken ashi Candle.