fix major defect

- trade only major currency
- fix error parsing fx factory for undifened time
- fix magic box setting
- reliable close order