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

Returning the value of the Interval Setting on a Chart

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

    Returning the value of the Interval Setting on a Chart

    Hi,

    I created a custom indicator which sends me email alerts when a specific condition is met. I would like my email alerts to include the information about the currency pair and the time interval (5 min, 15 min, 60 min) to quickly find out which of my multiple charts generated the alert.

    I know how to extract the instrument type (Instrument.Fullname) but not the time frame of the chart. Can this be done?

    Thanks.

    - Marcus Plexus.

    #2
    Hello Marcus Plexus,

    Yes, you can use Bars.Period.Id and Bars.Period.Value for this:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Great. Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Skifree, Today, 11:21 AM
      0 responses
      2 views
      0 likes
      Last Post Skifree
      by Skifree
       
      Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
      52 responses
      5,265 views
      0 likes
      Last Post olivierh  
      Started by ssijbabu, 10-07-2012, 07:10 AM
      6 responses
      4,430 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by iceman2018, Today, 10:39 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by nleitman, Yesterday, 11:46 AM
      16 responses
      44 views
      0 likes
      Last Post nleitman  
      Working...
      X