Dukascopy
 
 
Wiki JStore Search Login

On Candle variable
 Post subject: On Candle variable Post rating: 0   New post Posted: Wed 28 May, 2014, 08:12 
User avatar

User rating: 0
Joined: Tue 20 May, 2014, 13:09
Posts: 15
Location: Malaysia, Kuala Lumpur
Hi A,

Can I know if the on_candle variable's "last bid candle high" is equivalent to the previous(1) candle's high?

Besides, referring to the attached strategy, can I know how to change the close position condition to as below:
If last tick ask > previous one candle's low (at the minute of 7)

I've tried to modified in-accordance to the above but it turned out to be an error file.
Can you please help?

Thanks and regards,
chia


Attachments:
M7_1.jfx [21.24 KiB]
Downloaded 127 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: On Candle variable Post rating: 0   New post Posted: Wed 28 May, 2014, 17:27 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Last candle data are indeed different from the previous candle data (Using shift value =1) but there is a detail that could answer your question:
Close price of a given candle could not be know at the level of this candle it self but only following the next tick price that will constitute the open price of the next candle, the reason is because it is simply impossible to know the close price of given candle while it is currently still under construction --> Once the candle period is expired i.e - starting from the next millisecond that follows- the system store the previous tick price as the closing price. This is also applicable on the low price of a given candle as till the very last moment, a tick received within the period range could be lower then the previous recorded low price and therefore it will be the new low price of this candle.

If you need to close your position at exactly the 7th minute (meaning open price of the 7th mn candle) then you need to change your closing condition and consider the low price of candle 6 instead.

PS: You've attached a jfx file instead of vfs

Thanks


 

Jump to:  

  © 1998-2025 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