Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 973 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 9 of 14 1 2 7 8 9 10 11 13 14
Re: Dukascopy plugin (yet another version) [Re: ags] #476163
01/31/19 07:39
01/31/19 07:39
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Hi ags,

There is no detailed reason why the first order was rejected, so we can only guess what happened.

But if the second attempt was successful, as you said, probably the problem is not the stop loss.

All brokerXxx() methods print their arguments as they were received from Zorro, i.e. the plugin was called with stop=1678.76 and in the manual it is described as this:

Code:
stop  Optional input, 'safety net' stop loss distance to the opening price, or 0 for no stop.



So in case of buy order (amount > 0), it should be subtracted from the order's opening price.

Re: Dukascopy plugin (yet another version) [Re: kvm] #476304
02/15/19 18:18
02/15/19 18:18
Joined: Oct 2018
Posts: 90
Germanien
ags Offline
Junior Member
ags  Offline
Junior Member

Joined: Oct 2018
Posts: 90
Germanien
Hi kvm,

have two instances working live since 25.1 and 28.1. No problem at all besides the mentioned situation before that is surely not related to the plugin.

But i do experience some issues wen using the Download script to get historical data from the broker.

It works mostly fine, sometimes you get some errors and it downloads the data anyway...

Here the log file.
In the case you find something or need any other detailed information just let me know.

Attached Files
vDukascopy-log.txt (223 downloads)
Re: Dukascopy plugin (yet another version) [Re: ags] #476368
02/21/19 10:21
02/21/19 10:21
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
New Dukascopy plugin v1.3 is available:

- Updated Dukascopy JForex API to latest v3.4.13
- Updated demo and live urls in config file
- Fixed history download issues
- Tested with Zorro v1.96.4

Re: Dukascopy plugin (yet another version) [Re: kvm] #476404
02/22/19 18:26
02/22/19 18:26
Joined: Oct 2018
Posts: 90
Germanien
ags Offline
Junior Member
ags  Offline
Junior Member

Joined: Oct 2018
Posts: 90
Germanien
Nice job kvm, it works very good.

Tested the Download and it works perfectly, no issues.
One test instance also changed to v1.3 and working.
Will replace also in the live instances next week.

Thank you.

Re: Dukascopy plugin (yet another version) [Re: ags] #476477
03/04/19 09:44
03/04/19 09:44
Joined: Oct 2018
Posts: 90
Germanien
ags Offline
Junior Member
ags  Offline
Junior Member

Joined: Oct 2018
Posts: 90
Germanien
Hi kvm,

i'm just testing in DEMO mode v1.3 and often get similar timout errors at script trailing changes.
The timeout message is always: "REASON: can't change stop loss price more than 1 times per second"

how can i prevent this? It's not from the script, and it is not comming with v1.2 which is still very stable at trading mode, any idea?

Below the related log text.


