top of page

Forex Trading System

Introduction

In this project an algorithm was written for auto trading In the Forex market

Implemented in MetaTrader software.

The code is written in the MQL4 language (very similar to the C++ language).

The transactions are at intervals of hours to days and sometimes even minutes and therefore

in order that the trader not to be subject to the computer during most of the day 

auto trading is required.

Automated trading is based on a strategy that calculates and determines entry and exit times
of multiple transactions and execute them in real time.

The purpose of the project is to show performance and there is no recommendation for using this strategy.

metatrader icon.png

The Strategy

 

The strategy is built from 3 steps:

Step 1 - Entering a Long trade and placing a profit target d pips above.

Step 2 - Contains two scenarios:

             1.  The price has reached its destination = Close all transactions and return to Step 1.

             2.  The price goes in the opposite direction = After d / 2 pips away Entering a Short trade                             in double-dose and placing a profit target d pips below.

Step 3 - Contains two scenarios:

             1.  The price has reached its destination = Close all transactions and return to Step 1.

             2.  The price goes in the opposite direction = After d / 2 pips away Entering a Long trade                             in double-dose and placing a profit target d pips above.

 

trade.PNG

Performance

Code

maincode1.PNG
maincode2.PNG
maincode3.PNG
maincode4.PNG
© Copyright by Matanel Gahpi
bottom of page