Scripting Tutorial 6 - Triple Many Moving Averages ForecastingThis script is for a triple moving average indicator where the user can select from different types of moving averages, price sources and lookback periods.
Features:
- 3 Moving Averages with variable MA types, periods, price sources and ability to disable each individually
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish, bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter. Twitter should be linked on my profile.
This script is meant as an educational script with well-formatted styling, and references for specific functions.
Bias
Ultimate BiasThis indicator is meant to be used by our private trading group.
It allows you to plot complex Market Bias criteria, and it generates a context for the market state and fires Entry/Exit signals.
It includes customized alerts to ease its use in algo trading.
ZenTrading MTFA Trend TerritoryBetaversion
This is a multiple timeframe analysis script using ichimoku that checks where price (close) is on different timeframes.
Green : Price is in bullish territory
Orange : Price is in consolidation
Red: Price is in bearish territory.
The script looks at 15 min, 1 Hr, 4 HR, D, W, M timeframes. Not all will be relevant (depending on trading timeframe and on asset).
Possible to toggle timeframes on and off (15 min and M timeframes may not be relevant for the asset or timeframe you trade on, switch them off for a cleaner chart)
Ultimate TRI MAsThis is a helper tool to get deeper into TRI's Moving Average Studies.
The indicator allows for:
Show/Hide all MAs
Show/Hide each one of the MAs
Label the MAs for quicker identification
Select Bias Mode: Institutional or Brian's
Draw a Cloud based on Bias Mode
Highlight Crosses based on Bias Mode
Color the Background based on Bias Mode
Show/Hide the Cloud, the Crosses and the Background
Hope you find it useful!
B3 LSR Strategy- "Price Leading MovAvg"B3 Least Squares Regression or "LSR" is very similar to the mid-line at the end of a linear regression channel, except that in a linear regression you cannot see the history of the regression well. There is also the linear regression and least squares curves in some platforms, and this would also be a similar indicator. The smoothness of my indicator and the back-to-basics approach to the mathematics sets it apart from the others. The look of this MA on a chart speaks for itself.
Some people like the flow of this indicator, as it will actually shoot out ahead of price. Most moving averages trail the price action; this one doesn't do that for long before it catches the price or begins to lead price. It isn't necessarily a future price predictor; think of it as a slope stylist. The slope of this indicator determines all painting and signals for the strategy. There are two available versions: with or without order placement.
Volume Plus (Volume+)View Total Volume, Bull Volume, and/or Bear Volume. View Volume Effectiveness to reveal how Volume has effected the price. View the Moving Average of any of the above metrics, selecting one or more types of moving averages(SMA, EMA, RMA, SWMA, VWMA, WMA, or ALMA). Create nearly infinite crossovers by activating the Secondary Moving Average and choosing a longer or shorter Length. Use the highlighter to quickly filter out noise and focus the events you're searching for, by choosing one or more highlight-scenarios from the Highlighting Menu. Use the Average Amplifier to fine tune your Highlighting results.
Use as an ordinary Volume Indicator
Show the Bullish volume within Total Volume
Show the Bearish volume within Total Volume
Show the Bullish and Bearish volume simultaneously within Total Volume
Create crossovers like this one, Bullish Volume Average with Bearish Volume Average
Show the gas mileage of volume, the Volume Effectiveness
Create crossovers like this, Volume Effectiveness 14 with Volume Effectiveness 60
Use Amplifiers to show things that are usually out of scale with one another, like Volume Effectiveness with Volume
Use the Highlighter to show anything, like here, when Bearish Volume was above average AND Volume Effectiveness was under average
From left to right, the Indicator Values are as follows:
1) Total True Volume (red, green, or gray when viewed alongside Bulls/Bears)
2) Volume Winner - Bulls v/s Bears (red or green)
3) Volume Loser - Bulls v/s Bears (red or green)
4) Volume Effectiveness (blue)
5) Design Spacer - Ignore This (green)
6) Design Spacer - Ignore This (red)
7) Total True Volume Primary Moving Average (dark gray)
8) Total True Volume Secondary Moving Average (dark gray)
9) Inferred Bullish Volume Primary Moving Average (dark green)
10) Inferred Bullish Volume Secondary Moving Average (dark green)
11) Inferred Bearish Volume Primary Moving Average (dark red)
12) Inferred Bearish Volume Secondary Moving Average (dark red)
13) Volume Effectiveness Primary Moving Average (blue)
14) Volume Effectiveness Secondary Moving Average (blue)
Click the sprocket and you'll find the following settings (which are explained below):
Total True Volume - This is your everyday, ordinary volume indicator, a total sum of the volume from each candle.
Inferred Bullish Volume - This subtracts Bearish Volume out of the Total True Volume. But without the bull-volume data from the exchange, we can only forensically infer the bullish volume by evaluating OHLC data to guess what ratio of upward v/s downward movement happened within the candle.
Inferred Bearish Volume - This subtracts Bullish Volume out of the Total True Volume. But without the bear-volume data from the exchange, we can only forensically infer the bearish volume by evaluating OHLC data to guess what ratio of downward v/s upward movement happened within the candle.
Volume Effectiveness - This shows how much price movement occurred for each unit of Volume, by dividing the Price Change of each candle by the Total True Volume of each candle. If this volume were gas-mileage, then Volume would be the gas and Price would be the mileage.
• Inferred Effectiveness - Rather than using the Price Change divided by the Total True Volume, this method of determining Volume Effectiveness uses the Total Price-Mileage divided by the Total True Volume. The Total Price-Mileage is determined by figuring the high minus low, the wick times two, and the tail times two, and ad
Institutional BiasShows what we at TRI call the institutional bias, i.e. a bull bias when 9 ema is above 18 ema and a bear bias when the 9 ema is below the 18 ema.
Plots the 9 and 18 ema, and fills the background green when the institutional bias is bullish and red when it is bearish.
[tududu] Pullbacks and Directional BiasQuick analysis for TRENDING markets. This script tracks trend and 3 pullbacks ranges from n-bar max/lows.
Pullback values are floats so ranges can be < 1% for intraday trading. On top of it, it also provides non-lagging "directional bias" candle colors by tracking the earliest possible swing highs.
Also, thanks for the 100+ likes on my previous script ("Day Trade Suite").
---
Script para análise de mercados em tendência. O script marca 3 faixas de pullbacks a partir das máximas ou mínimas de x-barras (valores precisam ser manualmente ajustados para diferentes mercados, mas em uma próxima versão pretendo incluir algum tipo de análise automatizada de volatilidade).
Programado para timeframe diário, porém é possível configurar as faixas de pullback para menos de 1% (ex. 0.5) para daytrade. Além disso, o script também fornece barras de cores direcionais com pouco atraso, detectando swing highs em formação.
Obrigado por todas as curtidas no meu script anterior ("Day Trade Suite") !