Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted

i need someone to help write a simple previous bar breakout ea.

 

any help would be greatly appreciated.

 

basically the ea would be like this.

 

only opens one order per currency at a time.

if the previous bars body (open and close) is greater than 10 and lower than 30 the ea should open buy stops at the previous days open and close. if the open is higher than the buystop/limit would be there and the sell would be on the close and visa versa if the close is higher.

 

the take profit would be the size of the previous bars body. open[1]-close[1] or however it can be determined.

 

the stop loss on a buy is the open or close of the previous bar whatever is lower and the stoploss on a sell would be the previous open or close whatever is higher.

 

if the stoploss is taken out then the lot size doubles (martingale type trading)

if the take profit is triggered the lot size returns to the original lot size.

 

i hope all is clear.

thanks and blessings.

peace

  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...