Hi. Could someone please make me an ea that closes open trades based on the stochastic value in MT4?
I will manually place the trades, I only want this ea to close open trades.
Criteria for closing buy trades:
close 80% of normal position size
please include this position size in inputs so I can change it to 100% if desired
k line of stochastic has crossed above value 80
*please assign input to stochastic value so that I can change the value if necessary
when trade closes for 80% normal position size, set stop loss half way between the entry price for the trade and the current ask price. set trailing stop to 10 pips and add trailing stop value to inputs
Criteria for closing sell trades:
close 80% of normal position size
please include this position size in inputs so I can change it to 100% if desired
k line of stochastic has crossed below value 20
*please assign input to stochastic value so that I can change the value if necessary
when trade closes for 80% normal position size, set stop loss half way between the entry price for the trade and the current bid price. set trailing stop to 10 pips and add trailing stop value to inputs
please make this work on every tick and make the time period current
Thank you
I will manually place the trades, I only want this ea to close open trades.
Criteria for closing buy trades:
close 80% of normal position size
please include this position size in inputs so I can change it to 100% if desired
k line of stochastic has crossed above value 80
*please assign input to stochastic value so that I can change the value if necessary
when trade closes for 80% normal position size, set stop loss half way between the entry price for the trade and the current ask price. set trailing stop to 10 pips and add trailing stop value to inputs
Criteria for closing sell trades:
close 80% of normal position size
please include this position size in inputs so I can change it to 100% if desired
k line of stochastic has crossed below value 20
*please assign input to stochastic value so that I can change the value if necessary
when trade closes for 80% normal position size, set stop loss half way between the entry price for the trade and the current bid price. set trailing stop to 10 pips and add trailing stop value to inputs
please make this work on every tick and make the time period current
Thank you