Download MetaTrader 5

Changes to existing EA

To add comments, please log in or register
77
Customer 2016.10.19 09:31 10 - 20 USD   1 day(s)

I need 2 changes: 

 I need my buy and sell code like this.....So I can make changes in the code myself for mixed candles

------------------------------------------------------------------------------------------------- 

//--- buy conditions

           (RSI<30 && Close[1]<Open[1] && Close[2]<Open[2])   // Candles =2

//--Sell conditions

         (RSI>70 && Close[1]>Open[1] && Close[2]>Open[2])   // Candles =2


 

-------1st Changes- ----Input X Consecutive Candles------------------------

Buy  

X=1 Next input 1st Candle = Bull or Bear
X=2 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear
X=3 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear
X=4 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear
X=5 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear
X=6 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear, 6th Candle = Bull or Bear

 

 Sell  

X=1 Next input 1st Candle = Bull or Bear
X=2 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear
X=3 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear
X=4 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear
X=5 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear
X=6 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear, 6th Candle = Bull or Bear

------------------------------------Example Start-------------------------------------------

 

input string _________________________________="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";//_________ Number of candles (Option from 1 to 6 candles)

------------BUY Candles----------------------------------------------------

 

int    Numberofcandle_1                                                = 1;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

int    Numberofcandle_2                                                = 2;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

int    Numberofcandle_3                                                = 3;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

int    Numberofcandle_4                                                = 4;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

string  Candle_4-Type                                                    =  Bull or Bear

int    Numberofcandle_5                                                = 5;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

string  Candle_4-Type                                                    =  Bull or Bear

string  Candle_5-Type                                                    =  Bull or Bear

int    Numberofcandle_6                                                = 6;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

string  Candle_4-Type                                                    =  Bull or Bear

string  Candle_5-Type                                                    =  Bull or Bear

 string  Candle_6-Type                                                    =  Bull or Bear

------------SELL  Candles----------------------------------------------------

 

int    Numberofcandle_1                                                = 1;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

int    Numberofcandle_2                                                = 2;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

int    Numberofcandle_3                                                = 3;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

int    Numberofcandle_4                                                = 4;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

string  Candle_4-Type                                                    =  Bull or Bear

int    Numberofcandle_5                                                = 5;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

string  Candle_4-Type                                                    =  Bull or Bear

string  Candle_5-Type                                                    =  Bull or Bear

int    Numberofcandle_6                                                = 6;            //Number of candles

string  Candle_1-Type                                                    =  Bull or Bear

string  Candle_2-Type                                                    =  Bull or Bear

string  Candle_3-Type                                                    =  Bull or Bear

string  Candle_4-Type                                                    =  Bull or Bear

string  Candle_5-Type                                                    =  Bull or Bear

string  Candle_6-Type                                                    =  Bull or Bear

 ------------------------------------- Example End-------------------------------------------

 

-------2nd Changes- ----Input How to open next Trade -----X Consecutive loss trades----------------This option should be provide in addition to the existing option


2) Consecutive loss and change side should be applicable on same day basis....

If I select 5M chart and I got first loss in one 5 mins candle where I was buying and RSI is 30 or below. Again took second loss in same or next 5 min candle and if my condition is 2 consecutive loss and change side. 

Than in the same or next 5 mins candle when both condition ( consecutive bull candles and RSI 30) is TRUE I will sell. This option should be given separately in addition to the existing option, sell side will continue till we get x consecutive losses.

 


Job completed in 1 day. The portfolio of Hasanboy Beknazarov contains 836 finished jobs. This developer received 706 feedbacks with an average rate of 4.93.
Do you want to place a new order for Hasanboy Beknazarov?
2016.10.30
: I would always prefer him for my futures coding requirements, as he understands the customer's requirements well and his ability to submit work on time.
2016.10.30
: Very good customer. Perfect contact, clear description, good understanding. I really enjoyed working with you. Thank you again !!!
Hasanboy Beknazarov

Hasanboy Beknazarov 2016.10.19 10:39
Jobs: 836 (50% personal)
Arbitration: 47 (completed in favor of the developer 40%, canceled in favor of the customer 27%)
Overdue: 268 (32%)
To add comments, please log in or register