The .mq4 file extension is the ghost in the machine of the financial world. Let me tell you a story about it. In the flickering blue light of a Bangkok condo, at 2:47 AM, Alex watched the Yen tumble. He wasn't watching the news. He wasn't reading a chart. He was watching a single line of text scroll past in the "Experts" tab of MetaTrader 4.
Behind that line was a file named Hurricane.mq4 . He wasn't watching the news
if (Bid > iMA(NULL,0,20,0,MODE_SMA,PRICE_CLOSE,1) * 1.002) OrderSend(Symbol(), OP_BUY, 0.1, Ask, 3, Ask-150*Point, Ask+300*Point); Translated: If the price gets greedy, strike. If it panics, cut the loss at 15 pips. Behind that line was a file named Hurricane
Sofia compiled the .mq4 into .ex4 —the compiled, machine-readable binary. The .ex4 is the robot. The .mq4 is the soul. 1) * 1.002) OrderSend(Symbol()
He wrote Hurricane.mq4 to do one thing: wait for chaos. When the spread between the Euro and the Pound widened faster than a certain velocity, his bot would fire two opposite orders—a straddle. It didn't care if the market went up or down. It only cared that it moved .
And the robot wakes up.