Articles by: David Williams

Close By MQL Magic Number

A simple drawing that shows how to configure the fnClose function to close an order by it’s magic number. The MQL programming magic number is defined when the order is opened.

VTS System Zip File: CloseBuyMagicNumber.zip

EMA Trading System

This is a trading system that a client requested. It used an EMA and an offset, a trailing stop, a time restraint and a profit exit. I may rebuild this as I did not implement the open-buy rule 100% correct. (I’m still testing this upload process).

Here are the rules of the system: o   ea that buys when last bar close is above ema (adjustable) AND current market bid exceeds last bar high by a predetermined number of pips (and symetrically)
o   stops at predetermined SL
o   takes profit at a predetermined level with an adjustable trailing stop feature possible
o   starts again when deal closed
o   adjustable period of trading (day, time)
o   stops trading when a given amount of loss or profit is reached by the instance running

VTS System Zip File: system1.zip