Hi guys. I have a strange rejection explanation in proorder. anyone knows what it means or what I should be looking for?
cheers
Kasper
Hi, it’s an IG related error. Only their customer support could help on this.
Hi Nicolas, yes I agree. I already wrote them, but couldn’t hurt to ask if anyone experienced similar problem. I compared the code to a a similar one, that does execute, and only thing I could find is I have coded a time frame for trading. A very simple one. Seem very odd that is should generate a rejection, but let’s see what the reply will be. It’s on demo account.
IF (Time >= 08000 AND Time <= 220000)then// OR (Time >= 130000 AND Time <= 170000) THEN // no trading during lunch
Tradetime=1
else
Tradetime=0
endif
IF Not LONGONMARKET AND longcondition and tradetime THEN
BUY PositionSize CONTRACT AT MARKET
ENDIF
// short
IF Not SHORTONMARKET AND shortCondition and tradetime THEN
SELLSHORT PositionSize CONTRACT AT MARKET
ENDIF
What IG refer as an EPIC is their own ISN code, so I think the problem came from a server that do not understand what instrument your strategy is willing to trade.. You are not the first to have this kind of error. Look on other forums thread:
http://www.prorealcode.com/topic/accountid-does-not-have-permission-for-epic-locale-combination/
http://www.prorealcode.com/topic/help-me/
http://www.prorealcode.com/topic/pro-order-mi-blocca-il-ts-automatico/
Thanks Nicolas. IG came with a respond. I will post it here for future references.
“The issue you are having is if a product code that is used to reference an instrument in your watchlist or platform is out of date. The solution is very simple and all you need to do is go to the IG platform and then search for the product in the finder and then once you have found it please can you add this to a watchlist”