SAPERE / Publications
Forum
How to get the EA to realise the previous bar has closed above the BB?
Hi everyone, I'm trying to get the EA to record when a bar closes outside the bollingerbands, then initiate a trade if this happened in the previous bar and the ema's cross or something. My code so far looks like this: int bar, sll; if( Close[0] > bollingerband ){ bar = Bars;} if( bar+1 == Bars){