Evaluates the Price Action Indicator (PAIN) of an asset for a given trading period as detailed within "Getting Better Directions" by Michael B.
Double value of the Price Action indicator for the period considered.
Geraty, Futures magazine, Aug 1997.
The PAIN indicator is evaluated by the following formula:
PAIN = ( (close - open) + (close - high) + (close - low) ) / 2
where:
(close - open) - gives the Intra-Day Momentum(close - low) - gives the Late Selling Pressure (LSP)(close - high) - gives the Late Buying Pressure (LBP)where close is the period's closing price, open is the
period's opening price, high is the highest traded price during the period
and low is the lowest traded price during the period considered.
Remark: The PAIN indicator is consistent with the interpretation of Japanese candlestick patterns.
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if the high, low, open, close are strictly negative. |
Filters Class | WebCab.COM.Finance.Trading.Indicators Namespace | PriceActionOverPeriod - evaluates the Average price for a number of periods.