|Visual Basic (Declaration)|
Public Overloads Shared Function PriceActionIndicator( _ ByVal sc As SeriesCollection _ ) As SeriesCollection
|Visual Basic (Usage)||Copy Code|
- A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
|ArgumentException||Thrown if the |
The PAIN indicator is evaluated by the following formula:
PAIN = ((Close-Open)+(Close-High)+(Close-Low))/2
- (Close-Open) defines Intra-Day Momentum
- (Close-Low) defines Late Selling Pressure (LSP)
- (Close-High) defines Late Buying Pressure (LBP)
Closeis the period closing price,
Openis the period opening price,
Highis the highest traded price during the period and
Lowis the lowest traded price during the period.
When the close is near the low, the assets's price is under selling pressure. If the close is near the high the asset's price is price is under buying pressure