Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Support Vector Machine Learning Trader - MetaTrader 5 Expert | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Support Vector Machine Learning Trader - expert for MetaTrader 5

The following Expert Advisor example ("svmTrader") was written to demonstrate the typical use of the Support Vector Machine Learning Tool (a copy of the Support Vector Machine Learning Tool is available from the MQL5 Market ). The Expert Advisor works as follows:

Two new support vector machines were created using the svMachineTool library. One is set up to give out a new "Buy" trade signal and the other is set up to give out a new "Sell" trade signal.

Seven standard indicators are initialized and the handle to each indicator is stored into an integer array (note: any combination of indicators can be used as input, they just need to be passed to svm as a single integer array).

The array of indicator handles is passed to the new support vector machine.

Using an array of indicator handles and other parameters, historical price data is used to generate accurate inputs and outputs for training the support vector machine.

Once all inputs and outputs are generated, two support vector machines are trained.

Trained support vector machines are used in EAs to generate new buy and sell trading signals. When a new buy or sell trading signal appears, the trade is opened and stop-loss and take-profit orders are set manually.

Hopefully the Expert Advisor will allow you to make some experiments with this tool. I recommend that you copy/change/modify the Expert Advisor to suit your own trading style.

Support Vector Machine Learning Trader - expert for MetaTrader 5


Attachment download

📎 svmtrader.mq5 (14.52 KB)

Source: MQL5 #1229

Verification code Refresh