Need help in improving automatic trading E A I developed for Strategy Contest

I need help in improving an E A that I have developed for Strategy contest in Dukascopy bank site. The strategy was developed using the Visual J forex available for public use at the same site. This is an open contest and I was interested because it would enable me to learn new strategies and also give me experience in contest platform. The strategy is based on indicators SMA and Kairali . The SMA is used to enable me to see the trend and the Kairali is used to get the entry points for the trade. Exit is on Take profit. Take profit settings are at 20 Pips and Stop loss is only for safety at 500 pips. I tried this system in the History test and it gives good profits. But what I find is that the trade entries after every Take profit are seen to be reversed. What I mean by this is that if the current trade which is a BUY trade is closed by the T P then immediately a SELL trade get activated. I want to avoid this and have the next trade opened only based on the Signal from the Kairali end. This is specially needed when the trend is for long periods in one direction. Can any one help me in this . There must be some mistake I am making in my Visual J Forex programing that automatically starts the reverse trade. I am not a programer and use the blocks given at the site for developing the program. But it is interesting and gives us a lot of satisfaction of doing something that we want to achieve.

I can give the details of the program if any body can help and what blocks I have used. .
Taking part in such contests gives us a feeling of competition and desire to improve. My intention in taking part in the Strategy Contest is not with the hope that I will be the winner but to improve my grasp of the Forex trading.

Thanks for your patience.
Kamath
23 July 2015

Hi There,

Why dont you try to build it in excel? I can show you how if you get stuck

I did not know that we can do programming in excel. Can you please help me. I will give you all details. Thanks for your reply. looking forward to your reply. kamath
16th August 2015