error 130

 

Hello,

i get always error 130 from order placed in EA (not manually).

the expert log with wide target and stop pips (500)

18:26:48 tcmtibEATest1 EURUSD,M5 inputs: TakeProfit=500; Lots=1; HedgeSymbol="USDJPY";
18:26:48 tcmtibEATest1 EURUSD,M5: short stop=1.436170
18:26:48 tcmtibEATest1 EURUSD,M5: short target=1.426170
18:26:48 tcmtibEATest1 EURUSD,M5: initialized
18:26:50 tcmtibEATest1 EURUSD,M5: side=0

// going short
18:26:50 tcmtibEATest1 EURUSD,M5: go short. Mid=1.431210
18:26:50 tcmtibEATest1 EURUSD,M5: short stop=1.436210
18:26:50 tcmtibEATest1 EURUSD,M5: short target=1.426210

// OrderSend returns -1
18:26:50 tcmtibEATest1 EURUSD,M5: ticket=-1
18:26:50 tcmtibEATest1 EURUSD,M5: error(130):
18:26:50 tcmtibEATest1 EURUSD,M5: h long stop=92.315500
18:26:50 tcmtibEATest1 EURUSD,M5: h long target=93.315500
18:26:52 tcmtibEATest1 EURUSD,M5: side=-1
18:26:55 tcmtibEATest1 EURUSD,M5: side=-1

the expert log with tigthen target and stop pips (100)

18:29:17 tcmtibEATest1 EURUSD,M5: loaded successfully
18:29:20 tcmtibEATest1 EURUSD,M5 inputs: TakeProfit=100; Lots=1; HedgeSymbol="USDJPY";
18:29:20 tcmtibEATest1 EURUSD,M5: short stop=1.431425
18:29:20 tcmtibEATest1 EURUSD,M5: short target=1.429425
18:29:20 tcmtibEATest1 EURUSD,M5: initialized
18:29:20 tcmtibEATest1 EURUSD,M5: side=0

// going short
18:29:20 tcmtibEATest1 EURUSD,M5: go short. Mid=1.430485
18:29:20 tcmtibEATest1 EURUSD,M5: short stop=1.431485
18:29:20 tcmtibEATest1 EURUSD,M5: short target=1.429485

// OrderSend returns -1
18:29:20 tcmtibEATest1 EURUSD,M5: ticket=-1
18:29:20 tcmtibEATest1 EURUSD,M5: error(130):
18:29:20 tcmtibEATest1 EURUSD,M5: h long stop=92.748000
18:29:20 tcmtibEATest1 EURUSD,M5: h long target=92.948000

Symbol is EUR.USD

one hint. the same code applied to same symbol runs on a demo-account.

Anyone has idea why this happens ? could it be related to broker ?

thank you

 

Your symbol is EURUSD, but prices for USDJPY.

 
Roger wrote >>

Your symbol is EURUSD, but prices for USDJPY.

Hello,

no, this is not the case:

// going short

EUR.USD prices
18:29:20 tcmtibEATest1 EURUSD,M5: go short. Mid=1.430485
18:29:20 tcmtibEATest1 EURUSD,M5: short stop=1.431485
18:29:20 tcmtibEATest1 EURUSD,M5: short target=1.429485

USD.JPY prices

18:29:20 tcmtibEATest1 EURUSD,M5: h long stop=92.748000
18:29:20 tcmtibEATest1 EURUSD,M5: h long target=92.948000

as i said: on another account, i get this error not