No, pinescript is not based on python . The syntax are similar to higher level programming language, therefore some people feel that it is based on python.
Read moreWhat language does TradingView Pine editor use?
It utilizes a proprietary language called thinkScript and stores price data in arrays in a similar to way to Pine script. Data is built-in and the platform is geared towards creating custom indicators and strategies.
Read more