Take Profit EA template (1 standard Indicator)

 

Good evening to all experts here,

Actually i'm looking for a simple EA which is able to help me close the trade by only 1 standard indicator . I hope that i can do it by my own. That's why i'm looking for a template which is similar with it then i can edit it and learn some coding skill.

Anyone can provide me the template or help me to code it?

This is my design:

Entry: I will manually execute my trade

Stop loss: I will manually set it

Take profit: Follow EA setting

The take profit rules is depending on the stochastic indicator which was already in MT4.

Once stoch close below 20 : close the short trade at close price

Once stoch close above 80: close the long trade at close price

However, i also will set how much profit i wish to take , it is depend on which ever come first!

EA variable:

Stochastic :%K period, %D period, Slowing , MA method, price field