Hello everyone - I have an EA that a friend passed along to me that works relatively well on certain currency pairs during low volatility periods. It is a simple trend breakthrough EA, as I understand.
I am basically interested in reversing the logic of the EA -
Simply put - at the ChannelStop time, the EA places a pending buy order at the high of the channel and a pending sell order at the low of the channel, with take profit and stop loss levels according to the external variables set by the user.
Basically, I just want the EA to flip the orders, so that instead of a trend breakthrough strategy, it is like a trend reversal strategy. So the EA will place a pending sell limit order at the top of the channel range, and a pending buy limit order at the bottom of the channel range, with take profit and stop loss points again set according to the user's external variables.
So - right now the EA buys the channel high and sells the channel low, betting on a continuation of the trend. I just want the EA to do the opposite - to bet on a reversal of the trend, with the sell limit at the high of the range and the buy limit at the low of the range.
I know this is probably a ridiculously easy change to make, but I am just not proficient in this code and I would greatly appreciate it if one of you experts out there could show me how to make this simple change.
Best Regards -
Jason
I am basically interested in reversing the logic of the EA -
Simply put - at the ChannelStop time, the EA places a pending buy order at the high of the channel and a pending sell order at the low of the channel, with take profit and stop loss levels according to the external variables set by the user.
Basically, I just want the EA to flip the orders, so that instead of a trend breakthrough strategy, it is like a trend reversal strategy. So the EA will place a pending sell limit order at the top of the channel range, and a pending buy limit order at the bottom of the channel range, with take profit and stop loss points again set according to the user's external variables.
So - right now the EA buys the channel high and sells the channel low, betting on a continuation of the trend. I just want the EA to do the opposite - to bet on a reversal of the trend, with the sell limit at the high of the range and the buy limit at the low of the range.
I know this is probably a ridiculously easy change to make, but I am just not proficient in this code and I would greatly appreciate it if one of you experts out there could show me how to make this simple change.
Best Regards -
Jason
Attached File(s)