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

Pending orders works in historical tester but not in real acount jforex
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=50263
Page 1 of 1

Author:  Gonzalez [ Thu 24 Oct, 2013, 12:09 ]
Post subject:  Pending orders works in historical tester but not in real acount jforex

vadim_berezhnoj wrote:
Request:
viewtopic.php?f=139&t=49905&start=20

Reply:
download/file.php?mode=view&id=4847


Hi Vadim;

I have tested in visual and works ok. But when I put the strategy in real or demo live chart Jforex. Has some problems it place each minute severals pending orders (same price same tp and sl). I remember the weminar and I think the problem will be fixed changing something about if block position amount, I did not fixed already...even I try but didnt work fine as I want (probably because I dont undestand the switch block (its for change hour time to minute time I guess?), any help for change that please.

Also if I stop the strategy and after the time period (in the weminar 6am gmt) at 7 or 9 am gmt I run the strategy again does not work untill the next day (even that we put to run the strategy form 6am to 22pm gmt (close and cancel). How can just place 1 pending order (until the order get cancel).

I changed the time (hour 16:00gmt) for practice in live chart time as you can see at the pictures and do the same placing several pending orders in real and demo live (But when I use historical tester works fine).

Thanks a lot

Image
Image

Attachments:
am6_10pm.vfs [48.25 KiB]
Downloaded 223 times
strategy_multiple_pending_orders_error.png [214.71 KiB]
Downloaded 519 times
chart.png [175.73 KiB]
Downloaded 534 times

Author:  vadim_berezhnoj [ Fri 25 Oct, 2013, 09:47 ]
Post subject:  Re: Pending orders works in historical tester but not in real acount jforex

Tested on Demo acc and JForex tester. No sign of the bug.
Can you give your Java file of the strategy?

Author:  Gonzalez [ Fri 25 Oct, 2013, 11:43 ]
Post subject:  Re: Pending orders works in historical tester but not in real acount jforex

Hi Vadim;

The file is the weminar file. I just change the hour to 16:00 because I lunch it at 15:55h so could work at 16:00 in live time real acount. So if you are going to test it right now you have to change time to 11:00gmt in order to probe it, other ways is no going to work at all.
Image

Attachments:
test_it_before_11am_gmt.png [60.53 KiB]
Downloaded 463 times
am11GMT_10pm_change_time.vfs [48.38 KiB]
Downloaded 244 times

Author:  Gonzalez [ Fri 25 Oct, 2013, 11:53 ]
Post subject:  Re: Pending orders works in historical tester but not in real acount jforex

the files .java and .jfx

Remember to try it on real live time no test (because works ok in historical tester but not in real when make a lot of pending new orders each minute or 2 minute....


thanks, I expect that is not a bug so I can probe it in my real acount jforex when is repair it.

Attachments:
am11GMT_10pm_change_time.java [18.99 KiB]
Downloaded 182 times
am11GMT_10pm_change_time.jfx [25.32 KiB]
Downloaded 147 times

Author:  Gonzalez [ Fri 25 Oct, 2013, 12:10 ]
Post subject:  Re: Pending orders works in historical tester but not in real acount jforex

I probe it and this is the result error PENDING OPEN BLOCK (26)??? java.lang.NoClassDefFoundError: Could not initialize class com.dukascopy.api.impl.connect.PlatformOrderImpl @ com.dukascopy.visualforex.Gonzalez.am11GMT_10pm_change_time.PendingOpen_block_26(am11GMT_10pm_change_time.java:369)


Image

Attachments:
error.png [38.58 KiB]
Downloaded 521 times

Author:  Gonzalez [ Fri 25 Oct, 2013, 12:49 ]
Post subject:  Re: Pending orders works in historical tester but not in real acount jforex

I just close the platform jforex and reset again....

I just lunch the estrategy again and the pending orders go on and on in live market as you can see in the picture. In tester works ok.
Image

cuple minutes later 33 orders,...and go on right now. Please fix it.
Image

Attachments:
two_minutes_later.png [172.2 KiB]
Downloaded 523 times
live.png [133.53 KiB]
Downloaded 548 times

Author:  Gonzalez [ Fri 25 Oct, 2013, 12:58 ]
Post subject:  Re: Pending orders works in historical tester but not in real acount jforex

I send you the mesage. Also if you need more info please tell me, thanks

Image

Attachments:
mesage.png [195.78 KiB]
Downloaded 511 times

Author:  Gonzalez [ Tue 12 Nov, 2013, 13:27 ]
Post subject:  Re: Pending orders works in historical tester but not in real acount jforex

Got the solution to ad at the beguin:

IF BLOCK
DEFAULT INSTRUMENT
LAST BID CANDEL CANDLE INSTRUMENT

  Page 1 of 1