Gamestudio Links
Zorro Links
Newest Posts
error
by OptimusPrime
Yesterday at 22:10
Error message : Closing Order Quantity
by OptimusPrime
Yesterday at 22:07
Votes for future features
by ags
Yesterday at 19:19
New Zorro version 2.03
by brax
Yesterday at 11:20
Doubts about Detrend modes
by jcl
Yesterday at 08:40
Download all constituent stocks within Russel 1000
by jcl
Yesterday at 08:26
datafeed and broker are different, possible?
by jcl
Yesterday at 08:24
AUM Magazine
Latest Screens
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Who's Online
3 registered (AndrewAMD, jrath, OptimusPrime), 616 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
danatrader, ilikezorro, jibanes, nandv, cam1234
18187 Registered Users
Page 10 of 10 < 1 2 ... 8 9 10
Topic Options
Rate This Topic
#476594 - 03/12/19 07:17 Re: Dukascopy plugin (yet another version) [Re: ags]
kvm Offline
Junior Member

Registered: 01/18/17
Posts: 75
Loc: Bulgaria
Hi ags,

Could you attach the full log (starting from opening the order)?

Top
#476596 - 03/12/19 08:28 Re: Dukascopy plugin (yet another version) [Re: kvm]
ags Offline
Junior Member

Registered: 10/23/18
Posts: 73
Loc: Germanien
Hi kvm,

it is the Position #168186933, it starts 2019-03-11 with this lines

2019-03-11 04:00:11.050 INFO [Strategy] c.m.v.d.DukascopyPlugin - Strategy.onMessage: Message Type: NOTIFICATION; Text: ORDER_ACCEPTED-Order ACCEPTED: #646676239 BUY 3 USA30.IDX/USD @ MKT MAX SLIPPAGE 0.05 - Position #168186933; Related Order: [DukascopyPlugin1552273211035]-CREATED / USA30.IDX/USD / 25401.03 / 3.0E-6 / 3.0E-6

Here the related log file:


Attachments
vDukascopy-log.txt (4 downloads)


Top
#476597 - 03/12/19 09:12 Re: Dukascopy plugin (yet another version) [Re: ags]
kvm Offline
Junior Member

Registered: 01/18/17
Posts: 75
Loc: Bulgaria
Hi ags,

Here is what happen from my view point:

1. The script opens a buy order with stoploss 201 points away from the price:
2019-03-11 04:00:11.035 - brokerBuy2: asset=USA30.IDX/USD, amount=3, stop=201.62, limit=0.0
2019-03-11 04:00:11.068 - brokerBuy2: tradeID=168186933, type=BUY, order=[DukascopyPlugin1552273211035]-FILLED / USA30.IDX/USD / 25401.03
where open price is 25401.03 and stoploss sell is at 25401.03-201.62=25199.41

2. The script moves the stoploss to 25351.25:
2019-03-11 05:00:07.232 - brokerStop: tradeID=168186933, stop=25351.25

3. The stoploss is triggered and the order is closed by the broker:
2019-03-11 09:00:52.691 - 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

4. The script is trying to close the order but it doesn't exist anymore:
2019-03-11 09:00:59.428 - brokerSell: tradeID=168186933, amount=3
brokerSell: Order not found for tradeID=168186933

Top
#476598 - 03/12/19 18:17 Re: Dukascopy plugin (yet another version) [Re: kvm]
ags Offline
Junior Member

Registered: 10/23/18
Posts: 73
Loc: Germanien
Hi kvm,

yes, the plugin seems not to report to Zorro that the position was closed.

I contacted the support team and the asked me to check if the plugin properly reports closed positions.

"For this, thei idicated to use the TradeTest script. Open a position and then close it directly in the broker platform. Zorro should detect the closed position within a few seconds, or a minute the latest."

I did that and indeed just get the same error message as before:

!ERROR brokerTrade: Order not found for tradeID= xx

So it really seams that the plugin is not reporting to Zorro that the position was closed.

Top
#476606 - 03/13/19 13:10 Re: Dukascopy plugin (yet another version) [Re: ags]
kvm Offline
Junior Member

Registered: 01/18/17
Posts: 75
Loc: Bulgaria
New Dukascopy plugin v1.4 is available:

- Fixed issue with externally closed orders not being reported
- Tested with Zorro v1.96.4

Top
Page 10 of 10 < 1 2 ... 8 9 10



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

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