It's an intraday EA that trades CFD stocks by speculating up and down. Currently the EA looks on each candle if the conditions are met, if it is the case we place the order. We will add a new condition which will happen if all the conditions on the current EA are fulfilled. We will put an external variable which determines the number of previous candles we are looking at, for example the last 3 candles. IF on the current candle it is to speculate on the rise then: We will see if on the previous candles there is an intersection between the course of the CFD and the lower bollinger band. (i.e. if the share price came out of the bollinger bands from below) If there is an intersection that comes out of the bottom we will see if the color of the KUMO is green If it is the case we will watch that this intersection (between the course and the bollinger band) is located below the KUMO Finally we will see if the condition GAP TO KUMO is well fulfilled, i.e. if the difference between the intersection and the KUMO (the bottom of the KUMO) is at least the value indicated (the variable is expressed depending on the price of the CFD) (for example 0.07 euros) If all these conditions are fulfilled on the last x candles or there is no intersection then the order is passed. Otherwise we don't pass the order. IF on the current candle it is to speculate downwards then: We will see if on the previous candles there is an intersection between the course of the CFD and the upper bollinger band. (i.e. if the share price came out of the bollinger bands from above) If there is an intersection that comes out of the top we will see if the color of the KUMO is red If it is the case we will watch that this intersection (between the course and the bollinger band) is located above the KUMO Finally we will see if the condition GAP TO KUMO is well fulfilled, that is to say if the difference between the intersection and the KUMO (the top of the KUMO) is at least the value indicated (the variable is expressed depending on the price of the CFD) (for example 0.07 euros) If all these conditions are fulfilled on the last x candles or there is no intersection then the order is passed. Otherwise we don't pass the order. Therefore if we set the external variable to 0, we do not take into account the last candles, we must therefore have the same result as the current EA.