2019-03-04 09:41:36.993 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1330.34 to 1330.26; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:41:37.000 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:41:37.001 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1330.26, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:41:57.965 INFO [Strategy] c.m.v.d.DukascopyPlugin - Watchdog: VER: 1.3D2019-02-21T09:58:23ZJFX3.4.13 | UP(2019-02-25T07:16:29Z): 10165m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 56M
2019-03-04 09:41:57.971 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onAccount: [id=***97, currency=USD, leverage=100, equity=52067.94, balance=51575.29, tradeVal=492.65, marginVal=5683.88]
2019-03-04 09:42:12.724 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1330.19
2019-03-04 09:42:12.752 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1330.26 to 1330.19; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:12.758 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:12.758 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1330.19, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:13.047 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.91
2019-03-04 09:42:13.048 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_REJECTED; Text: Order REJECTED: STOP LOSS BUY XAU/USD @MKT IF ASK => 1329.91 - Position #167814409, REASON: can't change stop loss price more than 1 times per second; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:23.049 ERROR [main ] c.m.vega.common.PluginBridge - VER: 1.0D2019-02-21T09:58:23Z | UP(2019-02-25T07:16:29Z): 10165m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 53M
java.util.concurrent.TimeoutException: Timeout exceeded (sec): 10
at com.metakod.vega.common.PluginBase.waitTo(PluginBase.java:332)
at com.metakod.vega.dukascopy.DukascopyPlugin.brokerStop(DukascopyPlugin.java:373)
at com.metakod.vega.common.PluginBridge.brokerStop(PluginBridge.java:524)
2019-03-04 09:42:23.623 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.78
2019-03-04 09:42:23.643 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1330.19 to 1329.78; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:23.648 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:23.652 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.78, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:24.196 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.75
2019-03-04 09:42:24.197 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_REJECTED; Text: Order REJECTED: STOP LOSS BUY XAU/USD @MKT IF ASK => 1329.75 - Position #167814409, REASON: can't change stop loss price more than 1 times per second; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:34.198 ERROR [main ] c.m.vega.common.PluginBridge - VER: 1.0D2019-02-21T09:58:23Z | UP(2019-02-25T07:16:29Z): 10166m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 63M
java.util.concurrent.TimeoutException: Timeout exceeded (sec): 10
at com.metakod.vega.common.PluginBase.waitTo(PluginBase.java:332)
at com.metakod.vega.dukascopy.DukascopyPlugin.brokerStop(DukascopyPlugin.java:373)
at com.metakod.vega.common.PluginBridge.brokerStop(PluginBridge.java:524)
2019-03-04 09:42:34.770 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.64
2019-03-04 09:42:34.786 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1329.78 to 1329.64; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:34.787 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:34.787 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.64, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:34.788 INFO [Strategy] c.m.v.d.DukascopyPlugin - Watchdog: VER: 1.3D2019-02-21T09:58:23ZJFX3.4.13 | UP(2019-02-25T07:16:29Z): 10166m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 63M
2019-03-04 09:42:34.793 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onAccount: [id=***97, currency=USD, leverage=100, equity=52137.60, balance=51575.29, tradeVal=562.31, marginVal=5683.15]
2019-03-04 09:42:37.725 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.62
2019-03-04 09:42:37.746 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1329.64 to 1329.62; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:37.752 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:37.752 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.62, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:46.412 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167766368, stop=1.1515
2019-03-04 09:42:46.433 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167766368 STOP LOSS #644702445 price changed from 1.1517 to 1.1515; Related Order: [DukascopyPlugin1551283200477]-FILLED / EUR/USD / 1.13855 / 0.033 / 0.033
2019-03-04 09:42:46.439 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551283200477]-FILLED / EUR/USD / 1.13855 / 0.033 / 0.033
2019-03-04 09:42:46.439 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167766368, stop=1.1515, order=[DukascopyPlugin1551283200477]-FILLED / EUR/USD / 1.13855 / 0.033 / 0.033
2019-03-04 09:42:51.959 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.59
2019-03-04 09:42:51.978 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1329.62 to 1329.59; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:51.985 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:51.986 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.59, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:53.612 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.47
2019-03-04 09:42:53.629 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1329.59 to 1329.47; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:53.636 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:53.637 INFO [Strategy] c.m.v.d.DukascopyPlugin - Watchdog: VER: 1.3D2019-02-21T09:58:23ZJFX3.4.13 | UP(2019-02-25T07:16:29Z): 10166m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 53M
2019-03-04 09:42:53.637 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.47, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:42:53.642 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onAccount: [id=***97, currency=USD, leverage=100, equity=52153.25, balance=51575.29, tradeVal=577.96, marginVal=5682.89]
2019-03-04 09:42:53.912 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.44
2019-03-04 09:42:53.913 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_REJECTED; Text: Order REJECTED: STOP LOSS BUY XAU/USD @MKT IF ASK => 1329.44 - Position #167814409, REASON: can't change stop loss price more than 1 times per second; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:43:03.914 ERROR [main ] c.m.vega.common.PluginBridge - VER: 1.0D2019-02-21T09:58:23Z | UP(2019-02-25T07:16:29Z): 10166m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 60M
java.util.concurrent.TimeoutException: Timeout exceeded (sec): 10
at com.metakod.vega.common.PluginBase.waitTo(PluginBase.java:332)
at com.metakod.vega.dukascopy.DukascopyPlugin.brokerStop(DukascopyPlugin.java:373)
at com.metakod.vega.common.PluginBridge.brokerStop(PluginBridge.java:524)
2019-03-04 09:43:51.173 INFO [Strategy] c.m.v.d.DukascopyPlugin - Watchdog: VER: 1.3D2019-02-21T09:58:23ZJFX3.4.13 | UP(2019-02-25T07:16:29Z): 10167m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 42M
2019-03-04 09:43:51.179 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onAccount: [id=***97, currency=USD, leverage=100, equity=52154.86, balance=51575.29, tradeVal=579.57, marginVal=5682.90]
2019-03-04 09:44:05.475 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.37
2019-03-04 09:44:05.494 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1329.47 to 1329.37; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:05.496 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:05.502 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.37, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:05.776 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.35
2019-03-04 09:44:05.776 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_REJECTED; Text: Order REJECTED: STOP LOSS BUY XAU/USD @MKT IF ASK => 1329.35 - Position #167814409, REASON: can't change stop loss price more than 1 times per second; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:15.778 ERROR [main ] c.m.vega.common.PluginBridge - VER: 1.0D2019-02-21T09:58:23Z | UP(2019-02-25T07:16:29Z): 10167m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 62M
java.util.concurrent.TimeoutException: Timeout exceeded (sec): 10
at com.metakod.vega.common.PluginBase.waitTo(PluginBase.java:332)
at com.metakod.vega.dukascopy.DukascopyPlugin.brokerStop(DukascopyPlugin.java:373)
at com.metakod.vega.common.PluginBridge.brokerStop(PluginBridge.java:524)
2019-03-04 09:44:17.944 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.1
2019-03-04 09:44:17.962 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1329.37 to 1329.1; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:17.968 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:17.969 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.1, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:18.505 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.01
2019-03-04 09:44:18.506 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_REJECTED; Text: Order REJECTED: STOP LOSS BUY XAU/USD @MKT IF ASK => 1329.01 - Position #167814409, REASON: can't change stop loss price more than 1 times per second; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
2019-03-04 09:44:28.516 ERROR [main ] c.m.vega.common.PluginBridge - VER: 1.0D2019-02-21T09:58:23Z | UP(2019-02-25T07:16:29Z): 10167m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 49M
java.util.concurrent.TimeoutException: Timeout exceeded (sec): 10
at com.metakod.vega.common.PluginBase.waitTo(PluginBase.java:332)
at com.metakod.vega.dukascopy.DukascopyPlugin.brokerStop(DukascopyPlugin.java:373)
at com.metakod.vega.common.PluginBridge.brokerStop(PluginBridge.java:524)
2019-03-04 09:44:31.605 INFO [Strategy] c.m.v.d.DukascopyPlugin - Watchdog: VER: 1.3D2019-02-21T09:58:23ZJFX3.4.13 | UP(2019-02-25T07:16:29Z): 10167m | CPU(2): -1% | THR(40): 37 | MEM(247/90): 51M
2019-03-04 09:44:31.611 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onAccount: [id=***97, currency=USD, leverage=100, equity=52176.64, balance=51575.29, tradeVal=601.35, marginVal=5682.61]
2019-03-04 09:44:33.283 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1328.98

