I still have problems with Expiration setting of the EA.
According to your last response, the value of 20160 corresponds to two weeks (60*24*14).
I get ERR_TRADE_EXPIRATION_DENIED with current implementation.
Could you please review the code and refine the implementation?
if( Expiration > 0 )
expire = TimeCurrent() + ( Expiration * 60 ) - 5;