Bollinger Band Bandwidth

#12
Hulk/ All,

Im looking for a System with AFL code that could basically
do this :

1) Buy : cross over MACD (12,26,9) blue cross signal (red)
with buy /sell signals in conjuction with RSI ( < 40 =BUY and >60= Sell)
2) Bollinger bands..(plot At price cross over nears bands)..you may use ur expert knowledge..eg; buy only after 2nd candle breakout..(not first)
Buy : breakout of Upper bolliger band ( 2nd candle pls)
Sell : breakout of Lower bollinger band ( 2nd candle)
You may also use the size of candle if inside or outside band to gauge.

3) ADX: This indicator is critical..as it would allow to avoid
choppy market.. So ADX < 25 ( dont generate buy or sell) and
BUY and SELL above ADX > 30 ..only stong breakouts trade
4) Volume : Use this If MACD + crossover and ADX > 30 or 40 = BUY
If MACD -ve crossover and ADX > 30 or 40 = SELL

kindly also backtest this with results..if possible post it and it could
cover most market scenarios..Appretiate ur help..any assistance
 
#13
It would even great if divergance ( macd and rsi)
could be checked +ve divergance = buy , negative divergance = sell

All above should be in conjunction , so that
only one BUY cond and one Sell cond using above analysis.

Will appretiate ur inputs/code..a working code would give
a nice system ..to filter for these conditions..
ADX (may be used for filtering ) and only those that pass
should be used for buy/sell thanks !
 
#14
Hello Hulk,

I am sorry for my late response. I was out of city because of business.

I have tried the formula that you pasted.

But unfortunately , this is NOT what i want.

Bandwidth value should be normalized in a price oscillator as happened at RSI or MFI..

the formula that minitrader has pasted is true only scan and explore function is missing.

All the best..
 
Last edited:
#15
Hello minitrader,

I have just added the following rows to your formula and i achieved scan and explore functions as i requested.

Thanks for your helps..

Buy = a7 < 3;

Filter = a7 < 3;
AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );
AddColumn( a7, "BBsqueeze " );
 

Similar threads