Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
BBands | Shift http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=50284 |
Page 1 of 1 |
Author: | sakud [ Sun 27 Oct, 2013, 20:25 ] |
Post subject: | BBands | Shift |
Although shifting by 1 candle back seems to work fine, setting longer distance gives wrong values. I'm not sure, but I've noticed that probably it gives values of candle twice older. Tried for instance 4 and got values of 8 candles back. Anyone can confirm? Attached strategy : Attachment: It's not the strategy however, I just recreated this issue with two bbands indicator blocks only. If you put them into any strategy the output is the same wrong. Pictures showing the issue : bbands1 showing values of 1 candle back, bbands4 - 4 candles, and bbands8 - 8 candles Attachment: Attachment: Attachment:
|
Author: | dirk_r1 [ Mon 28 Oct, 2013, 10:01 ] |
Post subject: | Re: BBands | Shift |
Could you please attach the strategy for further investigation? Thx in advance! |
Author: | sakud [ Mon 28 Oct, 2013, 17:03 ] |
Post subject: | Re: BBands | Shift |
Added to my 1st post. |
Author: | dirk_r1 [ Wed 30 Oct, 2013, 18:00 ] | ||
Post subject: | Re: BBands | Shift | ||
Ok thank you. Could you please check with the strategy attached? These filters I add were essential in order to minimize errors. Please note that when testing with debug variables it may occur that the flash-player (the workspace from VJF) is slower than JAVA (source code) hence it follows that the variables can vary from each other. Bye
|
Author: | sakud [ Thu 31 Oct, 2013, 08:15 ] |
Post subject: | Re: BBands | Shift |
I don't get it. Why should you add extra 'if' blocks, while these filters are already built into 'bbands' block? (you must specify period and instrument there anyway) Is it a beta isuue or it will remain like this? |
Author: | dirk_r1 [ Thu 31 Oct, 2013, 09:41 ] |
Post subject: | Re: BBands | Shift |
It is because you wanted to set up the strategy like this: Quote: Although shifting by 1 candle back seems to work fine, setting longer distance gives wrong values. To add filters means in that case that you will minimize errors - both will work. But as you might know you have to be precise in coding something. If a user just want to filter or check different values - he can. There are many functions working without the filters - but we do not recommend them. Cheers |
Author: | sakud [ Sat 02 Nov, 2013, 14:18 ] |
Post subject: | Re: BBands | Shift |
Adding filters didn't help. |
Page 1 of 1 |