View Single Post
  #1 (permalink)  
Old 12-15-2008, 08:01 PM
rwb181 rwb181 is offline
Junior Member
 
Join Date: Dec 2008
Posts: 12
rwb181 is on a distinguished road
EA based on last bars open and close

Hello All,

I have been searching around for an EA with no luck and have been unable to create one that does exactly what I want it to do.

What I am looking for is an EA that will place a buy or sell order based on the opening and closing of the last two bars in the current chart.

Specifically, if the close of bar[1] is greater than the open of bar[1] and the close of bar[2] was less than the open of bar[2] (a price reversal), a buy order is placed on the open of bar[0]. A sell would be the opposite.

The EA doesn't need to be fancy or anything like that. Actually, what I could probably work with is just the formula that is needed to satisfy these conditions.

Any help that is offered will be greatly appreciated. In the mean time, I will continue to try to create the proper formula.

Thank you for your attention,
Ron
Reply With Quote