Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

adding chart timeframe to message

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

    adding chart timeframe to message

    I want to broadcast an alert message

    I went to actions, alert, and under the message, I can put @"MACD Alert"

    but how do I add the timeframe of the chart, say the Chart is on 60 minutes
    I want the alert message to say

    @"MACD 60 Minutes Alert"

    because I am going to add the same strategy to different timeframes

    #2
    Please see the link below :

    Comment


      #3
      Hello AaronKoRn,

      Thanks for your post.

      From your description, it sounds like you are working with the Strategy Builder so my reply will be based on that. If that is not correct, please clarify.

      There is no means to automatically pull in the instrument or bar size in the Strategy Builder. You would need to unlock the strategy and work directly in Ninjascript to make that happen. Once unlocked the strategy can then only be edited in the Ninjascript editor going foward.

      If you wish to stay within the Strategy Builder, what I would suggest is that you create an "input", on the Inputs and variables page, of the string type, and use this input so that when you apply the strategy to a chart, you can type in whatever you like. That input can be used in the Alert message in addition to the other information you have.



      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X