I am planning to do an indicator, which is to label each candle stick with a set of tokens. But I don't know how. The details are roughly the following:
1) use some existing indicator or combination of indicators to segment all candle stick into 2 categories. {Green, Red} to denote if it is up bar or down bar.
2) use high/low of clusters obtained in 1) to determine if a bar is Up Oscillation, Down Oscillation, or a simple Retracement {UO, DO, RETRACE};
3) Label if it breaks previous high/low, {break, no break}
etc.
The labels obtained from 1) 2) 3) shall be accessed from outside as different properties of the same indicator.
Any existing example already done this? Please share.
Many thanks.
Best Regards
David WANG
Comment