Indicators
HomeIndicatorsAgenaScriptRelease Notes
  • đź“’AgenaTrader Indicators Introduction
  • STANDARD INDICATORS
    • Accumulation/Distribution (ADL)
    • Adaptive Price Zone (APZ)
    • Aroon
    • Aroon Oscillator
    • Average Directional Index (ADX)
    • Average Directional Movement Rating (ADXR)
    • Average True Range (ATR)
    • BBBreakOutSpeed
    • Balance of Power (BOP)
    • Bollinger Bands
    • Bollinger Percent B (%b)
    • Bollinger Band Width (BBWidth)
    • Bollinger MTF (MultiTimeFrame)
    • BuySellPressure
    • BuySellVolume
    • CandleStickPattern
    • ChaikinMoneyFlow (CMF)
    • Chaikin Oscillator
    • ChaikinVolatility (CVL)
    • Chande Momentum Oscillator (CMO)
    • Climactic Distance
    • Commodity Channel Index (CCI)
    • Directional Movement (DM)
    • Donchian Channel
    • Directional Movement Index (DMI)
    • Double Stochastics (DSS)
    • Dynamic Momentum Index (DMIndex)
    • Ease of Movement (EOM)
    • Fisher Transform
    • Forecast Oscillator (FOSC)
    • HighestHighIndex()
    • HighestHighPrice()
    • IchimokuCloud
    • Keltner Channel
    • KeyReversalUp
    • KeyReversalDown
    • KeyReversalUpAtSMA
    • KeyReversalDownAtSMA
    • KeyReversalUpAtEMA
    • KeyReversalDownAtEMA
    • Linear Regression
    • LinRegIntercept
    • LinRegSlope
    • LowestLowIndex()
    • LowestLowPrice()
    • MACD
    • MAEnvelopes
    • Momentum (MOM)
    • Money Flow Index (MFI)
    • Moving Averages
      • DEMA - Double Exponential Moving Average
      • EMA - Exponential Moving Average
      • EMA MTF (MultiTimeFrame)
      • HMA - Hull Moving Average
      • KAMA - Kaufman's Adaptive Moving Average
      • MAMA - Mesa Adaptive Moving Average
      • SMA - Simple Moving Average
      • GapSMA - Gap Simple Moving Average
      • SMA MTF (MultiTimeFrame)
      • SMMA - Smoothed Moving Average
      • TEMA - Triple Exponential Moving Average
      • TMA - Triangular Moving Average
      • TRIX - Triple Exponential Moving Average
      • T3 - Triple Exponential Moving Average
      • VMA - Variable Moving Average
      • VWMA - Volume Weighted Moving Average
      • WMA - Weighted Moving Average
      • ZLEMA - Zero Lag Exponential Moving Average
    • nBarsUp
    • nBarsDown
    • OnBalanceVolume (OBV)
    • OutsideBars
    • Parabolic SAR
    • Percentage Price Oscillator (PPO)
    • PercentEnvelopes
    • Pivot Points
    • Polarized Fractal Efficiency (PFE)
    • Price Oscillator
    • Rainbow
    • Range
    • Range Indicator (RIND)
    • Rate of Change (ROC)
    • Relative Performance
    • Relative Spread Strength (RSS)
    • Relative Strength Index (RSI)
    • Relative Strength Levy (RSL)
    • Relative Volatility Index (RVI)
    • R-Squared
    • Standard Error (StdError)
    • Stochastics
    • Stochastics Fast
    • Stochastics RSI (StochRSI)
    • Summation (SUM)
    • SuperTrend
    • SupportResistanceAreas
    • Swing
    • Time-Series-Forecast (TSF)
    • Constant Lines
    • CurrentDayOHL
    • Daily Performance
    • DailyQuoteMoves
    • DayLines
    • GetDayBar
    • Info
    • Maximum (MAX)
    • Minimum (MIN)
    • PriceLine
    • PriorDayOHLC
    • PriorDayOHLCext
    • SessionBreakLines
    • ShowBidAsk
    • TickCounter
    • True Strength Index (TSI)
    • Ultimate Oscillator
    • Volume (VOL)
    • Volume Moving Average (VOLMA)
    • Volume Profile
    • Volume Rate of Change (VROC)
    • VolumeUpDown
    • Williams %R
    • ZigZag
  • PREMIUM INDICATORS
    • COT AddOn
      • COTLargeTraderActivity
      • COTStockDummy
      • COTReportLegacy
      • COTReportDisaggregated
      • COTOpenInterestLegacy
      • COTOpenInterestDisaggregated
      • COTCommercialIndex
      • COTAggregatedIndexPositionDisaggregated
    • DowTheory AddOn
      • DayLinesAdv
      • InsideBarsMT
      • MarketPhases
      • MarketPhases Pro
      • MTFBoxes
      • OutsideBars
      • P123
      • P123Pro
      • ReversalBars
    • Darvas AddOn
      • Darvas Boxes
    • Relative Currency Strength (RCS)
    • Volume AddOn
      • KlingerVolumeOscillator
      • Volume Oscillator
      • VolumeArea
      • VolumeGraph
      • VolumeKeltnerChannels
      • VolumeRiseFall
      • VolumeSentimentLong
      • VolumeSentimentShort
      • VolumeSessionPro
      • VolumeTickSpeed
      • VolumeUDR
      • Volume Zones
      • VolumeZoneOscillator
      • WyckoffWave
