Dukascopy
 
 
Wiki JStore Search Login

Calculation Expression: Average Highs and Lows from the Open Price
 Post subject: Calculation Expression: Average Highs and Lows from the Open Price Post rating: 0   Post Posted: Sun 08 Sep, 2013, 19:10 

User rating: 1
Joined: Mon 05 Aug, 2013, 22:37
Posts: 33
Location: SwitzerlandSwitzerland
Hi Dirk and all,
I was trying to calculate an average pip of previous 5 candles (average of the differences from Highs to Opens, and likewise for Opens to Lows). But I cannot pass through the Calculation Expression blocks. Did I do something wrong?

I also noticed that i cannot delete Calculation Expression from my current or previous strategies.

Please see my attached. (I tried many times dropping the file. It says Uploaded 100% but I can never see it here. I will try it again tomorrow).

Thanks,
km


Attachments:
AverageHighsLows.vfs [39.04 KiB]
Downloaded 203 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: Calculation Expression: Average Highs and Lows from the Open Price Post rating: 0   Post Posted: Mon 09 Sep, 2013, 16:05 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Quote:
I also noticed that i cannot delete Calculation Expression from my current or previous strategies.


At the end of the week there will be an update/release of a new version and after that it should be fixed.

Quote:
I was trying to calculate an average pip of previous 5 candles (average of the differences from Highs to Opens, and likewise for Opens to Lows). But I cannot pass through the Calculation Expression blocks. Did I do something wrong?

Please see file attached

(I did not tested it so far. Please let me know what it's still wrong)


Attachments:
AverageHighsLows.vfs [39.04 KiB]
Downloaded 179 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: Calculation Expression: Average Highs and Lows from the Open Price Post rating: 0   Post Posted: Mon 09 Sep, 2013, 18:36 

User rating: 1
Joined: Mon 05 Aug, 2013, 22:37
Posts: 33
Location: SwitzerlandSwitzerland
Thanks, Dirk.

The problem now is that it does not even pass the first block after the OnCandle. The Last Bid Candel.Candle Period is almost all the time 10 second while my default period is 5 min. Hence, the process does not flow beyond the first if-block. :roll:

km


Image


Attachments:
10 sec against 5 min.PNG [40.79 KiB]
Downloaded 448 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: Calculation Expression: Average Highs and Lows from the Open Price Post rating: 0   Post Posted: Tue 10 Sep, 2013, 08:13 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Ups! I am sorry! I just posted the same file you already posted...

Here you go:


Attachments:
Average.vfs [24.9 KiB]
Downloaded 211 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: Calculation Expression: Average Highs and Lows from the Open Price Post rating: 0   Post Posted: Tue 10 Sep, 2013, 21:43 

User rating: 1
Joined: Mon 05 Aug, 2013, 22:37
Posts: 33
Location: SwitzerlandSwitzerland
Thanks, Dirk. Yours is calculating average on every tick. I wanted to calculate an average only one time per candle. Got it though by putting another ifblock.
Love the use of multiple candles and loop viewer. A lot cleaner than mine.


 

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