Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to display Volume Daily

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to display Volume Daily

    Hello,

    I am looking for a method to display exact Volume daily on my charts.

    There is a Ninja script to get Volume from time and sales window ?

    If I use a Daily chart and following simple script:

    #region Variables
    private double myInput0;
    private Font textfont=new Font("Arial",10);
    #endregion

    OnBarUpdate()
    myInput0=Volume[0];
    string text=string.Format("Volumi: {0}",myInput0);
    DrawTextFixed("Info",text,TextPosition.BottomRight ,Color.White,textfont,Color.Transparent,Color.Tran sparent,0);

    There are little differences between volume generated from my script and time and sales.

    #2
    Hello merzo,

    To get the Time and Sales Windows Daily Volume, you will want to use the OnMarketData() method for this as there is a Daily Volume that most providers report.

    For example:
    Code:
    protected override void OnMarketData(MarketDataEventArgs e)
    {
        // Print data to the Output window
        if (e.MarketDataType == MarketDataType.DailyVolume)
             Print("Daily Volume " + e.Volume);
    }
    JCNinjaTrader Customer Service

    Comment


      #3
      Hello JC,

      thanks for your help.

      Your script works well and fast

      Best

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      66 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      41 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      24 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      27 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      53 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X