Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

317
Views
How to make custom changes in trading view chart

So I am working on this trading view chart in which the data is coming from API and the attributes are Open, Close, Low, High, Volume, Time. The candles are being plotted on this data now I want to add bonus and dividend mark on each candle just like you can see in the image below.enter image description here I have the dividend and the bonus data in my database. I want to display on my chart.

The code below is initializing the chart on the data from the API.

function initOnReady() {
                var widget = window.tvWidget = new TradingView.widget({
                    debug: true, // uncomment this line to see Library errors and warnings in the console
                    fullscreen: true,   
                    symbol: '<?php echo $stock_symbol; ?>',
                    interval: '1D',
                    container_id: "tv_chart_container",
                    timezone:"Asia/Ashkhabad",
                    has_intraday: 'true',
                    supports_marks: true,
                    supports_timescale_marks: true,
                    supports_group_request: false,
                    resolutions: ['1', '5', '15', '30', '60', '240', 'D', 'W', 'M', '6M', '12M'],
                    datafeed: new Datafeeds.UDFCompatibleDatafeed(api),
                    library_path: "charting_library/",
                    locale: getParameterByName('lang') || "en",

                    disabled_features: ["use_localstorage_for_settings"],
                    enabled_features: ["study_templates"],
                    charts_storage_url: "*"    ,  
                    charts_storage_api_version: "1.1",
                    client_id: '*',
                    user_id: '<?php echo $session_user_id; ?>',
                    theme: getParameterByName('theme'),
                });
            };
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!