Announcement

Collapse
No announcement yet.

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.

      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.

          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.

              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.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  560 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  325 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  547 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  547 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X