could you please help me to create a basic and simple EA

 
Hi, my friend, i understand you are so busy, but I need some help to create a simple EA, I just need that the expert open one trade position when the bar opens and close the position qhen the bar has closed. I thing is simple but can you helpme?
 
erwing123:
Hi, my friend, i understand you are so busy, but I need some help to create a simple EA, I just need that the expert open one trade position when the bar opens and close the position qhen the bar has closed. I thing is simple but can you helpme?

So its help you need? Please post what you've written so far of this EA.

 
Well, sounds quite easy, but what is the point? Basically what it will do is to trace the market and lose on the spread on every new candle.. Can't see any real use for it.. So then even though the market would be rising and you only buying, after paying the spread it might well end up losing..
Reason: