Dukascopy
 
 
Wiki JStore Search Login

Calculation Expression Issue/bug
 Post subject: Calculation Expression Issue/bug Post rating: 0   New post Posted: Mon 05 May, 2014, 02:30 

User rating: 0
Joined: Mon 17 Jun, 2013, 23:30
Posts: 48
Location: Australia, Melbourne
Hi good people of this forum,

I apreciate your help and I made significant progress with your assistance.

I want to control how long the order is valid by creating a variable TR_minutes, which in the Pending_Order block will limit how long the order is valid. I found that I had orders staying on, at prices outside the _last_ask_candle_price and they were executed the following day :).

Unfortunately, the TR_minutes calculation does not work as expected. I attach a .png which clearly shows that the TR_minutes is in the past relative to the strategy running time. On other occassions it does not get updated at all.

I attahced the strategy and the screenshot of the running strategy with TR in the middle.

Kind Regards
Image


Attachments:
TR_in_the_past.png [161.92 KiB]
Downloaded 182 times
Long_and_Short_v17_Strict013_1TR.vfs [81.18 KiB]
Downloaded 76 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 Issue/bug Post rating: 0   New post Posted: Thu 15 May, 2014, 03:15 

User rating: 0
Joined: Mon 17 Jun, 2013, 23:30
Posts: 48
Location: Australia, Melbourne
Hi,

I gave up on TR calculation, it will be though useful to find out how to use GoodTillTime. I found a candle counter posted in this forum that does the job.

However I have another real problem:
The Long is only supposed to take place if the candles are above all the 3 lines in the picture (from bottom up - EMA34, DEMA21, T3). However the entry takes place after 3 previous candles being below.
It could be that there is something wrong in my construct or is it a real bug?

Kind Regards

Image


Attachments:
Incorrect Entry.png [43.52 KiB]
Downloaded 155 times
Long_and_Short_v20_Open.vfs [104.55 KiB]
Downloaded 77 times
Screenshot from 2014-04-30 20:58:00.png [188 KiB]
Downloaded 116 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.
 

Jump to:  

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