I like those little blue and pink diamonds in the "Sample Draw Object" indicator script sample. I want to create an indicator using the same logic, but with an addition that lets me know when the event (an sma cross) happens x times within x bars; e.g. I get 10 diamonds within the last 20 bars. Can you point me in the right direction toward a function I can play with to achieve this?
thanks,
David
Comment