Although there are a lot of similarities between other platform languages, like PineScript, you cannot simply transpose scripts developed from other languages without first converting them.