Hello,
I have extensive experience in MultiCharts, TradeStation and other trading platforms programming. You can see examples in my portfolio.
You will get with source code:
1. Flag pattern indicator
2. Flag pattern sample strategy
3. Flag pattern scanner
Best wishes,
Alexander