To run step by step a piece of code created with the MetaQuotes Language Editor simply go to Charts>>Step by Step on the MetaTrader 4 platform menu or press the F12 key.