Powered by GitBook
On this page
Edit on GitLab
  1. PREMIUM INDICATORS
  2. DowTheory AddOn

InsideBarsMT

The installation of the Technical Analysis Package is required in order to access this indicator.

Description

InsideBarsMT displays inside bars as defined by Michael Voigt in his book. The settings can be modified, and additional adjustments are also possible. Furthermore, there are several data series used in stop calculations for self-developed indicators and strategies.

Interpretation

Inside bars are bars whose body (open-close) are located within the high-low span of the previous bar. The previous bar is generally called an outside bar. Inside bars will sometimes reflect sideways phases, and will also display trend corrections of lower timeframes. When trading inside bars, the stop is placed at the high or low of the previous period. If the high or low of the previous candle is unsuitable, then the high or low of an older candle is used.

Usage

InsideBarsMT().isInsideBar[int barsAgo]
InsideBarsMT().isOutsideBar[int barsAgo]
InsideBarsMT().HighBeforeOutsideBar[int barsAgo]
InsideBarsMT().LowBeforeOutsideBar[int barsAgo]

Settings

  • InsideBarsMT().isInsideBar[int barsAgo]

Will return “true” if the referenced bar is an inside bar, otherwise “false”

  • InsideBarsMT().isOutsideBar[int barsAgo]

Will return “true” if the previous bar is an outside bar

  • InsideBarsMT().HighBeforeOutsideBar[int barsAgo]

Will output the high of the bar preceding the outside bar

  • InsideBarsMT().LowBeforeOutsideBar[int barsAgo]

Will return the low of the bar preceding the outside bar

Visualization

Tolerance parameter

In the image below you will see a longer “phase” where the market is within an inside bar. The bar marked with the arrow opens the low of the outside bar. If the open of the green candle had been a tick lower, then the marked bar would not be an inside bar and the red bar would clearly not be an outside bar. The tolerance parameter defines the number of ticks by which the inside bars may “breach” the high-low span of the outside bar and still be recognized as an inside bar.

Tolerance default setting = 0.

Example

double StopPrice;
protected override void OnCalculate()
{
// Open position when SMAs cross
if (CrossAbove(SMA(10),SMA(20),1) && Position.PositionType == PositionType.Flat)
OpenLong();
// If the current bar is an inside bar, modify the stop
if (InsideBarsMT().isInsideBar[0])
StopPrice = InsideBarsMT().LowBeforeOutsideBar[0];
else
// Use different stop method
}

Last updated 3 years ago

InsideBarsMT
InsideBarsMT