Fobos iSAR MT5

Fobos iSAR MT5

5 ноября 2022, 22:12
Aliaksandr Chupryna
0
381

Expert Advisor  "Fobos iSAR".

The signal to enter the market is the price breaking through the iSAR_2 indicator. Further, entry deals are made based on the data of the iSAR_1 indicator. Signal to close positions - TakeProfit :

00

                                                                EXAMPLE OF EA OPTIMIZATION                                                                      

By optimizing the Expert Advisor on different timeframes and in different ranges of parameters, you can create several (and more) strategies for yourself with different input data.

   ACT 1   

We will optimize each block separately. Disable all characters except the first.

O1

   ACT 2   

Turn on the optimization mode.

2=0_

To reduce the optimization time, we will limit the results we need to a drawdown (about 30-50) . To do this, put Auto_Lot=true, Deposit=350, BalanceForAdd=35. As a result, only those testing results will remain in which, with Auto_Lot=false, the maximum drawdown will be about BalanceForAdd or less. Necessarily Exponent_Symbol=1. Set optimization parameters.

2_2

   ACT 3   

We look at the number of test options.

3.1

Choose an optimization option. Option 1( Slow complete algorithm) will show us all the results (which is desirable). But if the number of testing options is very large, then option 2( Fast genetic based algorithm) can be chosen. 

3.22

   ACT 4   

Run the optimization.

From the optimization results, select one of them and start testing.

4.1

4.2

   ACT 5   

Now we switch to the "Auto_Lot = false".

5.1

We get a result that suits us.

5.2

5.3

   ACT 6   

Don't forget to save in "file.set" .

6.1

   ACT 7   

Then we repeat the same actions with other currency pairs. You can check each time their joint work.
7.1

   ACT 8   

After optimizing all symbols, we finally test all blocks together ("Trade=true" for all symbols). We see the result that reflects the essence of the adviser - the profit is summed up, but the drawdown has not changed much (increased by 2 times). To do this, when choosing optimization results, you should try to choose results with an average number of deals and a small TakeProfit (so that the positions of different symbols overlap less often).

8.1

   ACT 9   

You can stop at this, or you can accelerate the dynamics of profit growth. Enable Auto_Lot=true . Let's take a deposit of 200. BalanceForAdd=180 (every 180$, lot will increase by 0.01)

9.1

                                                                 HOW "Limit_Max_Lot" WORKS                                                                   

On the tested account, the broker set the maximum trade volume limit MaxLot=500. With deposit=100000 and BalanceForAdd=100, lot=10 is used for the first deal in the position. For subsequent trades on this position, lot>500 may be required and the adviser will set lot=500. Therefore, there are drawdowns.

11.1

If Limit_Max_Lot=true, the first trade in a position will not exceed MaxLot/100.

12.1