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 CarlTrading, Yesterday, 11:51 AM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      17 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      20 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X