tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.09k stars 637 forks source link

Is it possible to draw a pattern (XABCD)? #222

Open jechazelle opened 3 years ago

jechazelle commented 3 years ago

Hi,

I would like to know if it's possible to draw a pattern (XABCD) to detect a harmonic pattern?

I know it's possible to draw in tradingViewWidget :

tradingViewWidget.chart.createMultipointShape(
        // indicator points
        [
            {time: pointTime1, price: pointPrice1},
            {time: pointTime2, price: pointPrice2},
            {time: pointTime3, price: pointPrice3},
            {time: pointTime4, price: pointPrice4},
            {time: pointTime5, price: pointPrice5}
        ],
        // settings/overrrides
        {
            shape: 'xabcd_pattern'
        }
    )

Thank your for this library !

lakshanperera commented 3 years ago

Yes, it is possible, you can create an overlay for XABCD.

nirajpdn commented 1 year ago

@lakshanperera , do you have any sample code or examples ?