This is a beginner script, any feedback is welcome.
It indicates a bull trend with or without volume (yellow and green arrow) and give a buy signal (green flag) once the trend is "confirmed" and the stock became good for the buy market.
I look forward to make this for a bear market as well, but it's not good for now.
Symbols and its meanings:
This is modified version of Dale Legan's "Confluence" indicator written by Gary Fritz.
Here is Gary`s commentary:
Since the Confluence indicator returned several "states" (bull, bear, grey, and zero),
he modified the return value a bit:
-9 to -1 = Bearish
-0.9 to 0.9 = "grey" (and zero)
This new indicator analyzes the balance between bullish and
One can cay that it is an improved analogue of Elder Ray indicator.
To get more information please see "Bull And Bear Balance Indicator"
by Vadim Gimelfarb.
This modified strategy backtest from HPotter