Skip to main content

MIDPRICE

Type: midprice • Category: indicators

Description

Calculates average price based on high and low prices

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringprices datano
highstringselect the column with highest pricesno
lowstringselect the column with lowest pricesno
timeperiodnumberNumber of periods to use for MIDPRICE calculationno14

Help

MIDPRICE

Description

The MIDPRICE worker is an indicator used in financial analysis to calculate the average price of a security based on its high and low prices over a specified period.

What does this worker do?

The MIDPRICE worker calculates the midpoint price of a security, which is the average of the high and low prices over a specified period. This indicator helps to smooth out price fluctuations and provide a clearer picture of the security's price movement.

How to interpret the results

The MIDPRICE indicator can be used to:

  • Identify trends: A rising MIDPRICE indicates an uptrend, while a falling MIDPRICE indicates a downtrend.
  • Determine support and resistance levels: The MIDPRICE can be used to identify areas of support and resistance, where the price may bounce back or break through.

How to use the MIDPRICE worker

The MIDPRICE worker requires the following parameters:

  • dataExp: The prices data.
  • high: The column with the highest prices.
  • low: The column with the lowest prices.
  • timeperiod: The number of periods to use for the MIDPRICE calculation.

Example usage

To use the MIDPRICE worker, simply provide the required parameters:

MIDPRICE(dataExp, high='High', low='Low', timeperiod=14)

Additional Information

The MIDPRICE indicator was developed by Technical Analysis Association. It is commonly used in technical analysis to gauge the momentum of a security's price.

Visualizing the MIDPRICE worker

For a visual representation of how to use the MIDPRICE worker, see the following GIFs:

Full GIF

[![Full GIF](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)

Short GIF

[![Short GIF](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)

Interpretation and Tips

  • A longer time period will result in a slower-moving MIDPRICE, while a shorter time period will result in a faster-moving MIDPRICE.
  • The MIDPRICE can be used in conjunction with other indicators to confirm trading signals.