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 NullPointStrategies, Today, 05:17 AM
        0 responses
        51 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        129 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X