Pine script for tradingview project

Job ID: 32327259

Budget: $10 – $30 USD

For all symbols within a watchlist, can you calculate 2 consecutive doji candles and put 1 infront of symbols which has this condition 1 and 0 infront of symbols which do not meet this criteria and be able to sort the watchlist according to this critera with 1s on the top and 0s on the bottom. ?
Related categories: Pine Script