How to use candlestick scanner in Pi

Dear Sir, I want to know whether the scanning based on candlestick is available in Pi or not. If available how can I use it for identifying the stocks in trending. For example I have nifty 50 stocks in my portfolio and in their hourly chart which stocks are generating bullish engulfing and bullish piercing pattern at a particular time I want to see that. How will I write scripts to get the desired result.

You can create a simple expert advisor for this-

In Tradescript, there are a number of built-in candlestick patterns. Based on your questions, these might be useful for signals on 1 hour charts:

Bullish reversal signal :-

1.CSP()=ENGULFING_LINE

  1. CSP()=MORNING_STAR

Bearish reversal signal:-

  1. CSP()=DARK_CLOUD_COVER

  2. CSP()=BEARISH_ENGULFING_LINE

  3. CSP()=EVENING_STAR

There are more patterns like Doji, piercing line,etc. Just study the Tradescript manual

The codes provided in the link given by you shows error. I mange to write it by seeing it from traders script but after scanning it does not shows any result. It only shows list of stocks that scanned but no alerts if any symbol found or not.

If you can add some video of how scanner works and alerts sets in pi it would be help full for everyone

Try this - https://www.youtube.com/watch?v=uqKtFl46P2Y

how can we run the csp() primitive on intra-day charts . pls advise.