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

Calculation Expression Issue/bug
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=51180
Page 1 of 1

Author:  vtechdir [ Mon 05 May, 2014, 02:30 ]
Post subject:  Calculation Expression Issue/bug

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 276 times
Long_and_Short_v17_Strict013_1TR.vfs [81.18 KiB]
Downloaded 105 times

Author:  vtechdir [ Thu 15 May, 2014, 03:15 ]
Post subject:  Re: Calculation Expression Issue/bug

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 247 times
Long_and_Short_v20_Open.vfs [104.55 KiB]
Downloaded 110 times
Screenshot from 2014-04-30 20:58:00.png [188 KiB]
Downloaded 151 times

  Page 1 of 1