EA based on Bollinger Bands en filter

MQL5 Experts

Job finished

Execution time 10 minutes

Specification

I need na EA in Mql5 to operate Brasilian Future Market( Bovespa mini índice) , but can also operate in others markets, based on Bollinger Bands , using a filter in placing orders :

A-  Use a filter to decide whether or not place orders as describe below

Vcruz                                  //----- variable stored in a buffer with the value of the last price of crossing ( Vcruz) with the center line of the Bollinger Bands
Fx=(Vcruz-currente price)     //----- variable that measures the distance from the current price to the value of last crossing of the central band ( absolute value, if negative , turn positive)
x                                        //------Set reference value ( input   x)

Two possible conditions for open News positions :

Condition 1 -  If Fx < x , then :         //----that is, if the price is not more tham a certain distance from the last crossing of the central band of Bollinger

If  cross the upper Bollinger band from top to bottom: 

      • If you are not with pending orders: Launches Sell Order 
 
      • If you are buy order: reverses the position, being sold 
 
      • If you are sell order : does nothing 

 If cross the Bollinger lower band from the bottom to up: 
 
      • If you are not with pending orders: launches buy Order 
 
      • If you are sell order: reverses the position, getting bought 
 
      • If you are buy order: does nothing 

 

Condition 2.  If  Fx> x  then: // ---- that is, if the distance between the price and the last crossing of the center Bollinger band is greater than the reference value imputed 

If you are above the upper Bollinger band: 
 
       • If you are not with pending orders: launches Buy Order 
 
       • If you are sell order : reverses position and getting bought 
 
       • If you are buy order: does nothing 

In this condition the closure of the long position should be ordered when the price crosses with the central of Bollinger band. 

If you are below the lower Bollinger band: 
 
       • If you are not with pending orders: Launches Sell Order 
 
       • If you are buy order: reverses position and being sold 
 
       • If you are sell order : does nothing 


In this condition the closure of the short position should be ordered when the price crosses with the central of Bollinger  band. 
















 



Responded

1
Developer 1
Rating
(2672)
Projects
3407
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
2
Developer 2
Rating
(26)
Projects
44
57%
Arbitration
0
Overdue
16
36%
Free
Published: 3 codes
3
Developer 3
Rating
(13)
Projects
35
71%
Arbitration
2
0% / 0%
Overdue
11
31%
Working
Published: 1 code
4
Developer 4
Rating
(414)
Projects
670
33%
Arbitration
60
17% / 32%
Overdue
113
17%
Working
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
Deadline
from 2 to 10 day(s)