TEAMTRADER wrote: Wed Jun 28, 2017 8:38 pm
I am not a coder and the code sadly has no meaning to me.
Unless it can be explained by description of 'open/close/levels' I will have to assume my visual observations are correct, that is" that the price has gone outside the outer bands and there is a closing price on an opposite candle inside those outer bands."
Thanks anyway.
TEAMTRADER
TeamTrader,
The code says (although I am not a programmer either):
1. Sell signal: If the price has closed above the higher outer bands and that bar is a bullish one and the next bar is bearish then draw an arrow
2. Buy signal: If the price has closed below the lower outer bands and that bar is a bearish one and the next bar is bullish then draw an arrow
I do not see the condition you assumed that the next bar should close inside the outer bands, it just should be an opposite bar.