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

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.



      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by RookieTrader, Today, 09:37 AM
      2 responses
      10 views
      0 likes
      Last Post RookieTrader  
      Started by alifarahani, Today, 09:40 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Gerik, Today, 09:40 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by KennyK, 05-29-2017, 02:02 AM
      3 responses
      1,285 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by AttiM, 02-14-2024, 05:20 PM
      11 responses
      186 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X