Using the EA-Indicator Plug-in
The EA-Indicator Plug-in allows you to create a Custom Indicator that draws Buy and Sell lines based on the logic of your Expert Advisor.
The signals are generated from the following trading functions:
- OpenBuyTrade: when true, Blue line is greater than 0
- CloseBuyTrade: when true, Blue line is less than 0
- OpenSellTrade: when true, Red line is greater than 0
- CloseSellTrade: when true Red line is less than 0
VTS generates MQL code to build a custom indicator based on the logic of the 4 functions above.
After creating an Expert Advisor in VTS that uses at least one of the functions OpenBuyTrade, CloseBuyTrade, OpenSellTrade, and/or CloseSellTrade:
- Set the VTS target to "EA Indicator"
- Press the Build button
- A Custom Indicator is created in the Platform folder's "custom indicator" folder (experts\indicators)