Re: Dukascopy plugin (yet another version) [Re: ags] #476492
03/05/19 09:57
03/05/19 09:57
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Hi ags,

There are no major changes between the plugin's code in v1.2 and v1.3. The brokerStop() method is exactly the same as in v1.2. The only major difference is the version of the Dukascopy API (v3.4.6 vs v3.4.13). But there is one more thing actually, the script is calling the brokerStop() method twice per second, as you can see from the following snippet:

line 06 - brokerStop() first call at 12.724 sec
line 09 - brokerStop() first call ended ok
line 10 - brokerStop() second call at 13.047 sec
line 11 - REASON: can't change stop loss price more than 1 times per second

Code:
06. 2019-03-04 09:42:12.724 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1330.19
07. 2019-03-04 09:42:12.752 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: CONDITION_CHANGED-Position 167814409 STOP LOSS #644964825 price changed from 1330.26 to 1330.19; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
08. 2019-03-04 09:42:12.758 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_OK; Text: ; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
09. 2019-03-04 09:42:12.758 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1330.19, order=[DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5
10. 2019-03-04 09:42:13.047 INFO [main ] c.m.v.d.DukascopyPlugin - brokerStop: tradeID=167814409, stop=1329.91
11. 2019-03-04 09:42:13.048 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CHANGED_REJECTED; Text: Order REJECTED: STOP LOSS BUY XAU/USD @MKT IF ASK => 1329.91 - Position #167814409, REASON: can't change stop loss price more than 1 times per second; Related Order: [DukascopyPlugin1551369601264]-FILLED / XAU/USD / 1315.362423 / 6.3E-5 / 6.3E-5



You can configure the Zorro to limit the requests per second with GET_MAXREQUESTS command. It is supported by the plugin, just put in your config.yml this line:

Code:
maxRequests: 1


Last edited by kvm; 03/05/19 10:35.
Re: Dukascopy plugin (yet another version) [Re: kvm] #476518
03/06/19 13:46
03/06/19 13:46
Joined: Oct 2018
Posts: 90
Germanien
ags Offline
Junior Member
ags  Offline
Junior Member

Joined: Oct 2018
Posts: 90
Germanien
Hi kvm,

Just made the suggested change. I'll let you know how it works.

Re: Dukascopy plugin (yet another version) [Re: ags] #476545
03/08/19 14:32
03/08/19 14:32
Joined: Oct 2018
Posts: 90
Germanien
ags Offline
Junior Member
ags  Offline
Junior Member

Joined: Oct 2018
Posts: 90
Germanien
Hi kvm,

apparently it was exaclty that, after adding maxRequests: 1 i have seen no other trouble.
This is an ongoing test wit my own trading script, so i'll investigate how to limit the requests with the script itself to avoid further troubles.

Re: Dukascopy plugin (yet another version) [Re: ags] #476590
03/11/19 17:15
03/11/19 17:15
Joined: Oct 2018
Posts: 90
Germanien
ags Offline
Junior Member
ags  Offline
Junior Member

Joined: Oct 2018
Posts: 90
Germanien
Group Support explained that i can also modify the script with either set MaxRequests, or set TickTime to > 1000 for limiting the requests.

Re: Dukascopy plugin (yet another version) [Re: ags] #476591
03/11/19 17:23
03/11/19 17:23
Joined: Oct 2018
Posts: 90
Germanien
ags Offline
Junior Member
ags  Offline
Junior Member

Joined: Oct 2018
Posts: 90
Germanien
Hi kvm,

i'm having another anomality i can not understand.
The script closes a position, the plugin informs oder is filled, then confirms Order_Close_OK and a few seconds later it losses the Order.

The position remains open in Zorro only, at the broker it is closed according to the confirmation Order_Close_OK, any idea?


(this is a DEMO account since i'm still working on the script)

2019-03-11 09:00:20.130 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onAccount: [id=***97, currency=USD, leverage=100, equity=54201.00, balance=53967.64, tradeVal=233.36, marginVal=3545.70]
2019-03-11 09:00:52.691 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: ORDER_FILLED-Order FILLED at 25350.569 (#646676240 STOP LOSS SELL 3 USA30.IDX/USD @ MKT IF BID <= 25351.25 EXPIRES: GTC) - Position #168186933; Related Order: [DukascopyPlugin1552273211035]-FILLED / USA30.IDX/USD / 25401.03 / 3.0E-6 / 3.0E-6
2019-03-11 09:00:52.697 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: ORDER_CLOSE_OK; Text: null; Related Order: [DukascopyPlugin1552273211035]-CLOSED / USA30.IDX/USD / 25401.03 / 3.0E-6 / 3.0E-6
2019-03-11 09:00:58.402 ERROR [main ] c.m.v.d.DukascopyPlugin - brokerTrade: Order not found for tradeID=168186933
2019-03-11 09:00:58.414 ERROR [main ] c.m.v.d.DukascopyPlugin - brokerTrade: Order not found for tradeID=168186933
2019-03-11 09:00:59.423 INFO [main ] c.m.v.d.DukascopyPlugin - brokerCommand: SET_ORDERTYPE=0
2019-03-11 09:00:59.428 INFO [main ] c.m.v.d.DukascopyPlugin - brokerSell: tradeID=168186933, amount=3
2019-03-11 09:00:59.428 ERROR [main ] c.m.v.d.DukascopyPlugin - brokerSell: Order not found for tradeID=168186933
2019-03-11 09:01:12.561 ERROR [main ] c.m.v.d.DukascopyPlugin - brokerTrade: Order not found for tradeID=168186933

Page 9 of 14 1 2 7 8 9 10 11 13 14

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1