MACD Vs Signal is a Server Side VTL expert adviser. EA trades the standard MACD line crossing MACD signal line. The EA open Buy position when the MACD line cross above the Signal Line and open Sell position when MACD line cross below Signal line. The EA applies a stop loss and take profit to open positions defined by the parameters stop loss and Take profit. It will apply a trailing stop loss also, if parameter trailing stop loss value is set above zero. The EA open only one position at a time. This EA demonstrates the methodology to create fully operative server side expert advisers with VTL. This can be further fine-tuned to make it a better EA. Trader can run it around volatile market times like first hour of London session open time or US session open.
The EA is intended for demonstrative purpose. Before starting the EA on the server, trader must set the parameters. To set parameters, open the script in VTL editor, parameters are located at the top of the script file. Set the stop loss, take profit, trailing stop loss and lot size to trade. Parameter Symbol defines the symbol to trade. Chart period defines the periodicity of the chart on which the EA is to be applied. The EA can be run on the server by clicking the Run button in VTL editor. Once started, it will run on the server until the trader stops it.