Trading View Widget or Library PHP Script

Job ID: 33760687

Budget: $30 – $250 USD

Hi Freelancers, I want to create the exact same graph (using a PHP script) as the attached image using trading view. I code myself, but I would appreciate a lil help if someone is familiar with this library or wants to dive into documentation.

I'm trying to use the "widget" feature (https://www.tradingview.com/widget/advanced-chart/) but drawing the green/red lines and points by code is not possible...

So probably a library is needed (https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/) and maybe I need to upgrade the account (I will do if freelancer tell me to) .

Im just looking for a piece of PHP script that I can integrate to my bigger development and just call a simple function like:
//this part ofc will be fetched from a DB by me...
$symbol= "PHEMEX:BTCUSDT";
$redLines=array(29800, 30000, 32000);
$greenLines=array(29600, 29400);
$redDots=array("2022-05-23 19:56:00","2022-05-23 19:52:00");
$greenDots=array("2022-05-23 19:16:00","2022-05-23 19:32:00");
//and just execute the function that returns the html, with the given parameters
echo CreateTradingviewChart($symbol, $redLines, $greenLines, $redDots, $greenDots);

Let me know if you have further doubts, or just what you think... PLEASE DONT COPY PASTE, a single line that shows me youve read what I wrote will catch way more my attention.
Related categories: PHP JavaScript HTML Trading