mmtztustz

Newbie
Dec 5, 2022
2
0
1
28
I always get Execution failed. Don't know what I am doing wrong? (first time I am using an expert advisor)
Auto trading is enabled for the account
Live Trading is allowed for the EA

Any idea what I am missing? Or what info do you need to troubleshoot this?

This is the Inputs I am using

Date/time: When I am testing I use 1-2 minutes in the future from current time
Order type: Buy
Entry price: 0.0
SL type: Distance from Entry in points
SL: 100.0
TP type: Distance from Entry in points
TP: 100.0
Expires on: 1970.01.01 00:00
How many times to try sending order? 10
Max difference between given price and market price: 0
Maximum spread: 3
Maximum slippage: 30
ATR Timeframe: current
ATR Period: 14
FixedPositionSize: 0.01
Risk: 1.0
MoneyRisk: 0.0
FixedBalance: 0.0
 

Enivid

Administrator
Staff member
Nov 30, 2008
17,245
1,075
144
Odessa
www.earnforex.com
I always get Execution failed. Don't know what I am doing wrong? (first time I am using an expert advisor)
Auto trading is enabled for the account
Live Trading is allowed for the EA

Any idea what I am missing? Or what info do you need to troubleshoot this?

This is the Inputs I am using

Date/time: When I am testing I use 1-2 minutes in the future from current time
Order type: Buy
Entry price: 0.0
SL type: Distance from Entry in points
SL: 100.0
TP type: Distance from Entry in points
TP: 100.0
Expires on: 1970.01.01 00:00
How many times to try sending order? 10
Max difference between given price and market price: 0
Maximum spread: 3
Maximum slippage: 30
ATR Timeframe: current
ATR Period: 14
FixedPositionSize: 0.01
Risk: 1.0
MoneyRisk: 0.0
FixedBalance: 0.0
What exactly does it say in the Experts tab or in the respective log file after the order fails?
 

mmtztustz

Newbie
Dec 5, 2022
2
0
1
28
What exactly does it say in the Experts tab or in the respective log file after the order fails?
Thank you, this question solved it . the log file only showed "uninit reason 1", but the experts Tab also showed the exact reason which was
"Current spread 6 > maximum spread 3. Not opening the trade"
 

Enivid

Administrator
Staff member
Nov 30, 2008
17,245
1,075
144
Odessa
www.earnforex.com
Thank you, this question solved it . the log file only showed "uninit reason 1", but the experts Tab also showed the exact reason which was
"Current spread 6 > maximum spread 3. Not opening the trade"
By the log file, I didn't mean the MetaTrader's Journal. The Timed Order expert advisor creates its own log file in the Files folder called "TO-Log-<Symbol name>.log" - it contains the same info as the Experts tab. I'm glad that you were able to resolve the issue!