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

History Candles, candle high seems out of bound
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=51508
Page 1 of 1

Author:  magnitude [ Fri 18 Jul, 2014, 04:21 ]
Post subject:  History Candles, candle high seems out of bound

Hello Support,

Here is a small strategy, adding up 2 candle high, fetching candles with "history Candles", in variable "High Total" the first minutes or so the sum is correct, after a few minutes it gets out of bound, I ran the same strategy but with "history candle" and the sum is correct throughout minute time. Please let me know if the mistake is mine or there is a problem with History Candles.

Kind Regards.

Attachments:
HighCandlesOutOfBoundWithHistoryCandles.vfs [38.26 KiB]
Downloaded 154 times

Author:  amine_chourou [ Fri 18 Jul, 2014, 17:55 ]
Post subject:  Re: History Candles, candle high seems out of bound

Hi There,

From your strategy, the calculation block sum up the candle high 2 times and once the third sum is done, it goes through the substraction blcok.
In other words, out of the loop-viewer the following cycle is performed:
First loop:
- candle High + Candle High = Sum
Ex 1.35185+1.35185=2.7037
- The counter goes from 1 to 2
Another sum:
2.7037+1.35185=4.0555
- The counter goes from 2 to 3 :
A subtraction is made to get back to 2.7037 result
... and son on with regards to the candle high value updates.

Can you explain the reasons behind such use? the more details you input the best for us to advice you

Thanks

Author:  magnitude [ Fri 18 Jul, 2014, 18:59 ]
Post subject:  Re: History Candles, candle high seems out of bound

Hello Amine,

Thank you very much for your prompt reply, very much appreciated, indeed I just figured out that "history candles" returns candles in blocks of specified amount of defined candles which voids the candle counter as is. For this purpose only one instance of "history Candles" is necessary and subsequently "history candle" can take over the operation.

The idea behind the calculation is mainly finding trending periods, subsequently swings and channels using candle lows, candles highs and a bit of math. I haven't drawn a road map of the strategy as I will test every bit along the way.

Thanks very much again for your help, I'll post again to share the progress and or if I get hit by another snag of mine.

Best Regards.

Author:  amine_chourou [ Mon 21 Jul, 2014, 11:45 ]
Post subject:  Re: History Candles, candle high seems out of bound

You're welcome,
Don't hesitate to reach out if any help needed.

Author:  magnitude [ Tue 18 Nov, 2014, 15:29 ]
Post subject:  Re: History Candles, candle high seems out of bound

Salut Hello Amine and Company.

I've put this strat. in the contest, but, not working in parallèle with me account, I'm baffled. Sure could use some input of your part, if not abusing your time.

Thanks 1000X
Best Regards.

Attachments:
hashi5candles.vfs [90.16 KiB]
Downloaded 155 times

Author:  amine_chourou [ Tue 18 Nov, 2014, 17:40 ]
Post subject:  Re: History Candles, candle high seems out of bound

Hi there,

I recommended you to raise a new post under trader contest with this request or to send an email to [email protected]

Thanks !!

Author:  magnitude [ Tue 18 Nov, 2014, 21:12 ]
Post subject:  Re: History Candles, candle high seems out of bound

Thank You, will do so.

Best Regards.

  Page 1 of 1