__Hello again
So the plot thickens. Currently, the lopez indicator will send a buy and sell signal via buffers 5 and 6 with values of 1.00 (Ex. When buffers 5 == 1, buy). This works perfectly.
When looking at the data window on mt4, it shows that when the indicator changes state, buffer 7 == 1. Our condition is therefore when buffer 7 == 1, close buy trades and when
buffer 7 == 0, close sell trades.
The issue, is that the trades do not ever close when referencing this indicator. When there is a buy and sell condition that doesn't reference the indicator, suddenly the close condition that IS referencing buffer 7 starts closing trades correctly. This leads us to think that a buy/sell and close can't reference the same indicator.
Our question is, could there be interference happening between the buffers? Can their signals get crossed? Having the buy/sell work and the close not work, and then in a duplicate ea having the buy/sell not be related to the indicator and having the close suddenly work seems illogical.[/quote:7bcn8apu]
===========================================================================================================================================
So what I'm trying to understand from what you are trying to say, did you get the lopez trend indicator to buy when the trend goes blue and to close the trend goes red and soon after when the trend goes red to sell and when the trend goes blue to close and rebuy?
https://fxdreema.com/forum/viewtopic.php?f=2&t=4098
check out my forum because I'm trying to do the same thing with this indicator. Could you possibly help me out?