Foreign exchange EA can be developed on MT4 platform, and the language adopted is MQ4 language. A set of EA is a complete trading procedure. The program automatically judges the timing of placing an order and closing the position by obtaining the market price in real time. The computer simulates the trader's instruction operation for machine trading, and executes the trading instruction according to the pre-edited trading strategy program.