OfferID doesn't match the trade

Moderator: admin

OfferID doesn't match the trade

Postby bharanimani » Wed Oct 05, 2016 4:30 pm

Hi,
I keep getting OfferID doesn't match the trade error all the time. But not for all symbols but few of them at randomly. I checked I get the OfferID in Prepare() and it works. After this error my strategy is paused for some reason. Has anyone seen this error?

C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/mystrategy_oil.lua:341: The OfferID doesn't match the trade.

Thanks,
Bharani
bharanimani
 
Posts: 12
Joined: Wed Oct 05, 2016 12:59 pm

Re: OfferID doesn't match the trade

Postby Apprentice » Thu Oct 06, 2016 5:01 pm

Can you provide mentioned strategy?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: OfferID doesn't match the trade

Postby bharanimani » Fri Oct 07, 2016 9:26 pm

Strategy is simple, buy above MVA 20 and sell below MVA 20. Thats it.
bharanimani
 
Posts: 12
Joined: Wed Oct 05, 2016 12:59 pm

Re: OfferID doesn't match the trade

Postby Apprentice » Wed Oct 12, 2016 3:04 am

I need an actual strategy code.
I can not help you without it.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 15 guests

cron