Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

alert

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

    alert

    Is it possible to make an alert
    When the last volume is greater than the last three volume bars or more
    an example on the attachment
    Attached Files

    #2
    Hello salaksi1,

    Thanks for your post.

    Yes, alerts could be made using the Alert() method and volume could be compared by calling Volume[0] with a barsAgo value passed in for the bar you want to reference. BarsAgo 0 would refer to the currently forming bar on the chart. BarsAgo 1 would refer to the previous bar. BarsAgo 2 refers to the bar 2 bars prior to the current bar, and so on.

    You could consider creating a condition that checks if the current volume (Volume[0]) is greater than the previous 3 volume levels (Volume[1], Volume[2], Volume[3]) and call the Alert() method to trigger the alert.

    See the help guide documentation below for more information and sample code.

    Volume: https://ninjatrader.com/support/help...ies_volume.htm
    Alert: https://ninjatrader.com/support/help.../nt8/alert.htm
    Alert, Debug, Share: https://ninjatrader.com/support/help...nd_sharing.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you, Mr
      Can this be applied to Strategy Builder
      Where the entry is made when the current volume bar is greater than 10 previous bars, not only the tenth bar

      Comment


        #4
        Hello salaksi1,

        Yes, it would be possible to make a condition in the Condition and Actions section of the Strategy Builder that compares the current day's volume (Price folder > Volume) to the volume of previous bars.

        Then, you could create an action in that same Set that calls your entry order (Order management folder) and calls an alert (Misc folder > Alert). By putting the alert in the same Set as your entry order, the alert will trigger when entry order is placed.

        See the help guide pages below for more information:
        Condtiions: https://ninjatrader.com/support/help...on_builder.htm
        Actions: https://ninjatrader.com/support/help...t8/actions.htm

        Let us know if we may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        45 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        21 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        31 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X