Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    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.
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by r68cervera, 04-25-2024, 05:29 AM
        2 responses
        16 views
        0 likes
        Last Post r68cervera  
        Started by SugarDefHealth, Today, 03:30 AM
        0 responses
        2 views
        0 likes
        Last Post SugarDefHealth  
        Started by ETFVoyageur, Today, 02:08 AM
        1 response
        8 views
        0 likes
        Last Post ETFVoyageur  
        Started by kujista, 04-22-2024, 07:46 AM
        3 responses
        13 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by kujista, 04-23-2024, 06:23 AM
        7 responses
        58 views
        0 likes
        Last Post kujista
        by kujista
         
        Working...
        X