• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volume Alert

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

    Volume Alert

    Hi,
    what is the best way to display a triangle on the bar if volume is 2X the average volume

    Thanks
    Bill

    #2
    Hello Bill,

    Thank you for your note.
    Code:
    if(Volume[0] >= (SMA(Volume, 12)[0] * 2))
    {
    DrawTriangle("tag", 0, Close[0], 11, Close[11], 5, Close[5], Color.Green);
    }
    The code above checks the current volume (Volume[0]) against the average volume over the last 12 bars.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello Bill,

      Thank you for your note.
      Code:
      if(Volume[0] >= (SMA(Volume, 12)[0] * 2))
      {
      DrawTriangle("tag", 0, Close[0], 11, Close[11], 5, Close[5], Color.Green);
      }
      The code above checks the current volume (Volume[0]) against the average volume over the last 12 bars.
      Thanks Patrick as always . I will try and let you know if need more help on this.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by dukeoferl, Today, 03:26 AM
      0 responses
      1 view
      0 likes
      Last Post dukeoferl  
      Started by Titelluvifa, Today, 02:49 AM
      0 responses
      2 views
      0 likes
      Last Post Titelluvifa  
      Started by rehagen, Today, 01:44 AM
      0 responses
      2 views
      0 likes
      Last Post rehagen
      by rehagen
       
      Started by bouncetherubble, Yesterday, 07:33 PM
      0 responses
      7 views
      0 likes
      Last Post bouncetherubble  
      Started by gmachine, Yesterday, 07:15 PM
      0 responses
      7 views
      0 likes
      Last Post gmachine  
      Working...
      X