2 registered members (AndrewAMD, ChrstphFr),
941
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Junior Member
|
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:
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: ags]
#476368
02/21/19 10:21
02/21/19 10:21
|
Joined: Jan 2017
Posts: 95 Bulgaria
kvm
OP
Junior Member
|
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: ags]
#476477
03/04/19 09:44
03/04/19 09:44
|
Joined: Oct 2018
Posts: 90 Germanien
ags
Junior Member
|
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
OP
Junior Member
|
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
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:
Last edited by kvm; 03/05/19 10:35.
|
|
|
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
Junior Member
|
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
|
|
|
|