Dukascopy
 
 
Wiki JStore Search Login

Midprice based bars
 Post subject: Midprice based bars Post rating: 0   New post Posted: Fri 23 Dec, 2016, 06:41 
User avatar

User rating: 2
Joined: Fri 27 Jul, 2012, 07:04
Posts: 82
Location: Spain, Paracuellos de Jarama
Hello,

I'd like to ask for a midprice bar chart mode added to the already existing BID and ASK modes. So the OHLC values in each bar were calculated using midprice.

midprice=(ASK+BID)*0.5

This is more important for daytraders and scalper that longer term traders.

I enclose a very basic chart built with midprice values showing the High Ask and Bid prices and the Low Ask and Bid prices in just a glance.

Image


 
 Post subject: Re: Midprice based bars Post rating: 0   New post Posted: Fri 06 Jan, 2017, 20:45 
User avatar

User rating: 2
Joined: Fri 27 Jul, 2012, 07:04
Posts: 82
Location: Spain, Paracuellos de Jarama
Hello, please can somebody from Dukascopy answer...

I'll post a recent example showing the importance of paying attention to both sides of the market (bid and ask), and the way to do it easily is watching midprice bars and ask/bid overlay on them:

Image


 
 Post subject: Re: Midprice based bars Post rating: 0   New post Posted: Wed 18 Jan, 2017, 15:35 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
We will create an indicator for this.

Task: JFOREX-8204


 
 Post subject: Re: Midprice based bars Post rating: 0   New post Posted: Wed 18 Jan, 2017, 16:16 
User avatar

User rating: 2
Joined: Fri 27 Jul, 2012, 07:04
Posts: 82
Location: Spain, Paracuellos de Jarama
Hello and thanks for your answer:

I don't think an indicator can be the right way to draw midprice bars.

I'll explain: If I'm not wrong, an indicator has access to high/low/open/close from ask and bid historical bars and it will calculate for each bar:

midprice bar high= 0.5*(high Ask + high Bid)

But this can be wrong:

Due to the variable spread, the tick with the highest Ask in a bar can be different to the tick with the highest Bid price in the same bar.

Example:
Notation: (Ask/Bid)

Tick with the highest Ask price in the example bar: (1.45000/1.44800) ----> 20 pips Spread due to news or another reason
Midprice of this tick: 0.5*(1.45000+1.4480)=1.44900

Tick with the highest Bid price in the example bar: (1.44920/1.44910) ----> 1 pip Spread.
Midprice of this tick: 0.5*(1.44920+1.44910)=1.44915 (This is the High of the midprice bar)

High of the Ask bar: 1.45000
High of the Bid bar: 1.44910


Indicator result: 0.5*(1.45000+1.44910)=1.44955 (wrong)

So I think another chart mode has to be calculated from the tick data to chart the midprice bars so there will be Ask, Bid and Midprice.

Best regards.

Francisco


 
 Post subject: Re: Midprice based bars Post rating: 0   New post Posted: Thu 19 Jan, 2017, 09:54 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Will do based on ticks.


 
 Post subject: Re: Midprice based bars Post rating: 0   New post Posted: Thu 19 Jan, 2017, 10:04 
User avatar

User rating: 2
Joined: Fri 27 Jul, 2012, 07:04
Posts: 82
Location: Spain, Paracuellos de Jarama
Many thanks

Francisco


 
 Post subject: Re: Midprice based bars Post rating: 0   New post Posted: Fri 27 Jan, 2017, 09:16 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Indicator MIDDLE_PRICES will be available in version 3.0.18 on DEMO very soon.


 
 Post subject: Re: Midprice based bars Post rating: 0   New post Posted: Sun 29 Jan, 2017, 00:09 
User avatar

User rating: 2
Joined: Fri 27 Jul, 2012, 07:04
Posts: 82
Location: Spain, Paracuellos de Jarama
Thanks


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com