Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Candle body, nose etc. calculation its wrong (bug)
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=53459
Page 1 of 1

Author:  RomanXTX [ Thu 17 Dec, 2015, 10:36 ]
Post subject:  Candle body, nose etc. calculation its wrong (bug)

What's the result?
Calculation candle: body, nose, tail and etc.
Its ok only with currency JPY

Screens in the Annex
Image
Image

Attachments:
EUR-JPY.png [31.11 KiB]
Downloaded 540 times
EUR-USD.png [32.56 KiB]
Downloaded 525 times

Author:  amine_chourou [ Thu 17 Dec, 2015, 13:38 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong

Hi,

I do remember this strategy as I develop it while ago ..Could you please attach it to this thread so that I can check it ?

Thanks in advance

Author:  RomanXTX [ Thu 17 Dec, 2015, 23:14 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong

Any strategy for the calculation of candles
Example:

Attachments:
PinBar1.vfs [59.49 KiB]
Downloaded 248 times
eur_30_buy.vfs [63.41 KiB]
Downloaded 261 times

Author:  amine_chourou [ Fri 18 Dec, 2015, 12:26 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong

Hi,

I don't see what is wrong when testing the second example " eur_30_buy.vfs"
All variables looks okay:
Image

Beside that, I've noticed the following:
-Make sure you're considering the pip size of the default instrument if you make calculations with manual inputs to consider JPY pip size.
-Also, when working with the Ask side, be sure to change that as well in your "Get historical candle" blocks

Else, please describe in detail the problem that you're facing

Cheers

Attachments:
USDJPY.JPG [90.84 KiB]
Downloaded 433 times

Author:  RomanXTX [ Fri 18 Dec, 2015, 22:48 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong

Only that all the JPY pairs are ok, but the rest is wrong

CHF/JPY - ok
CAD/JPY - ok
EUR/JPY - ok
USD/JPY - ok


CHF/SGD - bad
CAD/CHF - bad
USD/CAD - bad
EUR/USD - bad
and other pair is wrong

ONLYL: subtraction it's wrong
Image
Image

Please report it as a bug in VF

Attachments:
2015-12-19_021818.png [22.45 KiB]
Downloaded 398 times
2015-12-19_021313.png [23.16 KiB]
Downloaded 469 times

Author:  Visual Support [ Tue 29 Dec, 2015, 15:33 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong (bug)

This problem repeats on Historical Tester or Realtime?

Author:  RomanXTX [ Wed 30 Dec, 2015, 11:00 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong (bug)

Realtime and Historical Tester
Image

Attachments:
2015-12-30_105956.png [26.18 KiB]
Downloaded 376 times

Author:  Visual Support [ Tue 05 Jan, 2016, 18:55 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong (bug)

I did check several times for EUR/USD and strategy eur_30_buy and I cant repeat your problem.
Body and Tail values calculated correctly, see screenshoot:

Image

Attachments:
Body&Tail.png [62.96 KiB]
Downloaded 430 times

Author:  RomanXTX [ Thu 07 Jan, 2016, 13:12 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong (bug)

What is that:
1.6E-4 ?? - why is not this 0.00016
1.8E-4 ??
Image

That's how I set this condition:
Image

Attachments:
2016-01-07_135013.png [16.27 KiB]
Downloaded 367 times
2016-01-07_130947.png [19.38 KiB]
Downloaded 378 times

Author:  amine_chourou [ Fri 08 Jan, 2016, 16:15 ]
Post subject:  Re: Candle body, nose etc. calculation its wrong (bug)

Hi

Generally speaking, in computer programming, such decimals might be displayed as such. 1.6E-4 is equivalent to 0.000016 so E4 is the number of 0.
More information in the below link
https://en.wikipedia.org/wiki/Scientific_notation

Cheers

  Page 1 of 1