Hello there,
I'm trying to write the code in order to create a "Cowabunga Expert Advisor" for MetaTrader 4 platform. Starting from the indicator i found here -
Cowabunga.mq4 - (sorry, I don't remember the author) I wrote some functions, defined the buy and sell market enters, and for simplicity for now the program closes a position when you are gaining or loosing 20 pips (obviously this is not the Cowabunga system, but I want to test the first part of the code for now).
I've tried to test the advisor into MT but it seems not working as expected, you can download the file
CowabungaEA.mq4 and verify it on your own: it opens a lot of positions and closing them immediatly, and NOT when the original Cowabunga indicator shows the arrow signal. I made some mistakes (I'm not an expert programmer)!
If someone that can do the work could help me... It would be useful for many of us, I think