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

P123Pro

Last updated 3 years ago

The parameter TrendSize can be found under the parameter settings (see figure). It is only intended to be used within the Condition Escort. This parameter is not relevant for display in the chart. The display is only controlled by the following settings: "Display 123" and "Display Lines".

parameter settings

You can see in the respectful description fields for each parameter to which extend the particular parameters may influence the chart or Condition Escort as well as AgenaScript.

Usage in the AgenaScript

For the AgenaScript purposes several data series of the same type are doubled. For each of these data series the common notation with ...[barsAgo] can be used.

TrendDirection

1 = Uptrend -1 = Downtrend 0 = no trend defined according to the market technique

IsP21

If a bar represents an old point 2 and at the same time a new point 1, it will be labelled in the chart as "(2) 1". The value of this bar (and all subsequent bars up to the next point 2) will be 1, and 0 otherwise.

IsTrendValid

1 = defines a confirmed trend, i.e. at least a point sequence 1 - 2 - 3 - 2. 0 = there is no confirmed trend yet. (Phase 1 and 2 according to market technique)

LastPoint

Provides the latest point of the trend, i.e. 1, 2, or 3

LastPointPrice

Provides the corresponding market value of the latest point according to the market technique

LastPointDateTime

Provides the corresponding date and time related to the latest point according to the market technique

LastPointExtInfo

Provides the corresponding label of the latest point according to the market technique. The labelling should be additionally defined in Parameter tab. The slope is a chart-only feature therefore it is neither in Conditions, nor in the AgenaScript available.

P1Price

Provides the market value of the latest point 1

P1DateTime

Provides the date and time of the latest point 2

PriorP2Price

efert die Datums- und Zeitangabe des vorletzten Punkt 2

TempP3Price

Provides the date and time of the second last point 2

TempP3DateTime

Provides the date and time of the last preliminary point 3

ValidP3Price

Provides the market value of the last valid point 3. This market value defines the stop movement according to the market techniques. When this point is crossed, there is a trend break from the market technique perspective.

ValidP3DateTime

Provides the date and time of the last valid point 3

Parameters

trendsize

Trend size of 0 .. 3

breakageP2

Shows an arrow in the chart, when a break of P2 occurs or has been already completed. The figure is expressed as a percentage between -100 and +100. -20 alerts e.g. 20% before the P2 will be reached

extInfo

Selection of a labelling

p2Distance

Uncertainty: this is a factor (between 0 and 1) that defines, how far has to be the P2 from the "old" valid P2 in order to be treated as valid. The previous movement is decisive in this case.

p3Distance

Uncertainty: this is a factor (between 0 and 1) that defines, how far has to be the P3 from the "old" valid P2 in order to be treated as valid. The previous movement is decisive in this case..

p3BreakageDistance

Uncertainty: this is a factor (between 0 and 1) that defines when a trend brake is valid. The previous movement is decisive in this case. So, for instance, the breakout of the latest P3 (with one tick only) will not be considered as the breakout anymore.

Examples

private void PrintOutTrendProperties(int trendSize)
private void PrintOutTrendProperties(int trendSize)
{
    // revers order of prints fills output window in correct order
    Print("");
    Print("IsP21: " +  P123Pro(trendSize).IsP21[0]);
    Print("valid P3 date: " +  P123Pro(trendSize).ValidP3DateTime[0]);
    Print("valid P3 price: " +  P123Pro(trendSize).ValidP3Price[0]);
    Print("temp P3 date: " +  P123Pro(trendSize).TempP3DateTime[0]);
    Print("temp P3 price: " +  P123Pro(trendSize).TempP3Price[0]);
    Print("P2 date: " +  P123Pro(trendSize).P2DateTime[0]);
    Print("P2 price: " +  P123Pro(trendSize).P2Price[0]);
    Print("P1 date: " +  P123Pro(trendSize).P1DateTime[0]);
    Print("P1 price: " +  P123Pro(trendSize).P1Price[0]);
    Print("last point date: " +  P123Pro(trendSize).LastPointDateTime[0]);
    Print("last point price: " +  P123Pro(trendSize).LastPointPrice[0]);
    Print("last point: " +  P123Pro(trendSize).LastPoint[0]);
    Print("Is trend valid: " +  P123Pro(trendSize).IsTrendValid[0]);
    Print("Trend direction: " +  P123Pro(trendSize).TrendDirection[0]);
    Print("P2Breakout: " +  P123Pro(trendSize).P2Breakout[0]);
    Print("Extended Information: " +  P123Pro(trendSize).LastPointExtInfo[0]);
}

Usage in the Condition Escort

All data series (excluding the DateTime series) are available in the Condition Escort under the "Series & Output Values".

Logical variables (true and false) are replaced by the numbers 1 and 0. The "TrendSize" parameter is available in the Condition Escort as well. The description you will find below.

Examples

Inquiry whether the currently active in the chart middle trend is a downtrend: P123Pro(Close, 1).TrendDirection[0] - Inh. TimeFrame == 1

Inquiry whether the latest point of the currently active in the chart smallest trend is a Point2: P123Pro(Close, 3).LastPoint[0] - Inh. TimeFrame == 2

Inquiry whether the latest bar under the valid point 3 (not the 3?) of the small trend has been closed: P123Pro(Close, 2).isTrendValid[0] - Inh. TimeFrame == 1 UND (also neue Zeile) Close[0] - Inh. TimeFrame < P123Pro(Close, 2).ValidP3Price[0] - Inh. TimeFrame