Inside of the on tick function, we start by creating a string variable called signal. Therefore we start by creating an instance of the class ctrade that will do it for us, we will call it trade. We start with an include statement for the file trade dot mqh, this one comes with mql5 and we will use it to open buy or sell positions. Now you can delete everything above the on tick function and the two comment lines here. Now you should see the Metaeditor window and here you want to click on file, new file, expert advisor from template, continue, I will call this file simple stochastic ea, click on continue, continue and finish. To get started please click on a little button here or press F4 on your keyboard. In this video we are going to create an expert advisor to trade this oscillator here, this is the stochastic oscillator so let’s find out how to do that with mql5. Copy and paste this HTML code into your webpage to embed.
0 Comments
Leave a Reply. |