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

Submit a screenshot of the chart

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

    #46
    Hi Jesse with Volume (0) does not work, a number appears that does not correspond to the volume of the current bar. I have it like this, could you tell me if there is something wrong? Thank you.

    SendMail(toEmailAddress, "RED", "Possible Sellers " + Time[0].ToString() + " chart on " + BarsPeriod.Value.ToString() + BarsPeriodType.Minute + Volume[0);

    Comment


      #47
      Hello punkiy2111,

      You need to make a variable for that and put it outside the dispatcher like the previous sample we worked through. Any NinjaScript property like prices or volumes you would need to do that.

      JesseNinjaTrader Customer Service

      Comment


        #48
        Thanks Jesse it works perfect. If I wanted to set a schedule for me to send alerts and emails the indicator, how should it be set and in which part? Thank you so much

        Comment


          #49
          Hello punkiy2111,

          What specifically do you mean by schedule? Are you referring to certain times where it could work or do you mean conditions to send alerts?

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #50
            Its exactly. Instead of activating and deactivating manually I want for example from 8.30 to 16.30 (or any time) to be activated and deactivated automatically. Thanks.

            Comment


              #51
              Hello punkiy2111,

              You can see the ToTime method documentation for a sample of a time condition. You would put the dispatcher and your other logic within the time condition so it can only work during those hours.



              I look forward to being of further assistance.

              JesseNinjaTrader Customer Service

              Comment


                #52
                Thanks Jesse I had a little problem with the audio alerts. Is it that they sound to me before the end of the bar, could it be configured to close at the end of the bar?

                Thanks

                EDIT:
                I have noticed that a delay occurs when I have another graph open, that is, if it is not the one I am seeing at that moment the alert does not sound, however when I touch that graph to see it then the audio sounds like 3 or 4 bars after when it should have occurred.
                Last edited by punkiy2111; 10-13-2021, 11:18 AM.

                Comment


                  #53
                  Hello punkiy2111,

                  To do something at the "end" of a bar would require using the isFirstTickOfBar property. The first tick closes a bar.



                  You may want to check that you have IsSuspendedWhileInactive set to false to make sure he indicator works in the background. https://ninjatrader.com/support/help...lightsub=issus

                  I look forward to being of further assistance.
                  JesseNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by inanazsocial, Today, 01:15 AM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_Jason  
                  Started by rocketman7, Today, 02:12 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post rocketman7  
                  Started by dustydbayer, Today, 01:59 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post dustydbayer  
                  Started by trilliantrader, 04-18-2024, 08:16 AM
                  5 responses
                  23 views
                  0 likes
                  Last Post trilliantrader  
                  Started by Davidtowleii, Today, 12:15 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post Davidtowleii  
                  Working...
                  X