Back

Forex Technical indicators

Historical forex market data have the following columns or prices:

askopen, askclose, askhigh,asklow, bidopen ,bidclose,bidlow, bidhigh.my question is which of these fields/prices are normally used to calculate the technical indicators such as Bollinger Bands,Moving Averages, RSI, Oscillator etc.i made many findings but getting conflicting information about which of the prices to use.I reaaly need a help on this matter.Thanks in advance.
Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


There's technically no such thing as "prices" in financial markets - order books run on bids (prices buyers are willing to pay) and asks (prices sellers are willing to sell at). It is common however to use the mid-point between these two prices as a measure of equilibrium "price", and is a safe assumption if you're not doing any high frequency stuff where spreads are a big concern. There should also be a 'close' column in the data, which is also calculated with the mid-point in LEAN.

Open, High, Low, Close refers to a way of aggregating/representing prices over a period of time. For instance, the OHLC of a 1-minute bar at 12:00 PM refers to the Open (starting price at 11:59 AM), High (highest price in between 11:59 AM - 12:00 PM), Low, and Close (ending price at 12:00 PM).

Short version: Prices typically refer to closing prices, in which case you'd use close := ( askclose + bidclose) / 2. But you should experiment with using different ones for the indicators.

1

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed