Someone help me with pine script

I wanted to create a indicator in pine script but I donโ€™t have any knowledge about coding. Its a very simple indicator and I actually got this indicator coded from ChatGPT. But the problem is I am seeing fake signals on chart and ChatGPT is unable to solve this issue. Can anyone who know pine script please help me fix this error?

1 Like

Kindly share code.
I will try as much as possible to help you.

2 Likes