How to calculate the Close and Open price of candle?
![]() |
|
||||
|
isnt the difference between bid and ask alwasy 2 pips? for example the Ask = Bid+2 and Bid = Ask-2 I think thats what I understood last time I checked...
__________________
____________________________\¦/ ___________________________(ò ó) ______________________o0o___(_)___o0o__ ___¦_____¦_____¦_____¦_____¦_____¦_____¦ ¦_____¦_____¦_____¦_____¦_____¦_____¦__ ___¦_____¦_____¦_____¦_____¦_____¦_____¦ ¦_____¦_____¦_____¦_____¦_____¦_____¦__ |
|
||||
|
Quote:
__________________
____________________________\¦/ ___________________________(ò ó) ______________________o0o___(_)___o0o__ ___¦_____¦_____¦_____¦_____¦_____¦_____¦ ¦_____¦_____¦_____¦_____¦_____¦_____¦__ ___¦_____¦_____¦_____¦_____¦_____¦_____¦ ¦_____¦_____¦_____¦_____¦_____¦_____¦__ |
|
||||
|
You don't understand what I said. Let's take a close-up look on how MetaTrader display the Close price of the last candle in EURUSD chart.
I thought MetaTrader display the latest Close price = (latest Bid + latest Ask) / 2. Example 1: Bid = 1.2000, Ask = 1.2002, then Close = 1.2001. But what if the spread is 3 pips. Example 2: Bid = 1.2000, Ask =1.2003, then Close = 1.20015. Have you seen MetaTrader displayed 1.20015 (it contains undisplayable 0.5 pip) in EURUSD chart? never. It's because MetaTrader rounds up the price to a displayable price. I figured it out last two days that MetaTrader uses the Normalize() function to round up the undealable or undisplayable price. That for sure means Close = Normalize((Bid + Ask) / 2). What I wanted to do here is to reverse Close price back to Bid. This means I have to reverse the price rounding (denomalize). Unfortunately reverse the priceing rounding is only 50% accurate which is unacceptable. |
|
||||
|
I get what you mean, sorry I couldn't help
__________________
____________________________\¦/ ___________________________(ò ó) ______________________o0o___(_)___o0o__ ___¦_____¦_____¦_____¦_____¦_____¦_____¦ ¦_____¦_____¦_____¦_____¦_____¦_____¦__ ___¦_____¦_____¦_____¦_____¦_____¦_____¦ ¦_____¦_____¦_____¦_____¦_____¦_____¦__ |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Closing trades at end of candle | TraderSeven | MetaTrader and ZeroCode | 2 | 09-22-2005 02:53 PM |
All times are GMT. The time now is 02:22 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now












Linear Mode


