Good EA with simple strategy but it not work here is the EA

 

i made EA with simple strategy but it not work

it dont open position and i dont know why

its strategy works well with most pairs and time frames (not more H4)

please help me

Files:
bbb.mq4  11 kb
 

This line does not make sense...

double Buy1_1 = iHigh(NULL, PERIOD_M1, Current - 0.0005);

Current is the current bar, usually "0" if using everytick or "1" if using closed bar prices.

What is the logic of your system?

 

im using every tick not bar

u can modify it and check if it will work and open positions

please notify me

i have some good strategies but im not good in programming

thats one of my best

i will wait u

 

First you will have to explain your startegy before I do anything to your code.

 
Maji:
First you will have to explain your startegy before I do anything to your code.

it simply buy the pair if the ask price is (greater than bollingerbands 20 dev 2) by 5 pips

and stoploss when the bid price is (less than sma 20 )by 5 pips

and then take profit when the bid price is (less than bollingerbands 20 dev 4)by 5 pips

and viceversa for sell

it simply sell the pair if the bid price is (less than bollingerbands 20 dev 2)by 5 pips

and stoploss when the ask price is (greater than sma 20 )by 5 pips

and then take profit when the ask price is (greater than bollingerbands 20 dev 4)by 5 pips

note : all bongerbands and sma is based on HL/2 price

 

before open any position it must check if the difference between (bb20 dev2) and (bb20 dev4) is >= 15 pips

after open and closing position

it must not enter any position untill it checks

the bid price reached (less than sma 20 ) by 5 pips (( if the last trade was long))

the ask price reached ( greater than sma 20 ) by 5 pips ((if the last trade was short ))